naftiko: 1.0.0-alpha2 info: label: Endpoints — subpackage_enrollments description: 'Endpoints — subpackage_enrollments. 2 operations. Lead operation: Enroll an employee in a 401k plan. Self-contained Naftiko capability covering one Deel business surface.' tags: - Deel - subpackage_enrollments created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: DEEL_API_KEY: DEEL_API_KEY capability: consumes: - type: http namespace: platform-endpoints-subpackage-enrollments baseUri: https://api.letsdeel.com/rest/v2 description: Endpoints — subpackage_enrollments business capability. Self-contained, no shared references. resources: - name: benefits-legal-entities-legal_entity_id-contracts-contract_id-plans-plan_id path: /benefits/legal-entities/{legal_entity_id}/contracts/{contract_id}/plans/{plan_id} operations: - name: enrollanemployeeina401kplanv20260101 method: POST description: Enroll an employee in a 401k plan outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: legal_entity_id in: path type: string description: Legal entity id which employee/contract belongs required: true - name: contract_id in: path type: string description: Contract id from the employee required: true - name: plan_id in: path type: string description: Plan id to enroll the employee into required: true - name: Authorization in: header type: string description: '## Authentication' required: true - name: body in: body type: object description: Request body (JSON). required: false - name: getenrollmentsettingsfromanemployeeina401kplanv20260101 method: GET description: Get enrollment settings from an employee in a 401k plan outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: legal_entity_id in: path type: string description: Legal entity id which employee/contract belongs required: true - name: contract_id in: path type: string description: Contract id from the employee required: true - name: plan_id in: path type: string description: Plan id to enroll the employee into required: true - name: Authorization in: header type: string description: '## Authentication' required: true authentication: type: bearer token: '{{env.DEEL_API_KEY}}' exposes: - type: rest namespace: platform-endpoints-subpackage-enrollments-rest port: 8080 description: REST adapter for Endpoints — subpackage_enrollments. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/benefits/legal-entities/{legal-entity-id}/contracts/{contract-id}/plans/{plan-id} name: benefits-legal-entities-legal-entity-id-contracts-contract-id-plans-plan-id description: REST surface for benefits-legal-entities-legal_entity_id-contracts-contract_id-plans-plan_id. operations: - method: POST name: enrollanemployeeina401kplanv20260101 description: Enroll an employee in a 401k plan call: platform-endpoints-subpackage-enrollments.enrollanemployeeina401kplanv20260101 with: legal_entity_id: rest.legal_entity_id contract_id: rest.contract_id plan_id: rest.plan_id Authorization: rest.Authorization body: rest.body outputParameters: - type: object mapping: $. - method: GET name: getenrollmentsettingsfromanemployeeina401kplanv20260101 description: Get enrollment settings from an employee in a 401k plan call: platform-endpoints-subpackage-enrollments.getenrollmentsettingsfromanemployeeina401kplanv20260101 with: legal_entity_id: rest.legal_entity_id contract_id: rest.contract_id plan_id: rest.plan_id Authorization: rest.Authorization outputParameters: - type: object mapping: $. - type: mcp namespace: platform-endpoints-subpackage-enrollments-mcp port: 9090 transport: http description: MCP adapter for Endpoints — subpackage_enrollments. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: enroll-employee-401k-plan description: Enroll an employee in a 401k plan hints: readOnly: false destructive: false idempotent: false call: platform-endpoints-subpackage-enrollments.enrollanemployeeina401kplanv20260101 with: legal_entity_id: tools.legal_entity_id contract_id: tools.contract_id plan_id: tools.plan_id Authorization: tools.Authorization body: tools.body outputParameters: - type: object mapping: $. - name: get-enrollment-settings-employee-401k description: Get enrollment settings from an employee in a 401k plan hints: readOnly: true destructive: false idempotent: true call: platform-endpoints-subpackage-enrollments.getenrollmentsettingsfromanemployeeina401kplanv20260101 with: legal_entity_id: tools.legal_entity_id contract_id: tools.contract_id plan_id: tools.plan_id Authorization: tools.Authorization outputParameters: - type: object mapping: $.