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