@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.
- package/LICENSE +1 -1
- package/README.md +15 -303
- package/code-tool-types.d.mts +6 -9
- package/code-tool-types.d.mts.map +1 -1
- package/code-tool-types.d.ts +6 -9
- package/code-tool-types.d.ts.map +1 -1
- package/code-tool.d.mts +2 -44
- package/code-tool.d.mts.map +1 -1
- package/code-tool.d.ts +2 -44
- package/code-tool.d.ts.map +1 -1
- package/code-tool.js +15 -4
- package/code-tool.js.map +1 -1
- package/code-tool.mjs +15 -4
- package/code-tool.mjs.map +1 -1
- package/docs-search-tool.d.mts +3 -3
- package/docs-search-tool.d.mts.map +1 -1
- package/docs-search-tool.d.ts +3 -3
- package/docs-search-tool.d.ts.map +1 -1
- package/docs-search-tool.js +1 -1
- package/docs-search-tool.js.map +1 -1
- package/docs-search-tool.mjs +1 -1
- package/http.d.mts.map +1 -1
- package/http.d.ts.map +1 -1
- package/http.js +1 -18
- package/http.js.map +1 -1
- package/http.mjs +1 -18
- package/http.mjs.map +1 -1
- package/index.js +4 -40
- package/index.js.map +1 -1
- package/index.mjs +4 -40
- package/index.mjs.map +1 -1
- package/options.d.mts +0 -9
- package/options.d.mts.map +1 -1
- package/options.d.ts +0 -9
- package/options.d.ts.map +1 -1
- package/options.js +4 -359
- package/options.js.map +1 -1
- package/options.mjs +4 -359
- package/options.mjs.map +1 -1
- package/package.json +9 -49
- package/server.d.mts +3 -8
- package/server.d.mts.map +1 -1
- package/server.d.ts +3 -8
- package/server.d.ts.map +1 -1
- package/server.js +12 -65
- package/server.js.map +1 -1
- package/server.mjs +11 -62
- package/server.mjs.map +1 -1
- package/src/code-tool-types.ts +6 -9
- package/src/code-tool.ts +17 -6
- package/src/docs-search-tool.ts +1 -1
- package/src/http.ts +1 -19
- package/src/index.ts +5 -52
- package/src/options.ts +5 -386
- package/src/server.ts +12 -72
- package/src/stdio.ts +2 -3
- package/src/{tools/types.ts → types.ts} +1 -1
- package/stdio.d.mts +1 -2
- package/stdio.d.mts.map +1 -1
- package/stdio.d.ts +1 -2
- package/stdio.d.ts.map +1 -1
- package/stdio.js +2 -2
- package/stdio.js.map +1 -1
- package/stdio.mjs +2 -2
- package/stdio.mjs.map +1 -1
- package/{tools/types.d.mts → types.d.mts} +1 -1
- package/types.d.mts.map +1 -0
- package/{tools/types.d.ts → types.d.ts} +1 -1
- package/types.d.ts.map +1 -0
- package/types.js.map +1 -0
- package/types.mjs.map +1 -0
- package/compat.d.mts +0 -58
- package/compat.d.mts.map +0 -1
- package/compat.d.ts +0 -58
- package/compat.d.ts.map +0 -1
- package/compat.js +0 -387
- package/compat.js.map +0 -1
- package/compat.mjs +0 -378
- package/compat.mjs.map +0 -1
- package/dynamic-tools.d.mts +0 -12
- package/dynamic-tools.d.mts.map +0 -1
- package/dynamic-tools.d.ts +0 -12
- package/dynamic-tools.d.ts.map +0 -1
- package/dynamic-tools.js +0 -135
- package/dynamic-tools.js.map +0 -1
- package/dynamic-tools.mjs +0 -132
- package/dynamic-tools.mjs.map +0 -1
- package/filtering.d.mts +0 -3
- package/filtering.d.mts.map +0 -1
- package/filtering.d.ts +0 -3
- package/filtering.d.ts.map +0 -1
- package/filtering.js +0 -24
- package/filtering.js.map +0 -1
- package/filtering.mjs +0 -16
- package/filtering.mjs.map +0 -1
- package/src/compat.ts +0 -483
- package/src/dynamic-tools.ts +0 -153
- package/src/filtering.ts +0 -18
- package/src/tools/access-tokens/create-access-tokens.ts +0 -65
- package/src/tools/account/disconnect-account.ts +0 -49
- package/src/tools/account/introspect-account.ts +0 -51
- package/src/tools/connect/sessions/new-connect-sessions.ts +0 -115
- package/src/tools/connect/sessions/reauthenticate-connect-sessions.ts +0 -83
- package/src/tools/hris/benefits/create-hris-benefits.ts +0 -129
- package/src/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.ts +0 -146
- package/src/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.ts +0 -63
- package/src/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.ts +0 -67
- package/src/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.ts +0 -70
- package/src/tools/hris/benefits/list-hris-benefits.ts +0 -59
- package/src/tools/hris/benefits/list-supported-benefits-hris-benefits.ts +0 -59
- package/src/tools/hris/benefits/retrieve-hris-benefits.ts +0 -63
- package/src/tools/hris/benefits/update-hris-benefits.ts +0 -65
- package/src/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.ts +0 -88
- package/src/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.ts +0 -106
- package/src/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.ts +0 -63
- package/src/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.ts +0 -59
- package/src/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.ts +0 -67
- package/src/tools/hris/company/retrieve-hris-company.ts +0 -58
- package/src/tools/hris/directory/list-hris-directory.ts +0 -67
- package/src/tools/hris/documents/list-hris-documents.ts +0 -82
- package/src/tools/hris/documents/retreive-hris-documents.ts +0 -63
- package/src/tools/hris/employments/retrieve-many-hris-employments.ts +0 -64
- package/src/tools/hris/individuals/retrieve-many-hris-individuals.ts +0 -79
- package/src/tools/hris/pay-statements/retrieve-many-hris-pay-statements.ts +0 -72
- package/src/tools/hris/payments/list-hris-payments.ts +0 -69
- package/src/tools/index.ts +0 -161
- package/src/tools/jobs/automated/create-jobs-automated.ts +0 -82
- package/src/tools/jobs/automated/list-jobs-automated.ts +0 -59
- package/src/tools/jobs/automated/retrieve-jobs-automated.ts +0 -54
- package/src/tools/jobs/manual/retrieve-jobs-manual.ts +0 -54
- package/src/tools/payroll/pay-groups/list-payroll-pay-groups.ts +0 -68
- package/src/tools/payroll/pay-groups/retrieve-payroll-pay-groups.ts +0 -63
- package/src/tools/providers/list-providers.ts +0 -52
- package/src/tools/request-forwarding/forward-request-forwarding.ts +0 -76
- package/src/tools/sandbox/company/update-sandbox-company.ts +0 -192
- package/src/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.ts +0 -71
- package/src/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.ts +0 -62
- package/src/tools/sandbox/connections/create-sandbox-connections.ts +0 -69
- package/src/tools/sandbox/directory/create-sandbox-directory.ts +0 -319
- package/src/tools/sandbox/employment/update-sandbox-employment.ts +0 -236
- package/src/tools/sandbox/individual/update-sandbox-individual.ts +0 -177
- package/src/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.ts +0 -53
- package/src/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.ts +0 -61
- package/src/tools/sandbox/jobs/create-sandbox-jobs.ts +0 -54
- package/src/tools/sandbox/payment/create-sandbox-payment.ts +0 -224
- package/src/tools.ts +0 -1
- package/tools/access-tokens/create-access-tokens.d.mts +0 -51
- package/tools/access-tokens/create-access-tokens.d.mts.map +0 -1
- package/tools/access-tokens/create-access-tokens.d.ts +0 -51
- package/tools/access-tokens/create-access-tokens.d.ts.map +0 -1
- package/tools/access-tokens/create-access-tokens.js +0 -65
- package/tools/access-tokens/create-access-tokens.js.map +0 -1
- package/tools/access-tokens/create-access-tokens.mjs +0 -58
- package/tools/access-tokens/create-access-tokens.mjs.map +0 -1
- package/tools/account/disconnect-account.d.mts +0 -51
- package/tools/account/disconnect-account.d.mts.map +0 -1
- package/tools/account/disconnect-account.d.ts +0 -51
- package/tools/account/disconnect-account.d.ts.map +0 -1
- package/tools/account/disconnect-account.js +0 -49
- package/tools/account/disconnect-account.js.map +0 -1
- package/tools/account/disconnect-account.mjs +0 -42
- package/tools/account/disconnect-account.mjs.map +0 -1
- package/tools/account/introspect-account.d.mts +0 -51
- package/tools/account/introspect-account.d.mts.map +0 -1
- package/tools/account/introspect-account.d.ts +0 -51
- package/tools/account/introspect-account.d.ts.map +0 -1
- package/tools/account/introspect-account.js +0 -51
- package/tools/account/introspect-account.js.map +0 -1
- package/tools/account/introspect-account.mjs +0 -44
- package/tools/account/introspect-account.mjs.map +0 -1
- package/tools/connect/sessions/new-connect-sessions.d.mts +0 -51
- package/tools/connect/sessions/new-connect-sessions.d.mts.map +0 -1
- package/tools/connect/sessions/new-connect-sessions.d.ts +0 -51
- package/tools/connect/sessions/new-connect-sessions.d.ts.map +0 -1
- package/tools/connect/sessions/new-connect-sessions.js +0 -114
- package/tools/connect/sessions/new-connect-sessions.js.map +0 -1
- package/tools/connect/sessions/new-connect-sessions.mjs +0 -107
- package/tools/connect/sessions/new-connect-sessions.mjs.map +0 -1
- package/tools/connect/sessions/reauthenticate-connect-sessions.d.mts +0 -51
- package/tools/connect/sessions/reauthenticate-connect-sessions.d.mts.map +0 -1
- package/tools/connect/sessions/reauthenticate-connect-sessions.d.ts +0 -51
- package/tools/connect/sessions/reauthenticate-connect-sessions.d.ts.map +0 -1
- package/tools/connect/sessions/reauthenticate-connect-sessions.js +0 -81
- package/tools/connect/sessions/reauthenticate-connect-sessions.js.map +0 -1
- package/tools/connect/sessions/reauthenticate-connect-sessions.mjs +0 -74
- package/tools/connect/sessions/reauthenticate-connect-sessions.mjs.map +0 -1
- package/tools/hris/benefits/create-hris-benefits.d.mts +0 -51
- package/tools/hris/benefits/create-hris-benefits.d.mts.map +0 -1
- package/tools/hris/benefits/create-hris-benefits.d.ts +0 -51
- package/tools/hris/benefits/create-hris-benefits.d.ts.map +0 -1
- package/tools/hris/benefits/create-hris-benefits.js +0 -128
- package/tools/hris/benefits/create-hris-benefits.js.map +0 -1
- package/tools/hris/benefits/create-hris-benefits.mjs +0 -121
- package/tools/hris/benefits/create-hris-benefits.mjs.map +0 -1
- package/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.d.mts +0 -51
- package/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.d.mts.map +0 -1
- package/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.d.ts +0 -51
- package/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.d.ts.map +0 -1
- package/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.js +0 -139
- package/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.js.map +0 -1
- package/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.mjs +0 -132
- package/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.mjs.map +0 -1
- package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.d.mts +0 -51
- package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.d.mts.map +0 -1
- package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.d.ts +0 -51
- package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.d.ts.map +0 -1
- package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.js +0 -61
- package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.js.map +0 -1
- package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.mjs +0 -54
- package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.mjs.map +0 -1
- package/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.d.mts +0 -51
- package/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.d.mts.map +0 -1
- package/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.d.ts +0 -51
- package/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.d.ts.map +0 -1
- package/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.js +0 -66
- package/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.js.map +0 -1
- package/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.mjs +0 -59
- package/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.mjs.map +0 -1
- package/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.d.mts +0 -51
- package/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.d.mts.map +0 -1
- package/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.d.ts +0 -51
- package/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.d.ts.map +0 -1
- package/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.js +0 -68
- package/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.js.map +0 -1
- package/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.mjs +0 -61
- package/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.mjs.map +0 -1
- package/tools/hris/benefits/list-hris-benefits.d.mts +0 -51
- package/tools/hris/benefits/list-hris-benefits.d.mts.map +0 -1
- package/tools/hris/benefits/list-hris-benefits.d.ts +0 -51
- package/tools/hris/benefits/list-hris-benefits.d.ts.map +0 -1
- package/tools/hris/benefits/list-hris-benefits.js +0 -59
- package/tools/hris/benefits/list-hris-benefits.js.map +0 -1
- package/tools/hris/benefits/list-hris-benefits.mjs +0 -52
- package/tools/hris/benefits/list-hris-benefits.mjs.map +0 -1
- package/tools/hris/benefits/list-supported-benefits-hris-benefits.d.mts +0 -51
- package/tools/hris/benefits/list-supported-benefits-hris-benefits.d.mts.map +0 -1
- package/tools/hris/benefits/list-supported-benefits-hris-benefits.d.ts +0 -51
- package/tools/hris/benefits/list-supported-benefits-hris-benefits.d.ts.map +0 -1
- package/tools/hris/benefits/list-supported-benefits-hris-benefits.js +0 -59
- package/tools/hris/benefits/list-supported-benefits-hris-benefits.js.map +0 -1
- package/tools/hris/benefits/list-supported-benefits-hris-benefits.mjs +0 -52
- package/tools/hris/benefits/list-supported-benefits-hris-benefits.mjs.map +0 -1
- package/tools/hris/benefits/retrieve-hris-benefits.d.mts +0 -51
- package/tools/hris/benefits/retrieve-hris-benefits.d.mts.map +0 -1
- package/tools/hris/benefits/retrieve-hris-benefits.d.ts +0 -51
- package/tools/hris/benefits/retrieve-hris-benefits.d.ts.map +0 -1
- package/tools/hris/benefits/retrieve-hris-benefits.js +0 -61
- package/tools/hris/benefits/retrieve-hris-benefits.js.map +0 -1
- package/tools/hris/benefits/retrieve-hris-benefits.mjs +0 -54
- package/tools/hris/benefits/retrieve-hris-benefits.mjs.map +0 -1
- package/tools/hris/benefits/update-hris-benefits.d.mts +0 -51
- package/tools/hris/benefits/update-hris-benefits.d.mts.map +0 -1
- package/tools/hris/benefits/update-hris-benefits.d.ts +0 -51
- package/tools/hris/benefits/update-hris-benefits.d.ts.map +0 -1
- package/tools/hris/benefits/update-hris-benefits.js +0 -63
- package/tools/hris/benefits/update-hris-benefits.js.map +0 -1
- package/tools/hris/benefits/update-hris-benefits.mjs +0 -56
- package/tools/hris/benefits/update-hris-benefits.mjs.map +0 -1
- package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.d.mts +0 -51
- package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.d.mts.map +0 -1
- package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.d.ts +0 -51
- package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.d.ts.map +0 -1
- package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.js +0 -85
- package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.js.map +0 -1
- package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.mjs +0 -78
- package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.mjs.map +0 -1
- package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.d.mts +0 -51
- package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.d.mts.map +0 -1
- package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.d.ts +0 -51
- package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.d.ts.map +0 -1
- package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.js +0 -103
- package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.js.map +0 -1
- package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.mjs +0 -96
- package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.mjs.map +0 -1
- package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.d.mts +0 -51
- package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.d.mts.map +0 -1
- package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.d.ts +0 -51
- package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.d.ts.map +0 -1
- package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.js +0 -61
- package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.js.map +0 -1
- package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.mjs +0 -54
- package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.mjs.map +0 -1
- package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.d.mts +0 -51
- package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.d.mts.map +0 -1
- package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.d.ts +0 -51
- package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.d.ts.map +0 -1
- package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.js +0 -59
- package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.js.map +0 -1
- package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.mjs +0 -52
- package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.mjs.map +0 -1
- package/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.d.mts +0 -51
- package/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.d.mts.map +0 -1
- package/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.d.ts +0 -51
- package/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.d.ts.map +0 -1
- package/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.js +0 -65
- package/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.js.map +0 -1
- package/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.mjs +0 -58
- package/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.mjs.map +0 -1
- package/tools/hris/company/retrieve-hris-company.d.mts +0 -51
- package/tools/hris/company/retrieve-hris-company.d.mts.map +0 -1
- package/tools/hris/company/retrieve-hris-company.d.ts +0 -51
- package/tools/hris/company/retrieve-hris-company.d.ts.map +0 -1
- package/tools/hris/company/retrieve-hris-company.js +0 -58
- package/tools/hris/company/retrieve-hris-company.js.map +0 -1
- package/tools/hris/company/retrieve-hris-company.mjs +0 -51
- package/tools/hris/company/retrieve-hris-company.mjs.map +0 -1
- package/tools/hris/directory/list-hris-directory.d.mts +0 -51
- package/tools/hris/directory/list-hris-directory.d.mts.map +0 -1
- package/tools/hris/directory/list-hris-directory.d.ts +0 -51
- package/tools/hris/directory/list-hris-directory.d.ts.map +0 -1
- package/tools/hris/directory/list-hris-directory.js +0 -67
- package/tools/hris/directory/list-hris-directory.js.map +0 -1
- package/tools/hris/directory/list-hris-directory.mjs +0 -60
- package/tools/hris/directory/list-hris-directory.mjs.map +0 -1
- package/tools/hris/documents/list-hris-documents.d.mts +0 -51
- package/tools/hris/documents/list-hris-documents.d.mts.map +0 -1
- package/tools/hris/documents/list-hris-documents.d.ts +0 -51
- package/tools/hris/documents/list-hris-documents.d.ts.map +0 -1
- package/tools/hris/documents/list-hris-documents.js +0 -81
- package/tools/hris/documents/list-hris-documents.js.map +0 -1
- package/tools/hris/documents/list-hris-documents.mjs +0 -74
- package/tools/hris/documents/list-hris-documents.mjs.map +0 -1
- package/tools/hris/documents/retreive-hris-documents.d.mts +0 -51
- package/tools/hris/documents/retreive-hris-documents.d.mts.map +0 -1
- package/tools/hris/documents/retreive-hris-documents.d.ts +0 -51
- package/tools/hris/documents/retreive-hris-documents.d.ts.map +0 -1
- package/tools/hris/documents/retreive-hris-documents.js +0 -61
- package/tools/hris/documents/retreive-hris-documents.js.map +0 -1
- package/tools/hris/documents/retreive-hris-documents.mjs +0 -54
- package/tools/hris/documents/retreive-hris-documents.mjs.map +0 -1
- package/tools/hris/employments/retrieve-many-hris-employments.d.mts +0 -51
- package/tools/hris/employments/retrieve-many-hris-employments.d.mts.map +0 -1
- package/tools/hris/employments/retrieve-many-hris-employments.d.ts +0 -51
- package/tools/hris/employments/retrieve-many-hris-employments.d.ts.map +0 -1
- package/tools/hris/employments/retrieve-many-hris-employments.js +0 -65
- package/tools/hris/employments/retrieve-many-hris-employments.js.map +0 -1
- package/tools/hris/employments/retrieve-many-hris-employments.mjs +0 -58
- package/tools/hris/employments/retrieve-many-hris-employments.mjs.map +0 -1
- package/tools/hris/individuals/retrieve-many-hris-individuals.d.mts +0 -51
- package/tools/hris/individuals/retrieve-many-hris-individuals.d.mts.map +0 -1
- package/tools/hris/individuals/retrieve-many-hris-individuals.d.ts +0 -51
- package/tools/hris/individuals/retrieve-many-hris-individuals.d.ts.map +0 -1
- package/tools/hris/individuals/retrieve-many-hris-individuals.js +0 -79
- package/tools/hris/individuals/retrieve-many-hris-individuals.js.map +0 -1
- package/tools/hris/individuals/retrieve-many-hris-individuals.mjs +0 -72
- package/tools/hris/individuals/retrieve-many-hris-individuals.mjs.map +0 -1
- package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.d.mts +0 -51
- package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.d.mts.map +0 -1
- package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.d.ts +0 -51
- package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.d.ts.map +0 -1
- package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.js +0 -73
- package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.js.map +0 -1
- package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.mjs +0 -66
- package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.mjs.map +0 -1
- package/tools/hris/payments/list-hris-payments.d.mts +0 -51
- package/tools/hris/payments/list-hris-payments.d.mts.map +0 -1
- package/tools/hris/payments/list-hris-payments.d.ts +0 -51
- package/tools/hris/payments/list-hris-payments.d.ts.map +0 -1
- package/tools/hris/payments/list-hris-payments.js +0 -69
- package/tools/hris/payments/list-hris-payments.js.map +0 -1
- package/tools/hris/payments/list-hris-payments.mjs +0 -62
- package/tools/hris/payments/list-hris-payments.mjs.map +0 -1
- package/tools/index.d.mts +0 -10
- package/tools/index.d.mts.map +0 -1
- package/tools/index.d.ts +0 -10
- package/tools/index.d.ts.map +0 -1
- package/tools/index.js +0 -145
- package/tools/index.js.map +0 -1
- package/tools/index.mjs +0 -138
- package/tools/index.mjs.map +0 -1
- package/tools/jobs/automated/create-jobs-automated.d.mts +0 -51
- package/tools/jobs/automated/create-jobs-automated.d.mts.map +0 -1
- package/tools/jobs/automated/create-jobs-automated.d.ts +0 -51
- package/tools/jobs/automated/create-jobs-automated.d.ts.map +0 -1
- package/tools/jobs/automated/create-jobs-automated.js +0 -82
- package/tools/jobs/automated/create-jobs-automated.js.map +0 -1
- package/tools/jobs/automated/create-jobs-automated.mjs +0 -75
- package/tools/jobs/automated/create-jobs-automated.mjs.map +0 -1
- package/tools/jobs/automated/list-jobs-automated.d.mts +0 -51
- package/tools/jobs/automated/list-jobs-automated.d.mts.map +0 -1
- package/tools/jobs/automated/list-jobs-automated.d.ts +0 -51
- package/tools/jobs/automated/list-jobs-automated.d.ts.map +0 -1
- package/tools/jobs/automated/list-jobs-automated.js +0 -59
- package/tools/jobs/automated/list-jobs-automated.js.map +0 -1
- package/tools/jobs/automated/list-jobs-automated.mjs +0 -52
- package/tools/jobs/automated/list-jobs-automated.mjs.map +0 -1
- package/tools/jobs/automated/retrieve-jobs-automated.d.mts +0 -51
- package/tools/jobs/automated/retrieve-jobs-automated.d.mts.map +0 -1
- package/tools/jobs/automated/retrieve-jobs-automated.d.ts +0 -51
- package/tools/jobs/automated/retrieve-jobs-automated.d.ts.map +0 -1
- package/tools/jobs/automated/retrieve-jobs-automated.js +0 -54
- package/tools/jobs/automated/retrieve-jobs-automated.js.map +0 -1
- package/tools/jobs/automated/retrieve-jobs-automated.mjs +0 -47
- package/tools/jobs/automated/retrieve-jobs-automated.mjs.map +0 -1
- package/tools/jobs/manual/retrieve-jobs-manual.d.mts +0 -51
- package/tools/jobs/manual/retrieve-jobs-manual.d.mts.map +0 -1
- package/tools/jobs/manual/retrieve-jobs-manual.d.ts +0 -51
- package/tools/jobs/manual/retrieve-jobs-manual.d.ts.map +0 -1
- package/tools/jobs/manual/retrieve-jobs-manual.js +0 -54
- package/tools/jobs/manual/retrieve-jobs-manual.js.map +0 -1
- package/tools/jobs/manual/retrieve-jobs-manual.mjs +0 -47
- package/tools/jobs/manual/retrieve-jobs-manual.mjs.map +0 -1
- package/tools/payroll/pay-groups/list-payroll-pay-groups.d.mts +0 -51
- package/tools/payroll/pay-groups/list-payroll-pay-groups.d.mts.map +0 -1
- package/tools/payroll/pay-groups/list-payroll-pay-groups.d.ts +0 -51
- package/tools/payroll/pay-groups/list-payroll-pay-groups.d.ts.map +0 -1
- package/tools/payroll/pay-groups/list-payroll-pay-groups.js +0 -68
- package/tools/payroll/pay-groups/list-payroll-pay-groups.js.map +0 -1
- package/tools/payroll/pay-groups/list-payroll-pay-groups.mjs +0 -61
- package/tools/payroll/pay-groups/list-payroll-pay-groups.mjs.map +0 -1
- package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.d.mts +0 -51
- package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.d.mts.map +0 -1
- package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.d.ts +0 -51
- package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.d.ts.map +0 -1
- package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.js +0 -61
- package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.js.map +0 -1
- package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.mjs +0 -54
- package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.mjs.map +0 -1
- package/tools/providers/list-providers.d.mts +0 -51
- package/tools/providers/list-providers.d.mts.map +0 -1
- package/tools/providers/list-providers.d.ts +0 -51
- package/tools/providers/list-providers.d.ts.map +0 -1
- package/tools/providers/list-providers.js +0 -52
- package/tools/providers/list-providers.js.map +0 -1
- package/tools/providers/list-providers.mjs +0 -45
- package/tools/providers/list-providers.mjs.map +0 -1
- package/tools/request-forwarding/forward-request-forwarding.d.mts +0 -51
- package/tools/request-forwarding/forward-request-forwarding.d.mts.map +0 -1
- package/tools/request-forwarding/forward-request-forwarding.d.ts +0 -51
- package/tools/request-forwarding/forward-request-forwarding.d.ts.map +0 -1
- package/tools/request-forwarding/forward-request-forwarding.js +0 -71
- package/tools/request-forwarding/forward-request-forwarding.js.map +0 -1
- package/tools/request-forwarding/forward-request-forwarding.mjs +0 -64
- package/tools/request-forwarding/forward-request-forwarding.mjs.map +0 -1
- package/tools/sandbox/company/update-sandbox-company.d.mts +0 -51
- package/tools/sandbox/company/update-sandbox-company.d.mts.map +0 -1
- package/tools/sandbox/company/update-sandbox-company.d.ts +0 -51
- package/tools/sandbox/company/update-sandbox-company.d.ts.map +0 -1
- package/tools/sandbox/company/update-sandbox-company.js +0 -190
- package/tools/sandbox/company/update-sandbox-company.js.map +0 -1
- package/tools/sandbox/company/update-sandbox-company.mjs +0 -183
- package/tools/sandbox/company/update-sandbox-company.mjs.map +0 -1
- package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.d.mts +0 -51
- package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.d.mts.map +0 -1
- package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.d.ts +0 -51
- package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.d.ts.map +0 -1
- package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.js +0 -68
- package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.js.map +0 -1
- package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.mjs +0 -61
- package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.mjs.map +0 -1
- package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.d.mts +0 -51
- package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.d.mts.map +0 -1
- package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.d.ts +0 -51
- package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.d.ts.map +0 -1
- package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.js +0 -60
- package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.js.map +0 -1
- package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.mjs +0 -53
- package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.mjs.map +0 -1
- package/tools/sandbox/connections/create-sandbox-connections.d.mts +0 -51
- package/tools/sandbox/connections/create-sandbox-connections.d.mts.map +0 -1
- package/tools/sandbox/connections/create-sandbox-connections.d.ts +0 -51
- package/tools/sandbox/connections/create-sandbox-connections.d.ts.map +0 -1
- package/tools/sandbox/connections/create-sandbox-connections.js +0 -68
- package/tools/sandbox/connections/create-sandbox-connections.js.map +0 -1
- package/tools/sandbox/connections/create-sandbox-connections.mjs +0 -61
- package/tools/sandbox/connections/create-sandbox-connections.mjs.map +0 -1
- package/tools/sandbox/directory/create-sandbox-directory.d.mts +0 -51
- package/tools/sandbox/directory/create-sandbox-directory.d.mts.map +0 -1
- package/tools/sandbox/directory/create-sandbox-directory.d.ts +0 -51
- package/tools/sandbox/directory/create-sandbox-directory.d.ts.map +0 -1
- package/tools/sandbox/directory/create-sandbox-directory.js +0 -311
- package/tools/sandbox/directory/create-sandbox-directory.js.map +0 -1
- package/tools/sandbox/directory/create-sandbox-directory.mjs +0 -304
- package/tools/sandbox/directory/create-sandbox-directory.mjs.map +0 -1
- package/tools/sandbox/employment/update-sandbox-employment.d.mts +0 -51
- package/tools/sandbox/employment/update-sandbox-employment.d.mts.map +0 -1
- package/tools/sandbox/employment/update-sandbox-employment.d.ts +0 -51
- package/tools/sandbox/employment/update-sandbox-employment.d.ts.map +0 -1
- package/tools/sandbox/employment/update-sandbox-employment.js +0 -233
- package/tools/sandbox/employment/update-sandbox-employment.js.map +0 -1
- package/tools/sandbox/employment/update-sandbox-employment.mjs +0 -226
- package/tools/sandbox/employment/update-sandbox-employment.mjs.map +0 -1
- package/tools/sandbox/individual/update-sandbox-individual.d.mts +0 -51
- package/tools/sandbox/individual/update-sandbox-individual.d.mts.map +0 -1
- package/tools/sandbox/individual/update-sandbox-individual.d.ts +0 -51
- package/tools/sandbox/individual/update-sandbox-individual.d.ts.map +0 -1
- package/tools/sandbox/individual/update-sandbox-individual.js +0 -173
- package/tools/sandbox/individual/update-sandbox-individual.js.map +0 -1
- package/tools/sandbox/individual/update-sandbox-individual.mjs +0 -166
- package/tools/sandbox/individual/update-sandbox-individual.mjs.map +0 -1
- package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.d.mts +0 -51
- package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.d.mts.map +0 -1
- package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.d.ts +0 -51
- package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.d.ts.map +0 -1
- package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.js +0 -51
- package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.js.map +0 -1
- package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.mjs +0 -44
- package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.mjs.map +0 -1
- package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.d.mts +0 -51
- package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.d.mts.map +0 -1
- package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.d.ts +0 -51
- package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.d.ts.map +0 -1
- package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.js +0 -59
- package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.js.map +0 -1
- package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.mjs +0 -52
- package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.mjs.map +0 -1
- package/tools/sandbox/jobs/create-sandbox-jobs.d.mts +0 -51
- package/tools/sandbox/jobs/create-sandbox-jobs.d.mts.map +0 -1
- package/tools/sandbox/jobs/create-sandbox-jobs.d.ts +0 -51
- package/tools/sandbox/jobs/create-sandbox-jobs.d.ts.map +0 -1
- package/tools/sandbox/jobs/create-sandbox-jobs.js +0 -54
- package/tools/sandbox/jobs/create-sandbox-jobs.js.map +0 -1
- package/tools/sandbox/jobs/create-sandbox-jobs.mjs +0 -47
- package/tools/sandbox/jobs/create-sandbox-jobs.mjs.map +0 -1
- package/tools/sandbox/payment/create-sandbox-payment.d.mts +0 -51
- package/tools/sandbox/payment/create-sandbox-payment.d.mts.map +0 -1
- package/tools/sandbox/payment/create-sandbox-payment.d.ts +0 -51
- package/tools/sandbox/payment/create-sandbox-payment.d.ts.map +0 -1
- package/tools/sandbox/payment/create-sandbox-payment.js +0 -224
- package/tools/sandbox/payment/create-sandbox-payment.js.map +0 -1
- package/tools/sandbox/payment/create-sandbox-payment.mjs +0 -217
- package/tools/sandbox/payment/create-sandbox-payment.mjs.map +0 -1
- package/tools/types.d.mts.map +0 -1
- package/tools/types.d.ts.map +0 -1
- package/tools/types.js.map +0 -1
- package/tools/types.mjs.map +0 -1
- package/tools.d.mts +0 -2
- package/tools.d.mts.map +0 -1
- package/tools.d.ts +0 -2
- package/tools.d.ts.map +0 -1
- package/tools.js +0 -18
- package/tools.js.map +0 -1
- package/tools.mjs +0 -2
- package/tools.mjs.map +0 -1
- /package/{tools/types.js → types.js} +0 -0
- /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 };
|