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