Chat · Capability

Reference Chat API — Participants

Reference Chat API — Participants. 2 operations. Lead operation: List participants. Self-contained Naftiko capability covering one Chat business surface.

Run with Naftiko ChatParticipants

What You Can Do

GET
Listparticipants — List participants
/v1/conversations/{conversationid}/participants
POST
Addparticipant — Add a participant
/v1/conversations/{conversationid}/participants

MCP Tools

list-participants

List participants

read-only idempotent
add-participant

Add a participant

Capability Spec

reference-participants.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Reference Chat API — Participants
  description: 'Reference Chat API — Participants. 2 operations. Lead operation: List participants. Self-contained Naftiko
    capability covering one Chat business surface.'
  tags:
  - Chat
  - Participants
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    CHAT_API_KEY: CHAT_API_KEY
capability:
  consumes:
  - type: http
    namespace: reference-participants
    baseUri: https://api.example.com/v1/chat
    description: Reference Chat API — Participants business capability. Self-contained, no shared references.
    resources:
    - name: conversations-conversationId-participants
      path: /conversations/{conversationId}/participants
      operations:
      - name: listparticipants
        method: GET
        description: List participants
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: addparticipant
        method: POST
        description: Add a participant
        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.CHAT_API_KEY}}'
  exposes:
  - type: rest
    namespace: reference-participants-rest
    port: 8080
    description: REST adapter for Reference Chat API — Participants. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/conversations/{conversationid}/participants
      name: conversations-conversationid-participants
      description: REST surface for conversations-conversationId-participants.
      operations:
      - method: GET
        name: listparticipants
        description: List participants
        call: reference-participants.listparticipants
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: addparticipant
        description: Add a participant
        call: reference-participants.addparticipant
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: reference-participants-mcp
    port: 9090
    transport: http
    description: MCP adapter for Reference Chat API — Participants. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-participants
      description: List participants
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: reference-participants.listparticipants
      outputParameters:
      - type: object
        mapping: $.
    - name: add-participant
      description: Add a participant
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: reference-participants.addparticipant
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.