Coinbase · Capability

Coinbase Prime API — Allocations

Coinbase Prime API — Allocations. 1 operations. Lead operation: List portfolio allocations. Self-contained Naftiko capability covering one Coinbase business surface.

Run with Naftiko CoinbaseAllocations

What You Can Do

GET
Listportfolioallocations — List portfolio allocations
/v1/portfolios/{portfolio-id}/allocations

MCP Tools

list-portfolio-allocations

List portfolio allocations

read-only idempotent

Capability Spec

prime-allocations.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Coinbase Prime API — Allocations
  description: 'Coinbase Prime API — Allocations. 1 operations. Lead operation: List portfolio allocations. Self-contained
    Naftiko capability covering one Coinbase business surface.'
  tags:
  - Coinbase
  - Allocations
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    COINBASE_API_KEY: COINBASE_API_KEY
capability:
  consumes:
  - type: http
    namespace: prime-allocations
    baseUri: https://api.prime.coinbase.com/v1
    description: Coinbase Prime API — Allocations business capability. Self-contained, no shared references.
    resources:
    - name: portfolios-portfolio_id-allocations
      path: /portfolios/{portfolio_id}/allocations
      operations:
      - name: listportfolioallocations
        method: GET
        description: List portfolio allocations
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: product_ids
          in: query
          type: string
          description: Filter by product IDs
    authentication:
      type: apikey
      key: X-CB-ACCESS-KEY
      value: '{{env.COINBASE_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: prime-allocations-rest
    port: 8080
    description: REST adapter for Coinbase Prime API — Allocations. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/portfolios/{portfolio-id}/allocations
      name: portfolios-portfolio-id-allocations
      description: REST surface for portfolios-portfolio_id-allocations.
      operations:
      - method: GET
        name: listportfolioallocations
        description: List portfolio allocations
        call: prime-allocations.listportfolioallocations
        with:
          product_ids: rest.product_ids
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: prime-allocations-mcp
    port: 9090
    transport: http
    description: MCP adapter for Coinbase Prime API — Allocations. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-portfolio-allocations
      description: List portfolio allocations
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: prime-allocations.listportfolioallocations
      with:
        product_ids: tools.product_ids
      outputParameters:
      - type: object
        mapping: $.