Coinbase · Capability

Coinbase Exchange API — Conversions

Coinbase Exchange API — Conversions. 2 operations. Lead operation: Create conversion. Self-contained Naftiko capability covering one Coinbase business surface.

Run with Naftiko CoinbaseConversions

What You Can Do

POST
Createconversion — Create conversion
/v1/conversions
GET
Getconversion — Get conversion
/v1/conversions/{conversion-id}

MCP Tools

create-conversion

Create conversion

get-conversion

Get conversion

read-only idempotent

Capability Spec

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