@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,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.directory',
11
- operation: 'read',
12
- tags: [],
13
- httpMethod: 'get',
14
- httpPath: '/employer/directory',
15
- operationId: 'get-directory',
16
- };
17
-
18
- export const tool: Tool = {
19
- name: 'list_hris_directory',
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 company directory and organization structure\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n individuals: {\n type: 'array',\n description: 'The array of employees.',\n items: {\n $ref: '#/$defs/individual_in_directory'\n }\n },\n paging: {\n $ref: '#/$defs/paging'\n }\n },\n required: [ 'individuals',\n 'paging'\n ],\n $defs: {\n individual_in_directory: {\n type: 'object',\n properties: {\n id: {\n type: 'string',\n description: 'A stable Finch `id` (UUID v4) for an individual in the company.'\n },\n department: {\n type: 'object',\n description: 'The department object.',\n properties: {\n name: {\n type: 'string',\n description: 'The name of the department.'\n }\n }\n },\n first_name: {\n type: 'string',\n description: 'The legal first name of the individual.'\n },\n is_active: {\n type: 'boolean',\n description: '`true` if the individual is an active employee or contractor at the company.'\n },\n last_name: {\n type: 'string',\n description: 'The legal last name of the individual.'\n },\n manager: {\n type: 'object',\n description: 'The manager object.',\n properties: {\n id: {\n type: 'string',\n description: 'A stable Finch `id` (UUID v4) for an individual in the company.'\n }\n },\n required: [ 'id'\n ]\n },\n middle_name: {\n type: 'string',\n description: 'The legal middle name of the individual.'\n }\n },\n required: [ 'id',\n 'department',\n 'first_name',\n 'is_active',\n 'last_name',\n 'manager',\n 'middle_name'\n ]\n },\n paging: {\n type: 'object',\n title: 'Paging',\n properties: {\n offset: {\n type: 'integer',\n description: 'The current start index of the returned list of elements'\n },\n count: {\n type: 'integer',\n description: 'The total number of elements for the entire query (not just the given page)'\n }\n },\n required: [ 'offset'\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
- limit: {
33
- type: 'integer',
34
- description: 'Number of employees to return (defaults to all)',
35
- },
36
- offset: {
37
- type: 'integer',
38
- description: 'Index to start from (defaults to 0)',
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: [],
48
- },
49
- annotations: {
50
- readOnlyHint: true,
51
- },
52
- };
53
-
54
- export const handler = async (client: Finch, args: Record<string, unknown> | undefined) => {
55
- const { jq_filter, ...body } = args as any;
56
- const response = await client.hris.directory.list(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,82 +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.documents',
11
- operation: 'read',
12
- tags: [],
13
- httpMethod: 'get',
14
- httpPath: '/employer/documents',
15
- operationId: 'list-documents',
16
- };
17
-
18
- export const tool: Tool = {
19
- name: 'list_hris_documents',
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 is in beta and may change.\nRetrieve a list of company-wide documents.\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/document_list_response',\n $defs: {\n document_list_response: {\n type: 'object',\n properties: {\n documents: {\n type: 'array',\n items: {\n $ref: '#/$defs/document_response'\n }\n },\n paging: {\n $ref: '#/$defs/paging'\n }\n },\n required: [ 'documents',\n 'paging'\n ]\n },\n document_response: {\n type: 'object',\n properties: {\n id: {\n type: 'string',\n description: 'A stable Finch id for the document.'\n },\n individual_id: {\n type: 'string',\n description: 'The ID of the individual associated with the document. This will be null for employer-level documents.'\n },\n type: {\n type: 'string',\n description: 'The type of document.',\n enum: [ 'w4_2020',\n 'w4_2005'\n ]\n },\n url: {\n type: 'string',\n description: 'A URL to access the document. Format: `https://api.tryfinch.com/employer/documents/:document_id`.'\n },\n year: {\n type: 'number',\n description: 'The year the document applies to, if available.'\n }\n },\n required: [ 'id',\n 'individual_id',\n 'type',\n 'url',\n 'year'\n ]\n },\n paging: {\n type: 'object',\n title: 'Paging',\n properties: {\n offset: {\n type: 'integer',\n description: 'The current start index of the returned list of elements'\n },\n count: {\n type: 'integer',\n description: 'The total number of elements for the entire query (not just the given page)'\n }\n },\n required: [ 'offset'\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
- individual_ids: {
33
- type: 'array',
34
- description:
35
- 'Comma-delimited list of stable Finch uuids for each individual. If empty, defaults to all individuals',
36
- items: {
37
- type: 'string',
38
- },
39
- },
40
- limit: {
41
- type: 'integer',
42
- description: 'Number of documents to return (defaults to all)',
43
- },
44
- offset: {
45
- type: 'integer',
46
- description: 'Index to start from (defaults to 0)',
47
- },
48
- types: {
49
- type: 'array',
50
- description: 'Comma-delimited list of document types to filter on. If empty, defaults to all types',
51
- items: {
52
- type: 'string',
53
- enum: ['w4_2020', 'w4_2005'],
54
- },
55
- },
56
- jq_filter: {
57
- type: 'string',
58
- title: 'jq Filter',
59
- description:
60
- '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/).',
61
- },
62
- },
63
- required: [],
64
- },
65
- annotations: {
66
- readOnlyHint: true,
67
- },
68
- };
69
-
70
- export const handler = async (client: Finch, args: Record<string, unknown> | undefined) => {
71
- const { jq_filter, ...body } = args as any;
72
- try {
73
- return asTextContentResult(await maybeFilter(jq_filter, await client.hris.documents.list(body)));
74
- } catch (error) {
75
- if (error instanceof Finch.APIError || isJqError(error)) {
76
- return asErrorResult(error.message);
77
- }
78
- throw error;
79
- }
80
- };
81
-
82
- 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.documents',
11
- operation: 'read',
12
- tags: [],
13
- httpMethod: 'get',
14
- httpPath: '/employer/documents/{document_id}',
15
- operationId: 'get-document',
16
- };
17
-
18
- export const tool: Tool = {
19
- name: 'retreive_hris_documents',
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 is in beta and may change.\nRetrieve details of a specific document by its ID.\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/document_retreive_response',\n $defs: {\n document_retreive_response: {\n anyOf: [ {\n $ref: '#/$defs/w42020'\n },\n {\n $ref: '#/$defs/w42005'\n }\n ],\n description: 'A 2020 version of the W-4 tax form containing information on an individual\\'s filing status, dependents, and withholding details.'\n },\n w42020: {\n type: 'object',\n description: 'A 2020 version of the W-4 tax form containing information on an individual\\'s filing status, dependents, and withholding details.',\n properties: {\n data: {\n type: 'object',\n description: 'Detailed information specific to the 2020 W4 form.',\n properties: {\n amount_for_other_dependents: {\n type: 'integer',\n description: 'Amount claimed for dependents other than qualifying children under 17 (in cents).'\n },\n amount_for_qualifying_children_under_17: {\n type: 'integer',\n description: 'Amount claimed for dependents under 17 years old (in cents).'\n },\n deductions: {\n type: 'integer',\n description: 'Deductible expenses (in cents).'\n },\n extra_withholding: {\n type: 'integer',\n description: 'Additional withholding amount (in cents).'\n },\n filing_status: {\n type: 'string',\n description: 'The individual\\'s filing status for tax purposes.',\n enum: [ 'head_of_household',\n 'married_filing_jointly_or_qualifying_surviving_spouse',\n 'single_or_married_filing_separately'\n ]\n },\n individual_id: {\n type: 'string',\n description: 'The unique identifier for the individual associated with this document.'\n },\n other_income: {\n type: 'integer',\n description: 'Additional income from sources outside of primary employment (in cents).'\n },\n total_claim_dependent_and_other_credits: {\n type: 'integer',\n description: 'Total amount claimed for dependents and other credits (in cents).'\n }\n },\n required: [ 'amount_for_other_dependents',\n 'amount_for_qualifying_children_under_17',\n 'deductions',\n 'extra_withholding',\n 'filing_status',\n 'individual_id',\n 'other_income',\n 'total_claim_dependent_and_other_credits'\n ]\n },\n type: {\n type: 'string',\n description: 'Specifies the form type, indicating that this document is a 2020 W4 form.',\n enum: [ 'w4_2020'\n ]\n },\n year: {\n type: 'number',\n description: 'The tax year this W4 document applies to.'\n }\n },\n required: [ 'data',\n 'type',\n 'year'\n ]\n },\n w42005: {\n type: 'object',\n description: 'A 2005 version of the W-4 tax form containing information on an individual\\'s filing status, dependents, and withholding details.',\n properties: {\n data: {\n type: 'object',\n description: 'Detailed information specific to the 2005 W4 form.',\n properties: {\n additional_withholding: {\n type: 'integer',\n description: 'Additional withholding amount (in cents).'\n },\n exemption: {\n type: 'string',\n description: 'Indicates exemption status from federal tax withholding.',\n enum: [ 'exempt',\n 'non_exempt'\n ]\n },\n filing_status: {\n type: 'string',\n description: 'The individual\\'s filing status for tax purposes.',\n enum: [ 'married',\n 'married_but_withhold_at_higher_single_rate',\n 'single'\n ]\n },\n individual_id: {\n type: 'string',\n description: 'The unique identifier for the individual associated with this 2005 W4 form.'\n },\n total_number_of_allowances: {\n type: 'integer',\n description: 'Total number of allowances claimed (in cents).'\n }\n },\n required: [ 'additional_withholding',\n 'exemption',\n 'filing_status',\n 'individual_id',\n 'total_number_of_allowances'\n ]\n },\n type: {\n type: 'string',\n description: 'Specifies the form type, indicating that this document is a 2005 W4 form.',\n enum: [ 'w4_2005'\n ]\n },\n year: {\n type: 'number',\n description: 'The tax year this W4 document applies to.'\n }\n },\n required: [ 'data',\n 'type',\n 'year'\n ]\n }\n }\n}\n```",
22
- inputSchema: {
23
- type: 'object',
24
- properties: {
25
- document_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: ['document_id'],
43
- },
44
- annotations: {
45
- readOnlyHint: true,
46
- },
47
- };
48
-
49
- export const handler = async (client: Finch, args: Record<string, unknown> | undefined) => {
50
- const { document_id, jq_filter, ...body } = args as any;
51
- try {
52
- return asTextContentResult(
53
- await maybeFilter(jq_filter, await client.hris.documents.retreive(document_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,64 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { Metadata, asErrorResult, asTextContentResult } from '@tryfinch/finch-api-mcp/tools/types';
4
-
5
- import { Tool } from '@modelcontextprotocol/sdk/types.js';
6
- import Finch from '@tryfinch/finch-api';
7
-
8
- export const metadata: Metadata = {
9
- resource: 'hris.employments',
10
- operation: 'write',
11
- tags: [],
12
- httpMethod: 'post',
13
- httpPath: '/employer/employment',
14
- operationId: 'get-employment',
15
- };
16
-
17
- export const tool: Tool = {
18
- name: 'retrieve_many_hris_employments',
19
- description: 'Read individual employment and income data',
20
- inputSchema: {
21
- type: 'object',
22
- properties: {
23
- requests: {
24
- type: 'array',
25
- description: 'The array of batch requests.',
26
- items: {
27
- type: 'object',
28
- properties: {
29
- individual_id: {
30
- type: 'string',
31
- description:
32
- 'A stable Finch `id` (UUID v4) for an individual in the company. There is no limit to the number of `individual_id` to send per request. It is preferantial to send all ids in a single request for Finch to optimize provider rate-limits.',
33
- },
34
- },
35
- required: ['individual_id'],
36
- },
37
- },
38
- entity_ids: {
39
- type: 'array',
40
- description: "The entity IDs to specify which entities' data to access.",
41
- items: {
42
- type: 'string',
43
- },
44
- },
45
- },
46
- required: ['requests'],
47
- },
48
- annotations: {},
49
- };
50
-
51
- export const handler = async (client: Finch, args: Record<string, unknown> | undefined) => {
52
- const body = args as any;
53
- const response = await client.hris.employments.retrieveMany(body).asResponse();
54
- try {
55
- return asTextContentResult(await response.json());
56
- } catch (error) {
57
- if (error instanceof Finch.APIError) {
58
- return asErrorResult(error.message);
59
- }
60
- throw error;
61
- }
62
- };
63
-
64
- export default { metadata, tool, handler };
@@ -1,79 +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.individuals',
11
- operation: 'write',
12
- tags: [],
13
- httpMethod: 'post',
14
- httpPath: '/employer/individual',
15
- operationId: 'get-individual',
16
- };
17
-
18
- export const tool: Tool = {
19
- name: 'retrieve_many_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\nRead individual data, excluding income and employment data\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n responses: {\n type: 'array',\n items: {\n $ref: '#/$defs/individual_response'\n }\n }\n },\n required: [ 'responses'\n ],\n $defs: {\n individual_response: {\n type: 'object',\n properties: {\n body: {\n $ref: '#/$defs/individual'\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 individual: {\n anyOf: [ {\n type: 'object',\n properties: {\n id: {\n type: 'string',\n description: 'A stable Finch `id` (UUID v4) for an individual in the company.'\n },\n dob: {\n type: 'string',\n title: 'Date'\n },\n ethnicity: {\n type: 'string',\n description: 'The EEOC-defined ethnicity of the individual.',\n enum: [ 'asian',\n 'white',\n 'black_or_african_american',\n 'native_hawaiian_or_pacific_islander',\n 'american_indian_or_alaska_native',\n 'hispanic_or_latino',\n 'two_or_more_races',\n 'decline_to_specify'\n ]\n },\n first_name: {\n type: 'string',\n description: 'The legal first name of the individual.'\n },\n gender: {\n type: 'string',\n description: 'The gender of the individual.',\n enum: [ 'female',\n 'male',\n 'other',\n 'decline_to_specify'\n ]\n },\n last_name: {\n type: 'string',\n description: 'The legal last name of the individual.'\n },\n middle_name: {\n type: 'string',\n description: 'The legal middle name of the individual.'\n },\n phone_numbers: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n data: {\n type: 'string'\n },\n type: {\n type: 'string',\n enum: [ 'work',\n 'personal'\n ]\n }\n },\n required: [ 'data',\n 'type'\n ]\n }\n },\n preferred_name: {\n type: 'string',\n description: 'The preferred name of the individual.'\n },\n residence: {\n $ref: '#/$defs/location'\n },\n emails: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n data: {\n type: 'string'\n },\n type: {\n type: 'string',\n enum: [ 'work',\n 'personal'\n ]\n }\n },\n required: [ 'data',\n 'type'\n ]\n }\n },\n encrypted_ssn: {\n type: 'string',\n description: 'Social Security Number of the individual in **encrypted** format. This field is only available with the `ssn` scope enabled and the `options: { include: [\\'ssn\\'] }` param set in the body.'\n },\n ssn: {\n type: 'string',\n description: 'Social Security Number of the individual. This field is only available with the `ssn` scope enabled and the `options: { include: [\\'ssn\\'] }` param set in the body. [Click here to learn more about enabling the SSN field](/developer-resources/Enable-SSN-Field).'\n }\n },\n required: [ 'id',\n 'dob',\n 'ethnicity',\n 'first_name',\n 'gender',\n 'last_name',\n 'middle_name',\n 'phone_numbers',\n 'preferred_name',\n 'residence'\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 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
- options: {
33
- type: 'object',
34
- properties: {
35
- include: {
36
- type: 'array',
37
- items: {
38
- type: 'string',
39
- },
40
- },
41
- },
42
- },
43
- requests: {
44
- type: 'array',
45
- items: {
46
- type: 'object',
47
- properties: {
48
- individual_id: {
49
- type: 'string',
50
- },
51
- },
52
- },
53
- },
54
- jq_filter: {
55
- type: 'string',
56
- title: 'jq Filter',
57
- description:
58
- '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/).',
59
- },
60
- },
61
- required: [],
62
- },
63
- annotations: {},
64
- };
65
-
66
- export const handler = async (client: Finch, args: Record<string, unknown> | undefined) => {
67
- const { jq_filter, ...body } = args as any;
68
- const response = await client.hris.individuals.retrieveMany(body).asResponse();
69
- try {
70
- return asTextContentResult(await maybeFilter(jq_filter, await response.json()));
71
- } catch (error) {
72
- if (error instanceof Finch.APIError || isJqError(error)) {
73
- return asErrorResult(error.message);
74
- }
75
- throw error;
76
- }
77
- };
78
-
79
- export default { metadata, tool, handler };
@@ -1,72 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { Metadata, asErrorResult, asTextContentResult } from '@tryfinch/finch-api-mcp/tools/types';
4
-
5
- import { Tool } from '@modelcontextprotocol/sdk/types.js';
6
- import Finch from '@tryfinch/finch-api';
7
-
8
- export const metadata: Metadata = {
9
- resource: 'hris.pay_statements',
10
- operation: 'write',
11
- tags: [],
12
- httpMethod: 'post',
13
- httpPath: '/employer/pay-statement',
14
- operationId: 'get-pay-statement',
15
- };
16
-
17
- export const tool: Tool = {
18
- name: 'retrieve_many_hris_pay_statements',
19
- description:
20
- 'Read detailed pay statements for each individual.\n\nDeduction and contribution types are supported by the payroll systems that supports Benefits.',
21
- inputSchema: {
22
- type: 'object',
23
- properties: {
24
- requests: {
25
- type: 'array',
26
- description: 'The array of batch requests.',
27
- items: {
28
- type: 'object',
29
- properties: {
30
- payment_id: {
31
- type: 'string',
32
- description: 'A stable Finch `id` (UUID v4) for a payment.',
33
- },
34
- limit: {
35
- type: 'integer',
36
- description: 'Number of pay statements to return (defaults to all).',
37
- },
38
- offset: {
39
- type: 'integer',
40
- description: 'Index to start from.',
41
- },
42
- },
43
- required: ['payment_id'],
44
- },
45
- },
46
- entity_ids: {
47
- type: 'array',
48
- description: "The entity IDs to specify which entities' data to access.",
49
- items: {
50
- type: 'string',
51
- },
52
- },
53
- },
54
- required: ['requests'],
55
- },
56
- annotations: {},
57
- };
58
-
59
- export const handler = async (client: Finch, args: Record<string, unknown> | undefined) => {
60
- const body = args as any;
61
- const response = await client.hris.payStatements.retrieveMany(body).asResponse();
62
- try {
63
- return asTextContentResult(await response.json());
64
- } catch (error) {
65
- if (error instanceof Finch.APIError) {
66
- return asErrorResult(error.message);
67
- }
68
- throw error;
69
- }
70
- };
71
-
72
- export default { metadata, tool, handler };
@@ -1,69 +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.payments',
11
- operation: 'read',
12
- tags: [],
13
- httpMethod: 'get',
14
- httpPath: '/employer/payment',
15
- operationId: 'get-payment',
16
- };
17
-
18
- export const tool: Tool = {
19
- name: 'list_hris_payments',
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 payroll and contractor related payments by the company.\n\n# Response Schema\n```json\n{\n type: 'array',\n items: {\n $ref: '#/$defs/payment'\n },\n $defs: {\n payment: {\n type: 'object',\n properties: {\n id: {\n type: 'string',\n description: 'The unique id for the payment.'\n },\n company_debit: {\n $ref: '#/$defs/money'\n },\n debit_date: {\n type: 'string',\n title: 'Date'\n },\n employee_taxes: {\n $ref: '#/$defs/money'\n },\n employer_taxes: {\n $ref: '#/$defs/money'\n },\n gross_pay: {\n $ref: '#/$defs/money'\n },\n individual_ids: {\n type: 'array',\n description: 'Array of every individual on this payment.',\n items: {\n type: 'string'\n }\n },\n net_pay: {\n $ref: '#/$defs/money'\n },\n pay_date: {\n type: 'string',\n title: 'Date'\n },\n pay_frequencies: {\n type: 'array',\n description: 'List of pay frequencies associated with this payment.',\n items: {\n type: 'string',\n enum: [ 'annually',\n 'bi_weekly',\n 'daily',\n 'monthly',\n 'other',\n 'quarterly',\n 'semi_annually',\n 'semi_monthly',\n 'weekly'\n ]\n }\n },\n pay_group_ids: {\n type: 'array',\n description: 'Array of the Finch id (uuidv4) of every pay group associated with this payment.',\n items: {\n type: 'string'\n }\n },\n pay_period: {\n type: 'object',\n description: 'The pay period object.',\n properties: {\n end_date: {\n type: 'string',\n title: 'Date'\n },\n start_date: {\n type: 'string',\n title: 'Date'\n }\n },\n required: [ 'end_date',\n 'start_date'\n ]\n }\n },\n required: [ 'id',\n 'company_debit',\n 'debit_date',\n 'employee_taxes',\n 'employer_taxes',\n 'gross_pay',\n 'individual_ids',\n 'net_pay',\n 'pay_date',\n 'pay_frequencies',\n 'pay_group_ids',\n 'pay_period'\n ]\n },\n money: {\n type: 'object',\n title: 'Money',\n properties: {\n amount: {\n type: 'integer',\n description: 'Amount for money object (in cents)'\n },\n currency: {\n type: 'string'\n }\n },\n required: [ 'amount',\n 'currency'\n ]\n }\n }\n}\n```",
22
- inputSchema: {
23
- type: 'object',
24
- properties: {
25
- end_date: {
26
- type: 'string',
27
- description: 'The end date to retrieve payments by a company (inclusive) in `YYYY-MM-DD` format.',
28
- format: 'date',
29
- },
30
- start_date: {
31
- type: 'string',
32
- description: 'The start date to retrieve payments by a company (inclusive) in `YYYY-MM-DD` format.',
33
- format: 'date',
34
- },
35
- entity_ids: {
36
- type: 'array',
37
- description: "The entity IDs to specify which entities' data to access.",
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: ['end_date', 'start_date'],
50
- },
51
- annotations: {
52
- readOnlyHint: true,
53
- },
54
- };
55
-
56
- export const handler = async (client: Finch, args: Record<string, unknown> | undefined) => {
57
- const { jq_filter, ...body } = args as any;
58
- const response = await client.hris.payments.list(body).asResponse();
59
- try {
60
- return asTextContentResult(await maybeFilter(jq_filter, await response.json()));
61
- } catch (error) {
62
- if (error instanceof Finch.APIError || isJqError(error)) {
63
- return asErrorResult(error.message);
64
- }
65
- throw error;
66
- }
67
- };
68
-
69
- export default { metadata, tool, handler };