Merge · Capability

Merge HRIS API — Employments

Merge HRIS API — Employments. 1 operations. Lead operation: Merge List Employments. Self-contained Naftiko capability covering one Merge business surface.

Run with Naftiko MergeEmployments

What You Can Do

GET
Listemployments — Merge List Employments
/v1/employments

MCP Tools

merge-list-employments

Merge List Employments

read-only idempotent

Capability Spec

hris-employments.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Merge HRIS API — Employments
  description: 'Merge HRIS API — Employments. 1 operations. Lead operation: Merge List Employments. Self-contained Naftiko
    capability covering one Merge business surface.'
  tags:
  - Merge
  - Employments
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MERGE_API_KEY: MERGE_API_KEY
capability:
  consumes:
  - type: http
    namespace: hris-employments
    baseUri: https://api.merge.dev/api/hris/v1
    description: Merge HRIS API — Employments business capability. Self-contained, no shared references.
    resources:
    - name: employments
      path: /employments
      operations:
      - name: listemployments
        method: GET
        description: Merge List Employments
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: employee_id
          in: query
          type: string
          description: Filter employments by employee ID.
    authentication:
      type: bearer
      token: '{{env.MERGE_API_KEY}}'
  exposes:
  - type: rest
    namespace: hris-employments-rest
    port: 8080
    description: REST adapter for Merge HRIS API — Employments. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/employments
      name: employments
      description: REST surface for employments.
      operations:
      - method: GET
        name: listemployments
        description: Merge List Employments
        call: hris-employments.listemployments
        with:
          employee_id: rest.employee_id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: hris-employments-mcp
    port: 9090
    transport: http
    description: MCP adapter for Merge HRIS API — Employments. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: merge-list-employments
      description: Merge List Employments
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: hris-employments.listemployments
      with:
        employee_id: tools.employee_id
      outputParameters:
      - type: object
        mapping: $.