@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,129 +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',
15
- operationId: 'create-company-benefits',
16
- };
17
-
18
- export const tool: Tool = {
19
- name: 'create_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\nCreates a new company-wide deduction or contribution. Please use the `/providers` endpoint to view available types for each provider.\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/create_company_benefits_response',\n $defs: {\n create_company_benefits_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
- 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
- company_contribution: {
33
- type: 'object',
34
- title: 'BenefitCompanyMatchContribution',
35
- description: 'The company match for this benefit.',
36
- properties: {
37
- tiers: {
38
- type: 'array',
39
- items: {
40
- type: 'object',
41
- properties: {
42
- match: {
43
- type: 'integer',
44
- },
45
- threshold: {
46
- type: 'integer',
47
- },
48
- },
49
- required: ['match', 'threshold'],
50
- },
51
- },
52
- type: {
53
- type: 'string',
54
- enum: ['match'],
55
- },
56
- },
57
- required: ['tiers', 'type'],
58
- },
59
- description: {
60
- type: 'string',
61
- title: 'BenefitDescription',
62
- description:
63
- 'Name of the benefit as it appears in the provider and pay statements. Recommend limiting this to <30 characters due to limitations in specific providers (e.g. Justworks).',
64
- },
65
- frequency: {
66
- $ref: '#/$defs/benefit_frequency',
67
- },
68
- type: {
69
- $ref: '#/$defs/benefit_type',
70
- },
71
- jq_filter: {
72
- type: 'string',
73
- title: 'jq Filter',
74
- description:
75
- '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/).',
76
- },
77
- },
78
- required: [],
79
- $defs: {
80
- benefit_frequency: {
81
- type: 'string',
82
- title: 'BenefitFrequency',
83
- description: 'The frequency of the benefit deduction/contribution.',
84
- enum: ['every_paycheck', 'monthly', 'one_time'],
85
- },
86
- benefit_type: {
87
- type: 'string',
88
- title: 'BenefitType',
89
- description: 'Type of benefit.',
90
- enum: [
91
- '457',
92
- '401k',
93
- '401k_roth',
94
- '401k_loan',
95
- '403b',
96
- '403b_roth',
97
- '457_roth',
98
- 'commuter',
99
- 'custom_post_tax',
100
- 'custom_pre_tax',
101
- 'fsa_dependent_care',
102
- 'fsa_medical',
103
- 'hsa_post',
104
- 'hsa_pre',
105
- 's125_dental',
106
- 's125_medical',
107
- 's125_vision',
108
- 'simple',
109
- 'simple_ira',
110
- ],
111
- },
112
- },
113
- },
114
- annotations: {},
115
- };
116
-
117
- export const handler = async (client: Finch, args: Record<string, unknown> | undefined) => {
118
- const { jq_filter, ...body } = args as any;
119
- try {
120
- return asTextContentResult(await maybeFilter(jq_filter, await client.hris.benefits.create(body)));
121
- } catch (error) {
122
- if (error instanceof Finch.APIError || isJqError(error)) {
123
- return asErrorResult(error.message);
124
- }
125
- throw error;
126
- }
127
- };
128
-
129
- export default { metadata, tool, handler };
@@ -1,146 +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.individuals',
11
- operation: 'write',
12
- tags: [],
13
- httpMethod: 'post',
14
- httpPath: '/employer/benefits/{benefit_id}/individuals',
15
- operationId: 'post-employer-individual-benefits-benefit_id',
16
- };
17
-
18
- export const tool: Tool = {
19
- name: 'enroll_many_benefits_hris_individuals',
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\nEnroll an individual into a deduction or contribution. This is an overwrite operation. If the employee is already enrolled, the enrollment amounts will be adjusted. Making the same request multiple times will not create new enrollments, but will continue to set the state of the existing enrollment.\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/enrolled_individual_benefit_response',\n $defs: {\n enrolled_individual_benefit_response: {\n type: 'object',\n properties: {\n job_id: {\n type: 'string'\n }\n },\n required: [ '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
- individuals: {
36
- type: 'array',
37
- description: 'Array of the individual_id to enroll and a configuration object.',
38
- items: {
39
- type: 'object',
40
- properties: {
41
- configuration: {
42
- type: 'object',
43
- properties: {
44
- annual_contribution_limit: {
45
- type: 'string',
46
- description:
47
- 'For HSA benefits only - whether the contribution limit is for an individual or family',
48
- enum: ['individual', 'family'],
49
- },
50
- annual_maximum: {
51
- type: 'integer',
52
- description: 'Maximum annual amount in cents',
53
- },
54
- catch_up: {
55
- type: 'boolean',
56
- description: 'For retirement benefits only - whether catch up contributions are enabled',
57
- },
58
- company_contribution: {
59
- type: 'object',
60
- properties: {
61
- amount: {
62
- type: 'integer',
63
- description:
64
- 'Amount in cents for fixed type or basis points (1/100th of a percent) for percent type',
65
- },
66
- tiers: {
67
- type: 'array',
68
- description:
69
- 'Array of tier objects for tiered contribution matching (required when type is tiered)',
70
- items: {
71
- type: 'object',
72
- properties: {
73
- match: {
74
- type: 'integer',
75
- description: 'The employer match percentage in basis points (0-10000 = 0-100%)',
76
- },
77
- threshold: {
78
- type: 'integer',
79
- description:
80
- 'The employee contribution threshold in basis points (0-10000 = 0-100%)',
81
- },
82
- },
83
- required: ['match', 'threshold'],
84
- },
85
- },
86
- type: {
87
- type: 'string',
88
- enum: ['fixed', 'percent', 'tiered'],
89
- },
90
- },
91
- },
92
- effective_date: {
93
- type: 'string',
94
- description: 'The date the enrollment will take effect',
95
- format: 'date',
96
- },
97
- employee_deduction: {
98
- type: 'object',
99
- properties: {
100
- amount: {
101
- type: 'integer',
102
- description:
103
- 'Amount in cents for fixed type or basis points (1/100th of a percent) for percent type',
104
- },
105
- type: {
106
- type: 'string',
107
- enum: ['fixed', 'percent'],
108
- },
109
- },
110
- },
111
- },
112
- },
113
- individual_id: {
114
- type: 'string',
115
- description: 'Finch id (uuidv4) for the individual to enroll',
116
- },
117
- },
118
- },
119
- },
120
- jq_filter: {
121
- type: 'string',
122
- title: 'jq Filter',
123
- description:
124
- '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/).',
125
- },
126
- },
127
- required: ['benefit_id'],
128
- },
129
- annotations: {},
130
- };
131
-
132
- export const handler = async (client: Finch, args: Record<string, unknown> | undefined) => {
133
- const { benefit_id, jq_filter, ...body } = args as any;
134
- try {
135
- return asTextContentResult(
136
- await maybeFilter(jq_filter, await client.hris.benefits.individuals.enrollMany(benefit_id, body)),
137
- );
138
- } catch (error) {
139
- if (error instanceof Finch.APIError || isJqError(error)) {
140
- return asErrorResult(error.message);
141
- }
142
- throw error;
143
- }
144
- };
145
-
146
- 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.benefits.individuals',
11
- operation: 'read',
12
- tags: [],
13
- httpMethod: 'get',
14
- httpPath: '/employer/benefits/{benefit_id}/enrolled',
15
- operationId: 'get-company-benefits-enrolled',
16
- };
17
-
18
- export const tool: Tool = {
19
- name: 'enrolled_ids_benefits_hris_individuals',
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 individuals currently enrolled in a given deduction.\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/individual_enrolled_ids_response',\n $defs: {\n individual_enrolled_ids_response: {\n type: 'object',\n properties: {\n benefit_id: {\n type: 'string',\n description: 'The id of the benefit.'\n },\n individual_ids: {\n type: 'array',\n items: {\n type: 'string',\n description: 'A stable Finch `id` (UUID v4) for an individual in the company.'\n }\n }\n },\n required: [ 'benefit_id',\n 'individual_ids'\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.individuals.enrolledIDs(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,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.benefits.individuals',
11
- operation: 'read',
12
- tags: [],
13
- httpMethod: 'get',
14
- httpPath: '/employer/benefits/{benefit_id}/individuals',
15
- operationId: 'get-individual-benefits',
16
- };
17
-
18
- export const tool: Tool = {
19
- name: 'retrieve_many_benefits_benefits_hris_individuals',
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\nGet enrollment information for the given individuals.\n\n# Response Schema\n```json\n{\n type: 'array',\n title: 'IndividualBenefits',\n items: {\n $ref: '#/$defs/individual_benefit'\n },\n $defs: {\n individual_benefit: {\n type: 'object',\n properties: {\n body: {\n anyOf: [ {\n type: 'object',\n properties: {\n annual_maximum: {\n type: 'integer',\n description: 'If the benefit supports annual maximum, the amount in cents for this individual.'\n },\n catch_up: {\n type: 'boolean',\n description: 'If the benefit supports catch up (401k, 403b, etc.), whether catch up is enabled for this individual.'\n },\n company_contribution: {\n anyOf: [ {\n type: 'object',\n properties: {\n amount: {\n type: 'integer',\n description: 'Contribution amount in cents (for type=fixed) or basis points (for type=percent, where 100 = 1%). Not used for type=tiered.'\n },\n type: {\n type: 'string',\n description: 'Contribution type. Supported values: \"fixed\" (amount in cents), \"percent\" (amount in basis points), or \"tiered\" (multi-tier matching).',\n enum: [ 'fixed'\n ]\n }\n },\n required: [ 'amount',\n 'type'\n ]\n },\n {\n type: 'object',\n properties: {\n amount: {\n type: 'integer',\n description: 'Contribution amount in cents (for type=fixed) or basis points (for type=percent, where 100 = 1%). Not used for type=tiered.'\n },\n type: {\n type: 'string',\n description: 'Contribution type. Supported values: \"fixed\" (amount in cents), \"percent\" (amount in basis points), or \"tiered\" (multi-tier matching).',\n enum: [ 'percent'\n ]\n }\n },\n required: [ 'amount',\n 'type'\n ]\n },\n {\n type: 'object',\n properties: {\n tiers: {\n type: 'array',\n description: 'Array of tier objects defining employer match tiers based on employee contribution thresholds. Required when type=tiered.',\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 description: 'Contribution type. Supported values: \"fixed\" (amount in cents), \"percent\" (amount in basis points), or \"tiered\" (multi-tier matching).',\n enum: [ 'tiered'\n ]\n }\n },\n required: [ 'tiers',\n 'type'\n ]\n }\n ],\n title: 'CompanyContribution',\n description: 'Company contribution configuration. Supports fixed amounts (in cents), percentage-based contributions (in basis points where 100 = 1%), or tiered matching structures.'\n },\n employee_deduction: {\n anyOf: [ {\n type: 'object',\n properties: {\n amount: {\n type: 'integer',\n description: 'Contribution amount in cents (for type=fixed) or basis points (for type=percent, where 100 = 1%).'\n },\n type: {\n type: 'string',\n description: 'Contribution type. Supported values: \"fixed\" (amount in cents) or \"percent\" (amount in basis points).',\n enum: [ 'fixed'\n ]\n }\n },\n required: [ 'amount',\n 'type'\n ]\n },\n {\n type: 'object',\n properties: {\n amount: {\n type: 'integer',\n description: 'Contribution amount in cents (for type=fixed) or basis points (for type=percent, where 100 = 1%).'\n },\n type: {\n type: 'string',\n description: 'Contribution type. Supported values: \"fixed\" (amount in cents) or \"percent\" (amount in basis points).',\n enum: [ 'percent'\n ]\n }\n },\n required: [ 'amount',\n 'type'\n ]\n }\n ],\n title: 'EmployeeDeductionContribution',\n description: 'Employee deduction configuration. Supports both fixed amounts (in cents) and percentage-based contributions (in basis points where 100 = 1%).'\n },\n hsa_contribution_limit: {\n type: 'string',\n description: 'Type for HSA contribution limit if the benefit is a HSA.',\n enum: [ 'individual',\n 'family'\n ]\n }\n },\n required: [ 'annual_maximum',\n 'catch_up',\n 'company_contribution',\n 'employee_deduction'\n ]\n },\n {\n type: 'object',\n properties: {\n code: {\n type: 'number'\n },\n message: {\n type: 'string'\n },\n name: {\n type: 'string'\n },\n finch_code: {\n type: 'string'\n }\n },\n required: [ 'code',\n 'message',\n 'name'\n ]\n }\n ]\n },\n code: {\n type: 'integer'\n },\n individual_id: {\n type: 'string'\n }\n },\n required: [ 'body',\n 'code',\n 'individual_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
- individual_ids: {
36
- type: 'string',
37
- description:
38
- 'comma-delimited list of stable Finch uuids for each individual. If empty, defaults to all individuals',
39
- },
40
- jq_filter: {
41
- type: 'string',
42
- title: 'jq Filter',
43
- description:
44
- '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/).',
45
- },
46
- },
47
- required: ['benefit_id'],
48
- },
49
- annotations: {
50
- readOnlyHint: true,
51
- },
52
- };
53
-
54
- export const handler = async (client: Finch, args: Record<string, unknown> | undefined) => {
55
- const { benefit_id, jq_filter, ...body } = args as any;
56
- const response = await client.hris.benefits.individuals.retrieveManyBenefits(benefit_id, body).asResponse();
57
- try {
58
- return asTextContentResult(await maybeFilter(jq_filter, await response.json()));
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,70 +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.individuals',
11
- operation: 'write',
12
- tags: [],
13
- httpMethod: 'delete',
14
- httpPath: '/employer/benefits/{benefit_id}/individuals',
15
- operationId: 'delete-individual-benefits',
16
- };
17
-
18
- export const tool: Tool = {
19
- name: 'unenroll_many_benefits_hris_individuals',
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\nUnenroll individuals from a deduction or contribution\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/unenrolled_individual_benefit_response',\n $defs: {\n unenrolled_individual_benefit_response: {\n type: 'object',\n properties: {\n job_id: {\n type: 'string'\n }\n },\n required: [ '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
- individual_ids: {
36
- type: 'array',
37
- description: 'Array of individual_ids to unenroll.',
38
- items: {
39
- type: 'string',
40
- },
41
- },
42
- jq_filter: {
43
- type: 'string',
44
- title: 'jq Filter',
45
- description:
46
- '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/).',
47
- },
48
- },
49
- required: ['benefit_id'],
50
- },
51
- annotations: {
52
- idempotentHint: true,
53
- },
54
- };
55
-
56
- export const handler = async (client: Finch, args: Record<string, unknown> | undefined) => {
57
- const { benefit_id, jq_filter, ...body } = args as any;
58
- try {
59
- return asTextContentResult(
60
- await maybeFilter(jq_filter, await client.hris.benefits.individuals.unenrollMany(benefit_id, body)),
61
- );
62
- } catch (error) {
63
- if (error instanceof Finch.APIError || isJqError(error)) {
64
- return asErrorResult(error.message);
65
- }
66
- throw error;
67
- }
68
- };
69
-
70
- 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.benefits',
11
- operation: 'read',
12
- tags: [],
13
- httpMethod: 'get',
14
- httpPath: '/employer/benefits',
15
- operationId: 'get-company-benefits',
16
- };
17
-
18
- export const tool: Tool = {
19
- name: 'list_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\nList all company-wide deductions and contributions.\n\n# Response Schema\n```json\n{\n type: 'array',\n description: 'Array of company benefits.',\n items: {\n $ref: '#/$defs/company_benefit'\n },\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
- 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
- const response = await client.hris.benefits.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,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.benefits',
11
- operation: 'read',
12
- tags: [],
13
- httpMethod: 'get',
14
- httpPath: '/employer/benefits/meta',
15
- operationId: 'get-company-benefits-meta',
16
- };
17
-
18
- export const tool: Tool = {
19
- name: 'list_supported_benefits_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\nGet deductions metadata\n\n# Response Schema\n```json\n{\n type: 'array',\n items: {\n $ref: '#/$defs/supported_benefit'\n },\n $defs: {\n supported_benefit: {\n type: 'object',\n title: 'BenefitFeature',\n properties: {\n annual_maximum: {\n type: 'boolean',\n description: 'Whether the provider supports an annual maximum for this benefit.'\n },\n company_contribution: {\n type: 'array',\n description: 'Supported contribution types. An empty array indicates contributions are not supported.',\n items: {\n type: 'string',\n enum: [ 'fixed',\n 'percent',\n 'tiered'\n ]\n }\n },\n description: {\n type: 'string'\n },\n employee_deduction: {\n type: 'array',\n description: 'Supported deduction types. An empty array indicates deductions are not supported.',\n items: {\n type: 'string',\n enum: [ 'fixed',\n 'percent'\n ]\n }\n },\n frequencies: {\n type: 'array',\n description: 'The list of frequencies supported by the provider for this benefit',\n items: {\n $ref: '#/$defs/benefit_frequency'\n }\n },\n catch_up: {\n type: 'boolean',\n description: 'Whether the provider supports catch up for this benefit. This field will only be true for retirement benefits.'\n },\n hsa_contribution_limit: {\n type: 'array',\n description: 'Whether the provider supports HSA contribution limits. Empty if this feature is not supported for the benefit. This array only has values for HSA benefits.',\n items: {\n type: 'string',\n enum: [ 'family',\n 'individual'\n ]\n }\n }\n },\n required: [ 'annual_maximum',\n 'company_contribution',\n 'description',\n 'employee_deduction',\n 'frequencies'\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 }\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
- const response = await client.hris.benefits.listSupportedBenefits(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 };