Merge · Capability

Merge CRM API — Contacts

Merge CRM API — Contacts. 2 operations. Lead operation: Merge List Contacts. Self-contained Naftiko capability covering one Merge business surface.

Run with Naftiko MergeContacts

What You Can Do

GET
Listcontacts — Merge List Contacts
/v1/contacts
POST
Createcontact — Merge Create Contact
/v1/contacts

MCP Tools

merge-list-contacts

Merge List Contacts

read-only idempotent
merge-create-contact

Merge Create Contact

Capability Spec

crm-contacts.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Merge CRM API — Contacts
  description: 'Merge CRM API — Contacts. 2 operations. Lead operation: Merge List Contacts. Self-contained Naftiko capability
    covering one Merge business surface.'
  tags:
  - Merge
  - Contacts
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MERGE_API_KEY: MERGE_API_KEY
capability:
  consumes:
  - type: http
    namespace: crm-contacts
    baseUri: https://api.merge.dev/api/crm/v1
    description: Merge CRM API — Contacts business capability. Self-contained, no shared references.
    resources:
    - name: contacts
      path: /contacts
      operations:
      - name: listcontacts
        method: GET
        description: Merge List Contacts
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createcontact
        method: POST
        description: Merge Create Contact
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.MERGE_API_KEY}}'
  exposes:
  - type: rest
    namespace: crm-contacts-rest
    port: 8080
    description: REST adapter for Merge CRM API — Contacts. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/contacts
      name: contacts
      description: REST surface for contacts.
      operations:
      - method: GET
        name: listcontacts
        description: Merge List Contacts
        call: crm-contacts.listcontacts
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createcontact
        description: Merge Create Contact
        call: crm-contacts.createcontact
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: crm-contacts-mcp
    port: 9090
    transport: http
    description: MCP adapter for Merge CRM API — Contacts. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: merge-list-contacts
      description: Merge List Contacts
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: crm-contacts.listcontacts
      outputParameters:
      - type: object
        mapping: $.
    - name: merge-create-contact
      description: Merge Create Contact
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: crm-contacts.createcontact
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.