@tryfinch/finch-api-mcp 7.0.0 → 8.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (536) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +15 -303
  3. package/code-tool-types.d.mts +6 -9
  4. package/code-tool-types.d.mts.map +1 -1
  5. package/code-tool-types.d.ts +6 -9
  6. package/code-tool-types.d.ts.map +1 -1
  7. package/code-tool.d.mts +2 -44
  8. package/code-tool.d.mts.map +1 -1
  9. package/code-tool.d.ts +2 -44
  10. package/code-tool.d.ts.map +1 -1
  11. package/code-tool.js +15 -4
  12. package/code-tool.js.map +1 -1
  13. package/code-tool.mjs +15 -4
  14. package/code-tool.mjs.map +1 -1
  15. package/docs-search-tool.d.mts +3 -3
  16. package/docs-search-tool.d.mts.map +1 -1
  17. package/docs-search-tool.d.ts +3 -3
  18. package/docs-search-tool.d.ts.map +1 -1
  19. package/docs-search-tool.js +1 -1
  20. package/docs-search-tool.js.map +1 -1
  21. package/docs-search-tool.mjs +1 -1
  22. package/http.d.mts.map +1 -1
  23. package/http.d.ts.map +1 -1
  24. package/http.js +1 -18
  25. package/http.js.map +1 -1
  26. package/http.mjs +1 -18
  27. package/http.mjs.map +1 -1
  28. package/index.js +4 -40
  29. package/index.js.map +1 -1
  30. package/index.mjs +4 -40
  31. package/index.mjs.map +1 -1
  32. package/options.d.mts +0 -9
  33. package/options.d.mts.map +1 -1
  34. package/options.d.ts +0 -9
  35. package/options.d.ts.map +1 -1
  36. package/options.js +4 -359
  37. package/options.js.map +1 -1
  38. package/options.mjs +4 -359
  39. package/options.mjs.map +1 -1
  40. package/package.json +9 -49
  41. package/server.d.mts +3 -8
  42. package/server.d.mts.map +1 -1
  43. package/server.d.ts +3 -8
  44. package/server.d.ts.map +1 -1
  45. package/server.js +12 -65
  46. package/server.js.map +1 -1
  47. package/server.mjs +11 -62
  48. package/server.mjs.map +1 -1
  49. package/src/code-tool-types.ts +6 -9
  50. package/src/code-tool.ts +17 -6
  51. package/src/docs-search-tool.ts +1 -1
  52. package/src/http.ts +1 -19
  53. package/src/index.ts +5 -52
  54. package/src/options.ts +5 -386
  55. package/src/server.ts +12 -72
  56. package/src/stdio.ts +2 -3
  57. package/src/{tools/types.ts → types.ts} +1 -1
  58. package/stdio.d.mts +1 -2
  59. package/stdio.d.mts.map +1 -1
  60. package/stdio.d.ts +1 -2
  61. package/stdio.d.ts.map +1 -1
  62. package/stdio.js +2 -2
  63. package/stdio.js.map +1 -1
  64. package/stdio.mjs +2 -2
  65. package/stdio.mjs.map +1 -1
  66. package/{tools/types.d.mts → types.d.mts} +1 -1
  67. package/types.d.mts.map +1 -0
  68. package/{tools/types.d.ts → types.d.ts} +1 -1
  69. package/types.d.ts.map +1 -0
  70. package/types.js.map +1 -0
  71. package/types.mjs.map +1 -0
  72. package/compat.d.mts +0 -58
  73. package/compat.d.mts.map +0 -1
  74. package/compat.d.ts +0 -58
  75. package/compat.d.ts.map +0 -1
  76. package/compat.js +0 -387
  77. package/compat.js.map +0 -1
  78. package/compat.mjs +0 -378
  79. package/compat.mjs.map +0 -1
  80. package/dynamic-tools.d.mts +0 -12
  81. package/dynamic-tools.d.mts.map +0 -1
  82. package/dynamic-tools.d.ts +0 -12
  83. package/dynamic-tools.d.ts.map +0 -1
  84. package/dynamic-tools.js +0 -135
  85. package/dynamic-tools.js.map +0 -1
  86. package/dynamic-tools.mjs +0 -132
  87. package/dynamic-tools.mjs.map +0 -1
  88. package/filtering.d.mts +0 -3
  89. package/filtering.d.mts.map +0 -1
  90. package/filtering.d.ts +0 -3
  91. package/filtering.d.ts.map +0 -1
  92. package/filtering.js +0 -24
  93. package/filtering.js.map +0 -1
  94. package/filtering.mjs +0 -16
  95. package/filtering.mjs.map +0 -1
  96. package/src/compat.ts +0 -483
  97. package/src/dynamic-tools.ts +0 -153
  98. package/src/filtering.ts +0 -18
  99. package/src/tools/access-tokens/create-access-tokens.ts +0 -65
  100. package/src/tools/account/disconnect-account.ts +0 -49
  101. package/src/tools/account/introspect-account.ts +0 -51
  102. package/src/tools/connect/sessions/new-connect-sessions.ts +0 -115
  103. package/src/tools/connect/sessions/reauthenticate-connect-sessions.ts +0 -83
  104. package/src/tools/hris/benefits/create-hris-benefits.ts +0 -129
  105. package/src/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.ts +0 -146
  106. package/src/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.ts +0 -63
  107. package/src/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.ts +0 -67
  108. package/src/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.ts +0 -70
  109. package/src/tools/hris/benefits/list-hris-benefits.ts +0 -59
  110. package/src/tools/hris/benefits/list-supported-benefits-hris-benefits.ts +0 -59
  111. package/src/tools/hris/benefits/retrieve-hris-benefits.ts +0 -63
  112. package/src/tools/hris/benefits/update-hris-benefits.ts +0 -65
  113. package/src/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.ts +0 -88
  114. package/src/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.ts +0 -106
  115. package/src/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.ts +0 -63
  116. package/src/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.ts +0 -59
  117. package/src/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.ts +0 -67
  118. package/src/tools/hris/company/retrieve-hris-company.ts +0 -58
  119. package/src/tools/hris/directory/list-hris-directory.ts +0 -67
  120. package/src/tools/hris/documents/list-hris-documents.ts +0 -82
  121. package/src/tools/hris/documents/retreive-hris-documents.ts +0 -63
  122. package/src/tools/hris/employments/retrieve-many-hris-employments.ts +0 -64
  123. package/src/tools/hris/individuals/retrieve-many-hris-individuals.ts +0 -79
  124. package/src/tools/hris/pay-statements/retrieve-many-hris-pay-statements.ts +0 -72
  125. package/src/tools/hris/payments/list-hris-payments.ts +0 -69
  126. package/src/tools/index.ts +0 -161
  127. package/src/tools/jobs/automated/create-jobs-automated.ts +0 -82
  128. package/src/tools/jobs/automated/list-jobs-automated.ts +0 -59
  129. package/src/tools/jobs/automated/retrieve-jobs-automated.ts +0 -54
  130. package/src/tools/jobs/manual/retrieve-jobs-manual.ts +0 -54
  131. package/src/tools/payroll/pay-groups/list-payroll-pay-groups.ts +0 -68
  132. package/src/tools/payroll/pay-groups/retrieve-payroll-pay-groups.ts +0 -63
  133. package/src/tools/providers/list-providers.ts +0 -52
  134. package/src/tools/request-forwarding/forward-request-forwarding.ts +0 -76
  135. package/src/tools/sandbox/company/update-sandbox-company.ts +0 -192
  136. package/src/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.ts +0 -71
  137. package/src/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.ts +0 -62
  138. package/src/tools/sandbox/connections/create-sandbox-connections.ts +0 -69
  139. package/src/tools/sandbox/directory/create-sandbox-directory.ts +0 -319
  140. package/src/tools/sandbox/employment/update-sandbox-employment.ts +0 -236
  141. package/src/tools/sandbox/individual/update-sandbox-individual.ts +0 -177
  142. package/src/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.ts +0 -53
  143. package/src/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.ts +0 -61
  144. package/src/tools/sandbox/jobs/create-sandbox-jobs.ts +0 -54
  145. package/src/tools/sandbox/payment/create-sandbox-payment.ts +0 -224
  146. package/src/tools.ts +0 -1
  147. package/tools/access-tokens/create-access-tokens.d.mts +0 -51
  148. package/tools/access-tokens/create-access-tokens.d.mts.map +0 -1
  149. package/tools/access-tokens/create-access-tokens.d.ts +0 -51
  150. package/tools/access-tokens/create-access-tokens.d.ts.map +0 -1
  151. package/tools/access-tokens/create-access-tokens.js +0 -65
  152. package/tools/access-tokens/create-access-tokens.js.map +0 -1
  153. package/tools/access-tokens/create-access-tokens.mjs +0 -58
  154. package/tools/access-tokens/create-access-tokens.mjs.map +0 -1
  155. package/tools/account/disconnect-account.d.mts +0 -51
  156. package/tools/account/disconnect-account.d.mts.map +0 -1
  157. package/tools/account/disconnect-account.d.ts +0 -51
  158. package/tools/account/disconnect-account.d.ts.map +0 -1
  159. package/tools/account/disconnect-account.js +0 -49
  160. package/tools/account/disconnect-account.js.map +0 -1
  161. package/tools/account/disconnect-account.mjs +0 -42
  162. package/tools/account/disconnect-account.mjs.map +0 -1
  163. package/tools/account/introspect-account.d.mts +0 -51
  164. package/tools/account/introspect-account.d.mts.map +0 -1
  165. package/tools/account/introspect-account.d.ts +0 -51
  166. package/tools/account/introspect-account.d.ts.map +0 -1
  167. package/tools/account/introspect-account.js +0 -51
  168. package/tools/account/introspect-account.js.map +0 -1
  169. package/tools/account/introspect-account.mjs +0 -44
  170. package/tools/account/introspect-account.mjs.map +0 -1
  171. package/tools/connect/sessions/new-connect-sessions.d.mts +0 -51
  172. package/tools/connect/sessions/new-connect-sessions.d.mts.map +0 -1
  173. package/tools/connect/sessions/new-connect-sessions.d.ts +0 -51
  174. package/tools/connect/sessions/new-connect-sessions.d.ts.map +0 -1
  175. package/tools/connect/sessions/new-connect-sessions.js +0 -114
  176. package/tools/connect/sessions/new-connect-sessions.js.map +0 -1
  177. package/tools/connect/sessions/new-connect-sessions.mjs +0 -107
  178. package/tools/connect/sessions/new-connect-sessions.mjs.map +0 -1
  179. package/tools/connect/sessions/reauthenticate-connect-sessions.d.mts +0 -51
  180. package/tools/connect/sessions/reauthenticate-connect-sessions.d.mts.map +0 -1
  181. package/tools/connect/sessions/reauthenticate-connect-sessions.d.ts +0 -51
  182. package/tools/connect/sessions/reauthenticate-connect-sessions.d.ts.map +0 -1
  183. package/tools/connect/sessions/reauthenticate-connect-sessions.js +0 -81
  184. package/tools/connect/sessions/reauthenticate-connect-sessions.js.map +0 -1
  185. package/tools/connect/sessions/reauthenticate-connect-sessions.mjs +0 -74
  186. package/tools/connect/sessions/reauthenticate-connect-sessions.mjs.map +0 -1
  187. package/tools/hris/benefits/create-hris-benefits.d.mts +0 -51
  188. package/tools/hris/benefits/create-hris-benefits.d.mts.map +0 -1
  189. package/tools/hris/benefits/create-hris-benefits.d.ts +0 -51
  190. package/tools/hris/benefits/create-hris-benefits.d.ts.map +0 -1
  191. package/tools/hris/benefits/create-hris-benefits.js +0 -128
  192. package/tools/hris/benefits/create-hris-benefits.js.map +0 -1
  193. package/tools/hris/benefits/create-hris-benefits.mjs +0 -121
  194. package/tools/hris/benefits/create-hris-benefits.mjs.map +0 -1
  195. package/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.d.mts +0 -51
  196. package/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.d.mts.map +0 -1
  197. package/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.d.ts +0 -51
  198. package/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.d.ts.map +0 -1
  199. package/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.js +0 -139
  200. package/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.js.map +0 -1
  201. package/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.mjs +0 -132
  202. package/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.mjs.map +0 -1
  203. package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.d.mts +0 -51
  204. package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.d.mts.map +0 -1
  205. package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.d.ts +0 -51
  206. package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.d.ts.map +0 -1
  207. package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.js +0 -61
  208. package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.js.map +0 -1
  209. package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.mjs +0 -54
  210. package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.mjs.map +0 -1
  211. package/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.d.mts +0 -51
  212. package/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.d.mts.map +0 -1
  213. package/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.d.ts +0 -51
  214. package/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.d.ts.map +0 -1
  215. package/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.js +0 -66
  216. package/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.js.map +0 -1
  217. package/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.mjs +0 -59
  218. package/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.mjs.map +0 -1
  219. package/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.d.mts +0 -51
  220. package/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.d.mts.map +0 -1
  221. package/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.d.ts +0 -51
  222. package/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.d.ts.map +0 -1
  223. package/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.js +0 -68
  224. package/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.js.map +0 -1
  225. package/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.mjs +0 -61
  226. package/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.mjs.map +0 -1
  227. package/tools/hris/benefits/list-hris-benefits.d.mts +0 -51
  228. package/tools/hris/benefits/list-hris-benefits.d.mts.map +0 -1
  229. package/tools/hris/benefits/list-hris-benefits.d.ts +0 -51
  230. package/tools/hris/benefits/list-hris-benefits.d.ts.map +0 -1
  231. package/tools/hris/benefits/list-hris-benefits.js +0 -59
  232. package/tools/hris/benefits/list-hris-benefits.js.map +0 -1
  233. package/tools/hris/benefits/list-hris-benefits.mjs +0 -52
  234. package/tools/hris/benefits/list-hris-benefits.mjs.map +0 -1
  235. package/tools/hris/benefits/list-supported-benefits-hris-benefits.d.mts +0 -51
  236. package/tools/hris/benefits/list-supported-benefits-hris-benefits.d.mts.map +0 -1
  237. package/tools/hris/benefits/list-supported-benefits-hris-benefits.d.ts +0 -51
  238. package/tools/hris/benefits/list-supported-benefits-hris-benefits.d.ts.map +0 -1
  239. package/tools/hris/benefits/list-supported-benefits-hris-benefits.js +0 -59
  240. package/tools/hris/benefits/list-supported-benefits-hris-benefits.js.map +0 -1
  241. package/tools/hris/benefits/list-supported-benefits-hris-benefits.mjs +0 -52
  242. package/tools/hris/benefits/list-supported-benefits-hris-benefits.mjs.map +0 -1
  243. package/tools/hris/benefits/retrieve-hris-benefits.d.mts +0 -51
  244. package/tools/hris/benefits/retrieve-hris-benefits.d.mts.map +0 -1
  245. package/tools/hris/benefits/retrieve-hris-benefits.d.ts +0 -51
  246. package/tools/hris/benefits/retrieve-hris-benefits.d.ts.map +0 -1
  247. package/tools/hris/benefits/retrieve-hris-benefits.js +0 -61
  248. package/tools/hris/benefits/retrieve-hris-benefits.js.map +0 -1
  249. package/tools/hris/benefits/retrieve-hris-benefits.mjs +0 -54
  250. package/tools/hris/benefits/retrieve-hris-benefits.mjs.map +0 -1
  251. package/tools/hris/benefits/update-hris-benefits.d.mts +0 -51
  252. package/tools/hris/benefits/update-hris-benefits.d.mts.map +0 -1
  253. package/tools/hris/benefits/update-hris-benefits.d.ts +0 -51
  254. package/tools/hris/benefits/update-hris-benefits.d.ts.map +0 -1
  255. package/tools/hris/benefits/update-hris-benefits.js +0 -63
  256. package/tools/hris/benefits/update-hris-benefits.js.map +0 -1
  257. package/tools/hris/benefits/update-hris-benefits.mjs +0 -56
  258. package/tools/hris/benefits/update-hris-benefits.mjs.map +0 -1
  259. package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.d.mts +0 -51
  260. package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.d.mts.map +0 -1
  261. package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.d.ts +0 -51
  262. package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.d.ts.map +0 -1
  263. package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.js +0 -85
  264. package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.js.map +0 -1
  265. package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.mjs +0 -78
  266. package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.mjs.map +0 -1
  267. package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.d.mts +0 -51
  268. package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.d.mts.map +0 -1
  269. package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.d.ts +0 -51
  270. package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.d.ts.map +0 -1
  271. package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.js +0 -103
  272. package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.js.map +0 -1
  273. package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.mjs +0 -96
  274. package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.mjs.map +0 -1
  275. package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.d.mts +0 -51
  276. package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.d.mts.map +0 -1
  277. package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.d.ts +0 -51
  278. package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.d.ts.map +0 -1
  279. package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.js +0 -61
  280. package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.js.map +0 -1
  281. package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.mjs +0 -54
  282. package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.mjs.map +0 -1
  283. package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.d.mts +0 -51
  284. package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.d.mts.map +0 -1
  285. package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.d.ts +0 -51
  286. package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.d.ts.map +0 -1
  287. package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.js +0 -59
  288. package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.js.map +0 -1
  289. package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.mjs +0 -52
  290. package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.mjs.map +0 -1
  291. package/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.d.mts +0 -51
  292. package/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.d.mts.map +0 -1
  293. package/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.d.ts +0 -51
  294. package/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.d.ts.map +0 -1
  295. package/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.js +0 -65
  296. package/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.js.map +0 -1
  297. package/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.mjs +0 -58
  298. package/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.mjs.map +0 -1
  299. package/tools/hris/company/retrieve-hris-company.d.mts +0 -51
  300. package/tools/hris/company/retrieve-hris-company.d.mts.map +0 -1
  301. package/tools/hris/company/retrieve-hris-company.d.ts +0 -51
  302. package/tools/hris/company/retrieve-hris-company.d.ts.map +0 -1
  303. package/tools/hris/company/retrieve-hris-company.js +0 -58
  304. package/tools/hris/company/retrieve-hris-company.js.map +0 -1
  305. package/tools/hris/company/retrieve-hris-company.mjs +0 -51
  306. package/tools/hris/company/retrieve-hris-company.mjs.map +0 -1
  307. package/tools/hris/directory/list-hris-directory.d.mts +0 -51
  308. package/tools/hris/directory/list-hris-directory.d.mts.map +0 -1
  309. package/tools/hris/directory/list-hris-directory.d.ts +0 -51
  310. package/tools/hris/directory/list-hris-directory.d.ts.map +0 -1
  311. package/tools/hris/directory/list-hris-directory.js +0 -67
  312. package/tools/hris/directory/list-hris-directory.js.map +0 -1
  313. package/tools/hris/directory/list-hris-directory.mjs +0 -60
  314. package/tools/hris/directory/list-hris-directory.mjs.map +0 -1
  315. package/tools/hris/documents/list-hris-documents.d.mts +0 -51
  316. package/tools/hris/documents/list-hris-documents.d.mts.map +0 -1
  317. package/tools/hris/documents/list-hris-documents.d.ts +0 -51
  318. package/tools/hris/documents/list-hris-documents.d.ts.map +0 -1
  319. package/tools/hris/documents/list-hris-documents.js +0 -81
  320. package/tools/hris/documents/list-hris-documents.js.map +0 -1
  321. package/tools/hris/documents/list-hris-documents.mjs +0 -74
  322. package/tools/hris/documents/list-hris-documents.mjs.map +0 -1
  323. package/tools/hris/documents/retreive-hris-documents.d.mts +0 -51
  324. package/tools/hris/documents/retreive-hris-documents.d.mts.map +0 -1
  325. package/tools/hris/documents/retreive-hris-documents.d.ts +0 -51
  326. package/tools/hris/documents/retreive-hris-documents.d.ts.map +0 -1
  327. package/tools/hris/documents/retreive-hris-documents.js +0 -61
  328. package/tools/hris/documents/retreive-hris-documents.js.map +0 -1
  329. package/tools/hris/documents/retreive-hris-documents.mjs +0 -54
  330. package/tools/hris/documents/retreive-hris-documents.mjs.map +0 -1
  331. package/tools/hris/employments/retrieve-many-hris-employments.d.mts +0 -51
  332. package/tools/hris/employments/retrieve-many-hris-employments.d.mts.map +0 -1
  333. package/tools/hris/employments/retrieve-many-hris-employments.d.ts +0 -51
  334. package/tools/hris/employments/retrieve-many-hris-employments.d.ts.map +0 -1
  335. package/tools/hris/employments/retrieve-many-hris-employments.js +0 -65
  336. package/tools/hris/employments/retrieve-many-hris-employments.js.map +0 -1
  337. package/tools/hris/employments/retrieve-many-hris-employments.mjs +0 -58
  338. package/tools/hris/employments/retrieve-many-hris-employments.mjs.map +0 -1
  339. package/tools/hris/individuals/retrieve-many-hris-individuals.d.mts +0 -51
  340. package/tools/hris/individuals/retrieve-many-hris-individuals.d.mts.map +0 -1
  341. package/tools/hris/individuals/retrieve-many-hris-individuals.d.ts +0 -51
  342. package/tools/hris/individuals/retrieve-many-hris-individuals.d.ts.map +0 -1
  343. package/tools/hris/individuals/retrieve-many-hris-individuals.js +0 -79
  344. package/tools/hris/individuals/retrieve-many-hris-individuals.js.map +0 -1
  345. package/tools/hris/individuals/retrieve-many-hris-individuals.mjs +0 -72
  346. package/tools/hris/individuals/retrieve-many-hris-individuals.mjs.map +0 -1
  347. package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.d.mts +0 -51
  348. package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.d.mts.map +0 -1
  349. package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.d.ts +0 -51
  350. package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.d.ts.map +0 -1
  351. package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.js +0 -73
  352. package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.js.map +0 -1
  353. package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.mjs +0 -66
  354. package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.mjs.map +0 -1
  355. package/tools/hris/payments/list-hris-payments.d.mts +0 -51
  356. package/tools/hris/payments/list-hris-payments.d.mts.map +0 -1
  357. package/tools/hris/payments/list-hris-payments.d.ts +0 -51
  358. package/tools/hris/payments/list-hris-payments.d.ts.map +0 -1
  359. package/tools/hris/payments/list-hris-payments.js +0 -69
  360. package/tools/hris/payments/list-hris-payments.js.map +0 -1
  361. package/tools/hris/payments/list-hris-payments.mjs +0 -62
  362. package/tools/hris/payments/list-hris-payments.mjs.map +0 -1
  363. package/tools/index.d.mts +0 -10
  364. package/tools/index.d.mts.map +0 -1
  365. package/tools/index.d.ts +0 -10
  366. package/tools/index.d.ts.map +0 -1
  367. package/tools/index.js +0 -145
  368. package/tools/index.js.map +0 -1
  369. package/tools/index.mjs +0 -138
  370. package/tools/index.mjs.map +0 -1
  371. package/tools/jobs/automated/create-jobs-automated.d.mts +0 -51
  372. package/tools/jobs/automated/create-jobs-automated.d.mts.map +0 -1
  373. package/tools/jobs/automated/create-jobs-automated.d.ts +0 -51
  374. package/tools/jobs/automated/create-jobs-automated.d.ts.map +0 -1
  375. package/tools/jobs/automated/create-jobs-automated.js +0 -82
  376. package/tools/jobs/automated/create-jobs-automated.js.map +0 -1
  377. package/tools/jobs/automated/create-jobs-automated.mjs +0 -75
  378. package/tools/jobs/automated/create-jobs-automated.mjs.map +0 -1
  379. package/tools/jobs/automated/list-jobs-automated.d.mts +0 -51
  380. package/tools/jobs/automated/list-jobs-automated.d.mts.map +0 -1
  381. package/tools/jobs/automated/list-jobs-automated.d.ts +0 -51
  382. package/tools/jobs/automated/list-jobs-automated.d.ts.map +0 -1
  383. package/tools/jobs/automated/list-jobs-automated.js +0 -59
  384. package/tools/jobs/automated/list-jobs-automated.js.map +0 -1
  385. package/tools/jobs/automated/list-jobs-automated.mjs +0 -52
  386. package/tools/jobs/automated/list-jobs-automated.mjs.map +0 -1
  387. package/tools/jobs/automated/retrieve-jobs-automated.d.mts +0 -51
  388. package/tools/jobs/automated/retrieve-jobs-automated.d.mts.map +0 -1
  389. package/tools/jobs/automated/retrieve-jobs-automated.d.ts +0 -51
  390. package/tools/jobs/automated/retrieve-jobs-automated.d.ts.map +0 -1
  391. package/tools/jobs/automated/retrieve-jobs-automated.js +0 -54
  392. package/tools/jobs/automated/retrieve-jobs-automated.js.map +0 -1
  393. package/tools/jobs/automated/retrieve-jobs-automated.mjs +0 -47
  394. package/tools/jobs/automated/retrieve-jobs-automated.mjs.map +0 -1
  395. package/tools/jobs/manual/retrieve-jobs-manual.d.mts +0 -51
  396. package/tools/jobs/manual/retrieve-jobs-manual.d.mts.map +0 -1
  397. package/tools/jobs/manual/retrieve-jobs-manual.d.ts +0 -51
  398. package/tools/jobs/manual/retrieve-jobs-manual.d.ts.map +0 -1
  399. package/tools/jobs/manual/retrieve-jobs-manual.js +0 -54
  400. package/tools/jobs/manual/retrieve-jobs-manual.js.map +0 -1
  401. package/tools/jobs/manual/retrieve-jobs-manual.mjs +0 -47
  402. package/tools/jobs/manual/retrieve-jobs-manual.mjs.map +0 -1
  403. package/tools/payroll/pay-groups/list-payroll-pay-groups.d.mts +0 -51
  404. package/tools/payroll/pay-groups/list-payroll-pay-groups.d.mts.map +0 -1
  405. package/tools/payroll/pay-groups/list-payroll-pay-groups.d.ts +0 -51
  406. package/tools/payroll/pay-groups/list-payroll-pay-groups.d.ts.map +0 -1
  407. package/tools/payroll/pay-groups/list-payroll-pay-groups.js +0 -68
  408. package/tools/payroll/pay-groups/list-payroll-pay-groups.js.map +0 -1
  409. package/tools/payroll/pay-groups/list-payroll-pay-groups.mjs +0 -61
  410. package/tools/payroll/pay-groups/list-payroll-pay-groups.mjs.map +0 -1
  411. package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.d.mts +0 -51
  412. package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.d.mts.map +0 -1
  413. package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.d.ts +0 -51
  414. package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.d.ts.map +0 -1
  415. package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.js +0 -61
  416. package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.js.map +0 -1
  417. package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.mjs +0 -54
  418. package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.mjs.map +0 -1
  419. package/tools/providers/list-providers.d.mts +0 -51
  420. package/tools/providers/list-providers.d.mts.map +0 -1
  421. package/tools/providers/list-providers.d.ts +0 -51
  422. package/tools/providers/list-providers.d.ts.map +0 -1
  423. package/tools/providers/list-providers.js +0 -52
  424. package/tools/providers/list-providers.js.map +0 -1
  425. package/tools/providers/list-providers.mjs +0 -45
  426. package/tools/providers/list-providers.mjs.map +0 -1
  427. package/tools/request-forwarding/forward-request-forwarding.d.mts +0 -51
  428. package/tools/request-forwarding/forward-request-forwarding.d.mts.map +0 -1
  429. package/tools/request-forwarding/forward-request-forwarding.d.ts +0 -51
  430. package/tools/request-forwarding/forward-request-forwarding.d.ts.map +0 -1
  431. package/tools/request-forwarding/forward-request-forwarding.js +0 -71
  432. package/tools/request-forwarding/forward-request-forwarding.js.map +0 -1
  433. package/tools/request-forwarding/forward-request-forwarding.mjs +0 -64
  434. package/tools/request-forwarding/forward-request-forwarding.mjs.map +0 -1
  435. package/tools/sandbox/company/update-sandbox-company.d.mts +0 -51
  436. package/tools/sandbox/company/update-sandbox-company.d.mts.map +0 -1
  437. package/tools/sandbox/company/update-sandbox-company.d.ts +0 -51
  438. package/tools/sandbox/company/update-sandbox-company.d.ts.map +0 -1
  439. package/tools/sandbox/company/update-sandbox-company.js +0 -190
  440. package/tools/sandbox/company/update-sandbox-company.js.map +0 -1
  441. package/tools/sandbox/company/update-sandbox-company.mjs +0 -183
  442. package/tools/sandbox/company/update-sandbox-company.mjs.map +0 -1
  443. package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.d.mts +0 -51
  444. package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.d.mts.map +0 -1
  445. package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.d.ts +0 -51
  446. package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.d.ts.map +0 -1
  447. package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.js +0 -68
  448. package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.js.map +0 -1
  449. package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.mjs +0 -61
  450. package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.mjs.map +0 -1
  451. package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.d.mts +0 -51
  452. package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.d.mts.map +0 -1
  453. package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.d.ts +0 -51
  454. package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.d.ts.map +0 -1
  455. package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.js +0 -60
  456. package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.js.map +0 -1
  457. package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.mjs +0 -53
  458. package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.mjs.map +0 -1
  459. package/tools/sandbox/connections/create-sandbox-connections.d.mts +0 -51
  460. package/tools/sandbox/connections/create-sandbox-connections.d.mts.map +0 -1
  461. package/tools/sandbox/connections/create-sandbox-connections.d.ts +0 -51
  462. package/tools/sandbox/connections/create-sandbox-connections.d.ts.map +0 -1
  463. package/tools/sandbox/connections/create-sandbox-connections.js +0 -68
  464. package/tools/sandbox/connections/create-sandbox-connections.js.map +0 -1
  465. package/tools/sandbox/connections/create-sandbox-connections.mjs +0 -61
  466. package/tools/sandbox/connections/create-sandbox-connections.mjs.map +0 -1
  467. package/tools/sandbox/directory/create-sandbox-directory.d.mts +0 -51
  468. package/tools/sandbox/directory/create-sandbox-directory.d.mts.map +0 -1
  469. package/tools/sandbox/directory/create-sandbox-directory.d.ts +0 -51
  470. package/tools/sandbox/directory/create-sandbox-directory.d.ts.map +0 -1
  471. package/tools/sandbox/directory/create-sandbox-directory.js +0 -311
  472. package/tools/sandbox/directory/create-sandbox-directory.js.map +0 -1
  473. package/tools/sandbox/directory/create-sandbox-directory.mjs +0 -304
  474. package/tools/sandbox/directory/create-sandbox-directory.mjs.map +0 -1
  475. package/tools/sandbox/employment/update-sandbox-employment.d.mts +0 -51
  476. package/tools/sandbox/employment/update-sandbox-employment.d.mts.map +0 -1
  477. package/tools/sandbox/employment/update-sandbox-employment.d.ts +0 -51
  478. package/tools/sandbox/employment/update-sandbox-employment.d.ts.map +0 -1
  479. package/tools/sandbox/employment/update-sandbox-employment.js +0 -233
  480. package/tools/sandbox/employment/update-sandbox-employment.js.map +0 -1
  481. package/tools/sandbox/employment/update-sandbox-employment.mjs +0 -226
  482. package/tools/sandbox/employment/update-sandbox-employment.mjs.map +0 -1
  483. package/tools/sandbox/individual/update-sandbox-individual.d.mts +0 -51
  484. package/tools/sandbox/individual/update-sandbox-individual.d.mts.map +0 -1
  485. package/tools/sandbox/individual/update-sandbox-individual.d.ts +0 -51
  486. package/tools/sandbox/individual/update-sandbox-individual.d.ts.map +0 -1
  487. package/tools/sandbox/individual/update-sandbox-individual.js +0 -173
  488. package/tools/sandbox/individual/update-sandbox-individual.js.map +0 -1
  489. package/tools/sandbox/individual/update-sandbox-individual.mjs +0 -166
  490. package/tools/sandbox/individual/update-sandbox-individual.mjs.map +0 -1
  491. package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.d.mts +0 -51
  492. package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.d.mts.map +0 -1
  493. package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.d.ts +0 -51
  494. package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.d.ts.map +0 -1
  495. package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.js +0 -51
  496. package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.js.map +0 -1
  497. package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.mjs +0 -44
  498. package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.mjs.map +0 -1
  499. package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.d.mts +0 -51
  500. package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.d.mts.map +0 -1
  501. package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.d.ts +0 -51
  502. package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.d.ts.map +0 -1
  503. package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.js +0 -59
  504. package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.js.map +0 -1
  505. package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.mjs +0 -52
  506. package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.mjs.map +0 -1
  507. package/tools/sandbox/jobs/create-sandbox-jobs.d.mts +0 -51
  508. package/tools/sandbox/jobs/create-sandbox-jobs.d.mts.map +0 -1
  509. package/tools/sandbox/jobs/create-sandbox-jobs.d.ts +0 -51
  510. package/tools/sandbox/jobs/create-sandbox-jobs.d.ts.map +0 -1
  511. package/tools/sandbox/jobs/create-sandbox-jobs.js +0 -54
  512. package/tools/sandbox/jobs/create-sandbox-jobs.js.map +0 -1
  513. package/tools/sandbox/jobs/create-sandbox-jobs.mjs +0 -47
  514. package/tools/sandbox/jobs/create-sandbox-jobs.mjs.map +0 -1
  515. package/tools/sandbox/payment/create-sandbox-payment.d.mts +0 -51
  516. package/tools/sandbox/payment/create-sandbox-payment.d.mts.map +0 -1
  517. package/tools/sandbox/payment/create-sandbox-payment.d.ts +0 -51
  518. package/tools/sandbox/payment/create-sandbox-payment.d.ts.map +0 -1
  519. package/tools/sandbox/payment/create-sandbox-payment.js +0 -224
  520. package/tools/sandbox/payment/create-sandbox-payment.js.map +0 -1
  521. package/tools/sandbox/payment/create-sandbox-payment.mjs +0 -217
  522. package/tools/sandbox/payment/create-sandbox-payment.mjs.map +0 -1
  523. package/tools/types.d.mts.map +0 -1
  524. package/tools/types.d.ts.map +0 -1
  525. package/tools/types.js.map +0 -1
  526. package/tools/types.mjs.map +0 -1
  527. package/tools.d.mts +0 -2
  528. package/tools.d.mts.map +0 -1
  529. package/tools.d.ts +0 -2
  530. package/tools.d.ts.map +0 -1
  531. package/tools.js +0 -18
  532. package/tools.js.map +0 -1
  533. package/tools.mjs +0 -2
  534. package/tools.mjs.map +0 -1
  535. /package/{tools/types.js → types.js} +0 -0
  536. /package/{tools/types.mjs → types.mjs} +0 -0
@@ -1,63 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { isJqError, maybeFilter } from '@tryfinch/finch-api-mcp/filtering';
4
- import { Metadata, asErrorResult, asTextContentResult } from '@tryfinch/finch-api-mcp/tools/types';
5
-
6
- import { Tool } from '@modelcontextprotocol/sdk/types.js';
7
- import Finch from '@tryfinch/finch-api';
8
-
9
- export const metadata: Metadata = {
10
- resource: 'hris.benefits',
11
- operation: 'read',
12
- tags: [],
13
- httpMethod: 'get',
14
- httpPath: '/employer/benefits/{benefit_id}',
15
- operationId: 'get-company-benefit',
16
- };
17
-
18
- export const tool: Tool = {
19
- name: 'retrieve_hris_benefits',
20
- description:
21
- "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nLists deductions and contributions information for a given item\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/company_benefit',\n $defs: {\n company_benefit: {\n type: 'object',\n title: 'CompanyBenefit',\n properties: {\n benefit_id: {\n type: 'string',\n description: 'The id of the benefit.'\n },\n description: {\n type: 'string'\n },\n frequency: {\n $ref: '#/$defs/benefit_frequency'\n },\n type: {\n $ref: '#/$defs/benefit_type'\n },\n company_contribution: {\n type: 'object',\n title: 'BenefitCompanyMatchContribution',\n description: 'The company match for this benefit.',\n properties: {\n tiers: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n match: {\n type: 'integer'\n },\n threshold: {\n type: 'integer'\n }\n },\n required: [ 'match',\n 'threshold'\n ]\n }\n },\n type: {\n type: 'string',\n enum: [ 'match'\n ]\n }\n },\n required: [ 'tiers',\n 'type'\n ]\n }\n },\n required: [ 'benefit_id',\n 'description',\n 'frequency',\n 'type'\n ]\n },\n benefit_frequency: {\n type: 'string',\n title: 'BenefitFrequency',\n description: 'The frequency of the benefit deduction/contribution.',\n enum: [ 'every_paycheck',\n 'monthly',\n 'one_time'\n ]\n },\n benefit_type: {\n type: 'string',\n title: 'BenefitType',\n description: 'Type of benefit.',\n enum: [ '457',\n '401k',\n '401k_roth',\n '401k_loan',\n '403b',\n '403b_roth',\n '457_roth',\n 'commuter',\n 'custom_post_tax',\n 'custom_pre_tax',\n 'fsa_dependent_care',\n 'fsa_medical',\n 'hsa_post',\n 'hsa_pre',\n 's125_dental',\n 's125_medical',\n 's125_vision',\n 'simple',\n 'simple_ira'\n ]\n }\n }\n}\n```",
22
- inputSchema: {
23
- type: 'object',
24
- properties: {
25
- benefit_id: {
26
- type: 'string',
27
- },
28
- entity_ids: {
29
- type: 'array',
30
- description: "The entity IDs to specify which entities' data to access.",
31
- items: {
32
- type: 'string',
33
- },
34
- },
35
- jq_filter: {
36
- type: 'string',
37
- title: 'jq Filter',
38
- description:
39
- 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
40
- },
41
- },
42
- required: ['benefit_id'],
43
- },
44
- annotations: {
45
- readOnlyHint: true,
46
- },
47
- };
48
-
49
- export const handler = async (client: Finch, args: Record<string, unknown> | undefined) => {
50
- const { benefit_id, jq_filter, ...body } = args as any;
51
- try {
52
- return asTextContentResult(
53
- await maybeFilter(jq_filter, await client.hris.benefits.retrieve(benefit_id, body)),
54
- );
55
- } catch (error) {
56
- if (error instanceof Finch.APIError || isJqError(error)) {
57
- return asErrorResult(error.message);
58
- }
59
- throw error;
60
- }
61
- };
62
-
63
- export default { metadata, tool, handler };
@@ -1,65 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { isJqError, maybeFilter } from '@tryfinch/finch-api-mcp/filtering';
4
- import { Metadata, asErrorResult, asTextContentResult } from '@tryfinch/finch-api-mcp/tools/types';
5
-
6
- import { Tool } from '@modelcontextprotocol/sdk/types.js';
7
- import Finch from '@tryfinch/finch-api';
8
-
9
- export const metadata: Metadata = {
10
- resource: 'hris.benefits',
11
- operation: 'write',
12
- tags: [],
13
- httpMethod: 'post',
14
- httpPath: '/employer/benefits/{benefit_id}',
15
- operationId: 'update-company-benefits',
16
- };
17
-
18
- export const tool: Tool = {
19
- name: 'update_hris_benefits',
20
- description:
21
- "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nUpdates an existing company-wide deduction or contribution\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/update_company_benefit_response',\n $defs: {\n update_company_benefit_response: {\n type: 'object',\n properties: {\n benefit_id: {\n type: 'string',\n description: 'The id of the benefit.'\n },\n job_id: {\n type: 'string'\n }\n },\n required: [ 'benefit_id',\n 'job_id'\n ]\n }\n }\n}\n```",
22
- inputSchema: {
23
- type: 'object',
24
- properties: {
25
- benefit_id: {
26
- type: 'string',
27
- },
28
- entity_ids: {
29
- type: 'array',
30
- description: "The entity IDs to specify which entities' data to access.",
31
- items: {
32
- type: 'string',
33
- },
34
- },
35
- description: {
36
- type: 'string',
37
- description: 'Updated name or description.',
38
- },
39
- jq_filter: {
40
- type: 'string',
41
- title: 'jq Filter',
42
- description:
43
- 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
44
- },
45
- },
46
- required: ['benefit_id'],
47
- },
48
- annotations: {},
49
- };
50
-
51
- export const handler = async (client: Finch, args: Record<string, unknown> | undefined) => {
52
- const { benefit_id, jq_filter, ...body } = args as any;
53
- try {
54
- return asTextContentResult(
55
- await maybeFilter(jq_filter, await client.hris.benefits.update(benefit_id, body)),
56
- );
57
- } catch (error) {
58
- if (error instanceof Finch.APIError || isJqError(error)) {
59
- return asErrorResult(error.message);
60
- }
61
- throw error;
62
- }
63
- };
64
-
65
- export default { metadata, tool, handler };
@@ -1,88 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { isJqError, maybeFilter } from '@tryfinch/finch-api-mcp/filtering';
4
- import { Metadata, asErrorResult, asTextContentResult } from '@tryfinch/finch-api-mcp/tools/types';
5
-
6
- import { Tool } from '@modelcontextprotocol/sdk/types.js';
7
- import Finch from '@tryfinch/finch-api';
8
-
9
- export const metadata: Metadata = {
10
- resource: 'hris.company.pay_statement_item',
11
- operation: 'read',
12
- tags: [],
13
- httpMethod: 'get',
14
- httpPath: '/employer/pay-statement-item',
15
- operationId: 'get-pay-statement-item',
16
- };
17
-
18
- export const tool: Tool = {
19
- name: 'list_company_hris_pay_statement_item',
20
- description:
21
- "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\n**Beta:** this endpoint currently serves employers onboarded after March 4th and historical support will be added soon\n Retrieve a list of detailed pay statement items for the access token's connection account.\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n responses: {\n type: 'array',\n items: {\n $ref: '#/$defs/pay_statement_item_list_response'\n }\n }\n },\n required: [ 'responses'\n ],\n $defs: {\n pay_statement_item_list_response: {\n type: 'object',\n properties: {\n attributes: {\n type: 'object',\n description: 'The attributes of the pay statement item.',\n properties: {\n metadata: {\n type: 'object',\n description: 'The metadata of the pay statement item derived by the rules engine if available. Each attribute will be a key-value pair defined by a rule.',\n additionalProperties: true\n },\n employer: {\n type: 'boolean',\n description: '`true` if the amount is paid by the employers. This field is only available for taxes.'\n },\n pre_tax: {\n type: 'boolean',\n description: '`true` if the pay statement item is pre-tax. This field is only available for employee deductions.'\n },\n type: {\n type: 'string',\n description: 'The type of the pay statement item.'\n }\n },\n required: [ 'metadata'\n ]\n },\n category: {\n type: 'string',\n description: 'The category of the pay statement item.',\n enum: [ 'earnings',\n 'taxes',\n 'employee_deductions',\n 'employer_contributions'\n ]\n },\n name: {\n type: 'string',\n description: 'The name of the pay statement item.'\n }\n },\n required: [ 'attributes',\n 'category',\n 'name'\n ]\n }\n }\n}\n```",
22
- inputSchema: {
23
- type: 'object',
24
- properties: {
25
- categories: {
26
- type: 'array',
27
- description:
28
- 'Comma-delimited list of pay statement item categories to filter on. If empty, defaults to all categories.',
29
- items: {
30
- type: 'string',
31
- enum: ['earnings', 'taxes', 'employee_deductions', 'employer_contributions'],
32
- },
33
- },
34
- end_date: {
35
- type: 'string',
36
- description:
37
- 'The end date to retrieve pay statement items by via their last seen pay date in `YYYY-MM-DD` format.',
38
- format: 'date',
39
- },
40
- entity_ids: {
41
- type: 'array',
42
- description: "The entity IDs to specify which entities' data to access.",
43
- items: {
44
- type: 'string',
45
- },
46
- },
47
- name: {
48
- type: 'string',
49
- description: 'Case-insensitive partial match search by pay statement item name.',
50
- },
51
- start_date: {
52
- type: 'string',
53
- description:
54
- 'The start date to retrieve pay statement items by via their last seen pay date (inclusive) in `YYYY-MM-DD` format.',
55
- format: 'date',
56
- },
57
- type: {
58
- type: 'string',
59
- description: 'String search by pay statement item type.',
60
- },
61
- jq_filter: {
62
- type: 'string',
63
- title: 'jq Filter',
64
- description:
65
- 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
66
- },
67
- },
68
- required: [],
69
- },
70
- annotations: {
71
- readOnlyHint: true,
72
- },
73
- };
74
-
75
- export const handler = async (client: Finch, args: Record<string, unknown> | undefined) => {
76
- const { jq_filter, ...body } = args as any;
77
- const response = await client.hris.company.payStatementItem.list(body).asResponse();
78
- try {
79
- return asTextContentResult(await maybeFilter(jq_filter, await response.json()));
80
- } catch (error) {
81
- if (error instanceof Finch.APIError || isJqError(error)) {
82
- return asErrorResult(error.message);
83
- }
84
- throw error;
85
- }
86
- };
87
-
88
- export default { metadata, tool, handler };
@@ -1,106 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { isJqError, maybeFilter } from '@tryfinch/finch-api-mcp/filtering';
4
- import { Metadata, asErrorResult, asTextContentResult } from '@tryfinch/finch-api-mcp/tools/types';
5
-
6
- import { Tool } from '@modelcontextprotocol/sdk/types.js';
7
- import Finch from '@tryfinch/finch-api';
8
-
9
- export const metadata: Metadata = {
10
- resource: 'hris.company.pay_statement_item.rules',
11
- operation: 'write',
12
- tags: [],
13
- httpMethod: 'post',
14
- httpPath: '/employer/pay-statement-item/rule',
15
- operationId: 'create-rule',
16
- };
17
-
18
- export const tool: Tool = {
19
- name: 'create_pay_statement_item_company_hris_rules',
20
- description:
21
- "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\n**Beta:** this endpoint currently serves employers onboarded after March 4th and historical support will be added soon\nCustom rules can be created to associate specific attributes to pay statement items depending on the use case. For example, pay statement items that meet certain conditions can be labeled as a pre-tax 401k. This metadata can be retrieved where pay statement item information is available.\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/rule_create_response',\n $defs: {\n rule_create_response: {\n type: 'object',\n properties: {\n id: {\n type: 'string',\n description: 'Finch id (uuidv4) for the rule.'\n },\n attributes: {\n type: 'object',\n description: 'Specifies the fields to be applied when the condition is met.',\n properties: {\n metadata: {\n type: 'object',\n description: 'The metadata to be attached in the entity. It is a key-value pairs where the values can be of any type (string, number, boolean, object, array, etc.).',\n additionalProperties: true\n }\n }\n },\n conditions: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n field: {\n type: 'string',\n description: 'The field to be checked in the rule.'\n },\n operator: {\n type: 'string',\n description: 'The operator to be used in the rule.',\n enum: [ 'equals'\n ]\n },\n value: {\n type: 'string',\n description: 'The value of the field to be checked in the rule.'\n }\n }\n }\n },\n created_at: {\n type: 'string',\n description: 'The datetime when the rule was created.',\n format: 'date-time'\n },\n effective_end_date: {\n type: 'string',\n title: 'Date',\n description: 'Specifies when the rules should stop applying rules based on the date.'\n },\n effective_start_date: {\n type: 'string',\n title: 'Date',\n description: 'Specifies when the rule should begin applying based on the date.'\n },\n entity_type: {\n type: 'string',\n description: 'The entity type to which the rule is applied.',\n enum: [ 'pay_statement_item'\n ]\n },\n priority: {\n type: 'integer',\n description: 'The priority of the rule.'\n },\n updated_at: {\n type: 'string',\n description: 'The datetime when the rule was last updated.',\n format: 'date-time'\n }\n }\n }\n }\n}\n```",
22
- inputSchema: {
23
- type: 'object',
24
- properties: {
25
- entity_ids: {
26
- type: 'array',
27
- description: 'The entity IDs to create the rule for.',
28
- items: {
29
- type: 'string',
30
- },
31
- },
32
- attributes: {
33
- type: 'object',
34
- description: 'Specifies the fields to be applied when the condition is met.',
35
- properties: {
36
- metadata: {
37
- type: 'object',
38
- description:
39
- 'The metadata to be attached in the entity. It is a key-value pairs where the values can be of any type (string, number, boolean, object, array, etc.).',
40
- additionalProperties: true,
41
- },
42
- },
43
- },
44
- conditions: {
45
- type: 'array',
46
- items: {
47
- type: 'object',
48
- properties: {
49
- field: {
50
- type: 'string',
51
- description: 'The field to be checked in the rule.',
52
- },
53
- operator: {
54
- type: 'string',
55
- description: 'The operator to be used in the rule.',
56
- enum: ['equals'],
57
- },
58
- value: {
59
- type: 'string',
60
- description: 'The value of the field to be checked in the rule.',
61
- },
62
- },
63
- },
64
- },
65
- effective_end_date: {
66
- type: 'string',
67
- title: 'Date',
68
- description: 'Specifies when the rules should stop applying rules based on the date.',
69
- },
70
- effective_start_date: {
71
- type: 'string',
72
- title: 'Date',
73
- description: 'Specifies when the rule should begin applying based on the date.',
74
- },
75
- entity_type: {
76
- type: 'string',
77
- description: 'The entity type to which the rule is applied.',
78
- enum: ['pay_statement_item'],
79
- },
80
- jq_filter: {
81
- type: 'string',
82
- title: 'jq Filter',
83
- description:
84
- 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
85
- },
86
- },
87
- required: [],
88
- },
89
- annotations: {},
90
- };
91
-
92
- export const handler = async (client: Finch, args: Record<string, unknown> | undefined) => {
93
- const { jq_filter, ...body } = args as any;
94
- try {
95
- return asTextContentResult(
96
- await maybeFilter(jq_filter, await client.hris.company.payStatementItem.rules.create(body)),
97
- );
98
- } catch (error) {
99
- if (error instanceof Finch.APIError || isJqError(error)) {
100
- return asErrorResult(error.message);
101
- }
102
- throw error;
103
- }
104
- };
105
-
106
- export default { metadata, tool, handler };
@@ -1,63 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { isJqError, maybeFilter } from '@tryfinch/finch-api-mcp/filtering';
4
- import { Metadata, asErrorResult, asTextContentResult } from '@tryfinch/finch-api-mcp/tools/types';
5
-
6
- import { Tool } from '@modelcontextprotocol/sdk/types.js';
7
- import Finch from '@tryfinch/finch-api';
8
-
9
- export const metadata: Metadata = {
10
- resource: 'hris.company.pay_statement_item.rules',
11
- operation: 'write',
12
- tags: [],
13
- httpMethod: 'delete',
14
- httpPath: '/employer/pay-statement-item/rule/{rule_id}',
15
- operationId: 'delete-rule',
16
- };
17
-
18
- export const tool: Tool = {
19
- name: 'delete_pay_statement_item_company_hris_rules',
20
- description:
21
- "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\n**Beta:** this endpoint currently serves employers onboarded after March 4th and historical support will be added soon\nDelete a rule for a pay statement item.\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/rule_delete_response',\n $defs: {\n rule_delete_response: {\n type: 'object',\n properties: {\n id: {\n type: 'string',\n description: 'Finch id (uuidv4) for the rule.'\n },\n attributes: {\n type: 'object',\n description: 'Specifies the fields to be applied when the condition is met.',\n properties: {\n metadata: {\n type: 'object',\n description: 'The metadata to be attached in the entity. It is a key-value pairs where the values can be of any type (string, number, boolean, object, array, etc.).',\n additionalProperties: true\n }\n }\n },\n conditions: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n field: {\n type: 'string',\n description: 'The field to be checked in the rule.'\n },\n operator: {\n type: 'string',\n description: 'The operator to be used in the rule.',\n enum: [ 'equals'\n ]\n },\n value: {\n type: 'string',\n description: 'The value of the field to be checked in the rule.'\n }\n }\n }\n },\n created_at: {\n type: 'string',\n description: 'The datetime when the rule was created.',\n format: 'date-time'\n },\n deleted_at: {\n type: 'string',\n description: 'The datetime when the rule was deleted.',\n format: 'date-time'\n },\n effective_end_date: {\n type: 'string',\n title: 'Date',\n description: 'Specifies when the rules should stop applying rules based on the date.'\n },\n effective_start_date: {\n type: 'string',\n title: 'Date',\n description: 'Specifies when the rule should begin applying based on the date.'\n },\n entity_type: {\n type: 'string',\n description: 'The entity type to which the rule is applied.',\n enum: [ 'pay_statement_item'\n ]\n },\n priority: {\n type: 'integer',\n description: 'The priority of the rule.'\n },\n updated_at: {\n type: 'string',\n description: 'The datetime when the rule was last updated.',\n format: 'date-time'\n }\n }\n }\n }\n}\n```",
22
- inputSchema: {
23
- type: 'object',
24
- properties: {
25
- rule_id: {
26
- type: 'string',
27
- },
28
- entity_ids: {
29
- type: 'array',
30
- description: 'The entity IDs to delete the rule for.',
31
- items: {
32
- type: 'string',
33
- },
34
- },
35
- jq_filter: {
36
- type: 'string',
37
- title: 'jq Filter',
38
- description:
39
- 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
40
- },
41
- },
42
- required: ['rule_id'],
43
- },
44
- annotations: {
45
- idempotentHint: true,
46
- },
47
- };
48
-
49
- export const handler = async (client: Finch, args: Record<string, unknown> | undefined) => {
50
- const { rule_id, jq_filter, ...body } = args as any;
51
- try {
52
- return asTextContentResult(
53
- await maybeFilter(jq_filter, await client.hris.company.payStatementItem.rules.delete(rule_id, body)),
54
- );
55
- } catch (error) {
56
- if (error instanceof Finch.APIError || isJqError(error)) {
57
- return asErrorResult(error.message);
58
- }
59
- throw error;
60
- }
61
- };
62
-
63
- export default { metadata, tool, handler };
@@ -1,59 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { isJqError, maybeFilter } from '@tryfinch/finch-api-mcp/filtering';
4
- import { Metadata, asErrorResult, asTextContentResult } from '@tryfinch/finch-api-mcp/tools/types';
5
-
6
- import { Tool } from '@modelcontextprotocol/sdk/types.js';
7
- import Finch from '@tryfinch/finch-api';
8
-
9
- export const metadata: Metadata = {
10
- resource: 'hris.company.pay_statement_item.rules',
11
- operation: 'read',
12
- tags: [],
13
- httpMethod: 'get',
14
- httpPath: '/employer/pay-statement-item/rule',
15
- operationId: 'get-rules',
16
- };
17
-
18
- export const tool: Tool = {
19
- name: 'list_pay_statement_item_company_hris_rules',
20
- description:
21
- "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\n**Beta:** this endpoint currently serves employers onboarded after March 4th and historical support will be added soon\nList all rules of a connection account.\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n responses: {\n type: 'array',\n items: {\n $ref: '#/$defs/rule_list_response'\n }\n }\n },\n required: [ 'responses'\n ],\n $defs: {\n rule_list_response: {\n type: 'object',\n properties: {\n id: {\n type: 'string',\n description: 'Finch id (uuidv4) for the rule.'\n },\n attributes: {\n type: 'object',\n description: 'Specifies the fields to be applied when the condition is met.',\n properties: {\n metadata: {\n type: 'object',\n description: 'The metadata to be attached in the entity. It is a key-value pairs where the values can be of any type (string, number, boolean, object, array, etc.).',\n additionalProperties: true\n }\n }\n },\n conditions: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n field: {\n type: 'string',\n description: 'The field to be checked in the rule.'\n },\n operator: {\n type: 'string',\n description: 'The operator to be used in the rule.',\n enum: [ 'equals'\n ]\n },\n value: {\n type: 'string',\n description: 'The value of the field to be checked in the rule.'\n }\n }\n }\n },\n created_at: {\n type: 'string',\n description: 'The datetime when the rule was created.',\n format: 'date-time'\n },\n effective_end_date: {\n type: 'string',\n title: 'Date',\n description: 'Specifies when the rules should stop applying rules based on the date.'\n },\n effective_start_date: {\n type: 'string',\n title: 'Date',\n description: 'Specifies when the rule should begin applying based on the date.'\n },\n entity_type: {\n type: 'string',\n description: 'The entity type to which the rule is applied.',\n enum: [ 'pay_statement_item'\n ]\n },\n priority: {\n type: 'integer',\n description: 'The priority of the rule.'\n },\n updated_at: {\n type: 'string',\n description: 'The datetime when the rule was last updated.',\n format: 'date-time'\n }\n }\n }\n }\n}\n```",
22
- inputSchema: {
23
- type: 'object',
24
- properties: {
25
- entity_ids: {
26
- type: 'array',
27
- description: 'The entity IDs to retrieve rules for.',
28
- items: {
29
- type: 'string',
30
- },
31
- },
32
- jq_filter: {
33
- type: 'string',
34
- title: 'jq Filter',
35
- description:
36
- 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
37
- },
38
- },
39
- required: [],
40
- },
41
- annotations: {
42
- readOnlyHint: true,
43
- },
44
- };
45
-
46
- export const handler = async (client: Finch, args: Record<string, unknown> | undefined) => {
47
- const { jq_filter, ...body } = args as any;
48
- const response = await client.hris.company.payStatementItem.rules.list(body).asResponse();
49
- try {
50
- return asTextContentResult(await maybeFilter(jq_filter, await response.json()));
51
- } catch (error) {
52
- if (error instanceof Finch.APIError || isJqError(error)) {
53
- return asErrorResult(error.message);
54
- }
55
- throw error;
56
- }
57
- };
58
-
59
- export default { metadata, tool, handler };
@@ -1,67 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { isJqError, maybeFilter } from '@tryfinch/finch-api-mcp/filtering';
4
- import { Metadata, asErrorResult, asTextContentResult } from '@tryfinch/finch-api-mcp/tools/types';
5
-
6
- import { Tool } from '@modelcontextprotocol/sdk/types.js';
7
- import Finch from '@tryfinch/finch-api';
8
-
9
- export const metadata: Metadata = {
10
- resource: 'hris.company.pay_statement_item.rules',
11
- operation: 'write',
12
- tags: [],
13
- httpMethod: 'put',
14
- httpPath: '/employer/pay-statement-item/rule/{rule_id}',
15
- operationId: 'update-rule',
16
- };
17
-
18
- export const tool: Tool = {
19
- name: 'update_pay_statement_item_company_hris_rules',
20
- description:
21
- "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\n**Beta:** this endpoint currently serves employers onboarded after March 4th and historical support will be added soon\nUpdate a rule for a pay statement item.\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/rule_update_response',\n $defs: {\n rule_update_response: {\n type: 'object',\n properties: {\n id: {\n type: 'string',\n description: 'Finch id (uuidv4) for the rule.'\n },\n attributes: {\n type: 'object',\n description: 'Specifies the fields to be applied when the condition is met.',\n properties: {\n metadata: {\n type: 'object',\n description: 'The metadata to be attached in the entity. It is a key-value pairs where the values can be of any type (string, number, boolean, object, array, etc.).',\n additionalProperties: true\n }\n }\n },\n conditions: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n field: {\n type: 'string',\n description: 'The field to be checked in the rule.'\n },\n operator: {\n type: 'string',\n description: 'The operator to be used in the rule.',\n enum: [ 'equals'\n ]\n },\n value: {\n type: 'string',\n description: 'The value of the field to be checked in the rule.'\n }\n }\n }\n },\n created_at: {\n type: 'string',\n description: 'The datetime when the rule was created.',\n format: 'date-time'\n },\n effective_end_date: {\n type: 'string',\n title: 'Date',\n description: 'Specifies when the rules should stop applying rules based on the date.'\n },\n effective_start_date: {\n type: 'string',\n title: 'Date',\n description: 'Specifies when the rule should begin applying based on the date.'\n },\n entity_type: {\n type: 'string',\n description: 'The entity type to which the rule is applied.',\n enum: [ 'pay_statement_item'\n ]\n },\n priority: {\n type: 'integer',\n description: 'The priority of the rule.'\n },\n updated_at: {\n type: 'string',\n description: 'The datetime when the rule was last updated.',\n format: 'date-time'\n }\n }\n }\n }\n}\n```",
22
- inputSchema: {
23
- type: 'object',
24
- properties: {
25
- rule_id: {
26
- type: 'string',
27
- },
28
- entity_ids: {
29
- type: 'array',
30
- description: 'The entity IDs to update the rule for.',
31
- items: {
32
- type: 'string',
33
- },
34
- },
35
- optionalProperty: {
36
- type: 'object',
37
- additionalProperties: true,
38
- },
39
- jq_filter: {
40
- type: 'string',
41
- title: 'jq Filter',
42
- description:
43
- 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
44
- },
45
- },
46
- required: ['rule_id'],
47
- },
48
- annotations: {
49
- idempotentHint: true,
50
- },
51
- };
52
-
53
- export const handler = async (client: Finch, args: Record<string, unknown> | undefined) => {
54
- const { rule_id, jq_filter, ...body } = args as any;
55
- try {
56
- return asTextContentResult(
57
- await maybeFilter(jq_filter, await client.hris.company.payStatementItem.rules.update(rule_id, body)),
58
- );
59
- } catch (error) {
60
- if (error instanceof Finch.APIError || isJqError(error)) {
61
- return asErrorResult(error.message);
62
- }
63
- throw error;
64
- }
65
- };
66
-
67
- export default { metadata, tool, handler };
@@ -1,58 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { isJqError, maybeFilter } from '@tryfinch/finch-api-mcp/filtering';
4
- import { Metadata, asErrorResult, asTextContentResult } from '@tryfinch/finch-api-mcp/tools/types';
5
-
6
- import { Tool } from '@modelcontextprotocol/sdk/types.js';
7
- import Finch from '@tryfinch/finch-api';
8
-
9
- export const metadata: Metadata = {
10
- resource: 'hris.company',
11
- operation: 'read',
12
- tags: [],
13
- httpMethod: 'get',
14
- httpPath: '/employer/company',
15
- operationId: 'get-company',
16
- };
17
-
18
- export const tool: Tool = {
19
- name: 'retrieve_hris_company',
20
- description:
21
- "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nRead basic company data\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/company',\n $defs: {\n company: {\n type: 'object',\n title: 'GetCompany',\n properties: {\n id: {\n type: 'string',\n description: 'A stable Finch `id` (UUID v4) for the company.'\n },\n accounts: {\n type: 'array',\n description: 'An array of bank account objects associated with the payroll/HRIS system.',\n items: {\n type: 'object',\n properties: {\n account_name: {\n type: 'string',\n description: 'The name of the bank associated in the payroll/HRIS system.'\n },\n account_number: {\n type: 'string',\n description: '10-12 digit number to specify the bank account'\n },\n account_type: {\n type: 'string',\n description: 'The type of bank account.',\n enum: [ 'checking',\n 'savings'\n ]\n },\n institution_name: {\n type: 'string',\n description: 'Name of the banking institution.'\n },\n routing_number: {\n type: 'string',\n description: 'A nine-digit code that\\'s based on the U.S. Bank location where your account was opened.'\n }\n },\n required: [ 'account_name',\n 'account_number',\n 'account_type',\n 'institution_name',\n 'routing_number'\n ]\n }\n },\n departments: {\n type: 'array',\n description: 'The array of company departments.',\n items: {\n type: 'object',\n properties: {\n name: {\n type: 'string',\n description: 'The department name.'\n },\n parent: {\n type: 'object',\n description: 'The parent department, if present.',\n properties: {\n name: {\n type: 'string',\n description: 'The parent department\\'s name.'\n }\n },\n required: [ 'name'\n ]\n }\n },\n required: [ 'name',\n 'parent'\n ]\n }\n },\n ein: {\n type: 'string',\n description: 'The employer identification number.'\n },\n entity: {\n type: 'object',\n description: 'The entity type object.',\n properties: {\n subtype: {\n type: 'string',\n description: 'The tax payer subtype of the company.',\n enum: [ 's_corporation',\n 'c_corporation',\n 'b_corporation'\n ]\n },\n type: {\n type: 'string',\n description: 'The tax payer type of the company.',\n enum: [ 'llc',\n 'lp',\n 'corporation',\n 'sole_proprietor',\n 'non_profit',\n 'partnership',\n 'cooperative'\n ]\n }\n },\n required: [ 'subtype',\n 'type'\n ]\n },\n legal_name: {\n type: 'string',\n description: 'The legal name of the company.'\n },\n locations: {\n type: 'array',\n items: {\n $ref: '#/$defs/location'\n }\n },\n primary_email: {\n type: 'string',\n description: 'The email of the main administrator on the account.'\n },\n primary_phone_number: {\n type: 'string',\n description: 'The phone number of the main administrator on the account. Format: E.164, with extension where applicable, e.g. `+NNNNNNNNNNN xExtension`'\n }\n },\n required: [ 'id',\n 'accounts',\n 'departments',\n 'ein',\n 'entity',\n 'legal_name',\n 'locations',\n 'primary_email',\n 'primary_phone_number'\n ]\n },\n location: {\n type: 'object',\n title: 'Location',\n properties: {\n city: {\n type: 'string',\n description: 'City, district, suburb, town, or village.'\n },\n country: {\n type: 'string',\n description: 'The 2-letter ISO 3166 country code.'\n },\n line1: {\n type: 'string',\n description: 'Street address or PO box.'\n },\n line2: {\n type: 'string',\n description: 'Apartment, suite, unit, or building.'\n },\n postal_code: {\n type: 'string',\n description: 'The postal code or zip code.'\n },\n state: {\n type: 'string',\n description: 'The state code.'\n },\n name: {\n type: 'string'\n },\n source_id: {\n type: 'string'\n }\n },\n required: [ 'city',\n 'country',\n 'line1',\n 'line2',\n 'postal_code',\n 'state'\n ]\n }\n }\n}\n```",
22
- inputSchema: {
23
- type: 'object',
24
- properties: {
25
- entity_ids: {
26
- type: 'array',
27
- description: "The entity IDs to specify which entities' data to access.",
28
- items: {
29
- type: 'string',
30
- },
31
- },
32
- jq_filter: {
33
- type: 'string',
34
- title: 'jq Filter',
35
- description:
36
- 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
37
- },
38
- },
39
- required: [],
40
- },
41
- annotations: {
42
- readOnlyHint: true,
43
- },
44
- };
45
-
46
- export const handler = async (client: Finch, args: Record<string, unknown> | undefined) => {
47
- const { jq_filter, ...body } = args as any;
48
- try {
49
- return asTextContentResult(await maybeFilter(jq_filter, await client.hris.company.retrieve(body)));
50
- } catch (error) {
51
- if (error instanceof Finch.APIError || isJqError(error)) {
52
- return asErrorResult(error.message);
53
- }
54
- throw error;
55
- }
56
- };
57
-
58
- export default { metadata, tool, handler };