Ternary · Capability

Ternary API — Commitments

Ternary API — Commitments. 2 operations. Lead operation: List Commitments. Self-contained Naftiko capability covering one Ternary business surface.

Run with Naftiko TernaryCommitments

What You Can Do

GET
Listcommitments — List Commitments
/v1/v1/commitments
GET
Getcommitment — Get Commitment
/v1/v1/commitments/{commitment-id}

MCP Tools

list-commitments

List Commitments

read-only idempotent
get-commitment

Get Commitment

read-only idempotent

Capability Spec

ternary-commitments.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Ternary API — Commitments
  description: 'Ternary API — Commitments. 2 operations. Lead operation: List Commitments. Self-contained Naftiko capability
    covering one Ternary business surface.'
  tags:
  - Ternary
  - Commitments
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    TERNARY_API_KEY: TERNARY_API_KEY
capability:
  consumes:
  - type: http
    namespace: ternary-commitments
    baseUri: https://api.ternary.app
    description: Ternary API — Commitments business capability. Self-contained, no shared references.
    resources:
    - name: v1-commitments
      path: /v1/commitments
      operations:
      - name: listcommitments
        method: GET
        description: List Commitments
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: cloud_provider
          in: query
          type: string
          description: Filter by cloud provider
        - name: status
          in: query
          type: string
          description: Filter by commitment status
        - name: page_token
          in: query
          type: string
          description: Token for paginating through results
    - name: v1-commitments-commitment_id
      path: /v1/commitments/{commitment_id}
      operations:
      - name: getcommitment
        method: GET
        description: Get Commitment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: commitment_id
          in: path
          type: string
          description: The unique identifier of the commitment
          required: true
    authentication:
      type: apikey
      key: X-API-Key
      value: '{{env.TERNARY_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: ternary-commitments-rest
    port: 8080
    description: REST adapter for Ternary API — Commitments. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/v1/commitments
      name: v1-commitments
      description: REST surface for v1-commitments.
      operations:
      - method: GET
        name: listcommitments
        description: List Commitments
        call: ternary-commitments.listcommitments
        with:
          cloud_provider: rest.cloud_provider
          status: rest.status
          page_token: rest.page_token
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/commitments/{commitment-id}
      name: v1-commitments-commitment-id
      description: REST surface for v1-commitments-commitment_id.
      operations:
      - method: GET
        name: getcommitment
        description: Get Commitment
        call: ternary-commitments.getcommitment
        with:
          commitment_id: rest.commitment_id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: ternary-commitments-mcp
    port: 9090
    transport: http
    description: MCP adapter for Ternary API — Commitments. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: list-commitments
      description: List Commitments
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: ternary-commitments.listcommitments
      with:
        cloud_provider: tools.cloud_provider
        status: tools.status
        page_token: tools.page_token
      outputParameters:
      - type: object
        mapping: $.
    - name: get-commitment
      description: Get Commitment
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: ternary-commitments.getcommitment
      with:
        commitment_id: tools.commitment_id
      outputParameters:
      - type: object
        mapping: $.