Coinbase · Capability

Coinbase Exchange API — Currencies

Coinbase Exchange API — Currencies. 2 operations. Lead operation: List currencies. Self-contained Naftiko capability covering one Coinbase business surface.

Run with Naftiko CoinbaseCurrencies

What You Can Do

GET
Listcurrencies — List currencies
/v1/currencies
GET
Getcurrency — Get currency
/v1/currencies/{currency-id}

MCP Tools

list-currencies

List currencies

read-only idempotent
get-currency

Get currency

read-only idempotent

Capability Spec

exchange-currencies.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Coinbase Exchange API — Currencies
  description: 'Coinbase Exchange API — Currencies. 2 operations. Lead operation: List currencies. Self-contained Naftiko
    capability covering one Coinbase business surface.'
  tags:
  - Coinbase
  - Currencies
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    COINBASE_API_KEY: COINBASE_API_KEY
capability:
  consumes:
  - type: http
    namespace: exchange-currencies
    baseUri: https://api.exchange.coinbase.com
    description: Coinbase Exchange API — Currencies business capability. Self-contained, no shared references.
    resources:
    - name: currencies
      path: /currencies
      operations:
      - name: listcurrencies
        method: GET
        description: List currencies
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: currencies-currency_id
      path: /currencies/{currency_id}
      operations:
      - name: getcurrency
        method: GET
        description: Get currency
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: currency_id
          in: path
          type: string
          description: Currency identifier
          required: true
    authentication:
      type: apikey
      key: CB-ACCESS-KEY
      value: '{{env.COINBASE_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: exchange-currencies-rest
    port: 8080
    description: REST adapter for Coinbase Exchange API — Currencies. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/currencies
      name: currencies
      description: REST surface for currencies.
      operations:
      - method: GET
        name: listcurrencies
        description: List currencies
        call: exchange-currencies.listcurrencies
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/currencies/{currency-id}
      name: currencies-currency-id
      description: REST surface for currencies-currency_id.
      operations:
      - method: GET
        name: getcurrency
        description: Get currency
        call: exchange-currencies.getcurrency
        with:
          currency_id: rest.currency_id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: exchange-currencies-mcp
    port: 9090
    transport: http
    description: MCP adapter for Coinbase Exchange API — Currencies. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-currencies
      description: List currencies
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: exchange-currencies.listcurrencies
      outputParameters:
      - type: object
        mapping: $.
    - name: get-currency
      description: Get currency
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: exchange-currencies.getcurrency
      with:
        currency_id: tools.currency_id
      outputParameters:
      - type: object
        mapping: $.