naftiko: 1.0.0-alpha2 info: label: CockroachDB Cloud API — Billing description: 'CockroachDB Cloud API — Billing. 2 operations. Lead operation: List invoices. Self-contained Naftiko capability covering one Cockroach Labs business surface.' tags: - Cockroach Labs - Billing created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: COCKROACH_LABS_API_KEY: COCKROACH_LABS_API_KEY capability: consumes: - type: http namespace: cloud-billing baseUri: https://cockroachlabs.cloud description: CockroachDB Cloud API — Billing business capability. Self-contained, no shared references. resources: - name: api-v1-invoices path: /api/v1/invoices operations: - name: listinvoices method: GET description: List invoices outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: status in: query type: string description: Filter invoices by status. Accepted values are Finalized and Draft. If not specified, both types are returned. - name: api-v1-invoices-invoice_id path: /api/v1/invoices/{invoice_id} operations: - name: getinvoice method: GET description: Get an invoice outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: invoice_id in: path type: string description: Unique identifier of the invoice to retrieve. required: true authentication: type: bearer token: '{{env.COCKROACH_LABS_API_KEY}}' exposes: - type: rest namespace: cloud-billing-rest port: 8080 description: REST adapter for CockroachDB Cloud API — Billing. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/v1/invoices name: api-v1-invoices description: REST surface for api-v1-invoices. operations: - method: GET name: listinvoices description: List invoices call: cloud-billing.listinvoices with: status: rest.status outputParameters: - type: object mapping: $. - path: /v1/api/v1/invoices/{invoice-id} name: api-v1-invoices-invoice-id description: REST surface for api-v1-invoices-invoice_id. operations: - method: GET name: getinvoice description: Get an invoice call: cloud-billing.getinvoice with: invoice_id: rest.invoice_id outputParameters: - type: object mapping: $. - type: mcp namespace: cloud-billing-mcp port: 9090 transport: http description: MCP adapter for CockroachDB Cloud API — Billing. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-invoices description: List invoices hints: readOnly: true destructive: false idempotent: true call: cloud-billing.listinvoices with: status: tools.status outputParameters: - type: object mapping: $. - name: get-invoice description: Get an invoice hints: readOnly: true destructive: false idempotent: true call: cloud-billing.getinvoice with: invoice_id: tools.invoice_id outputParameters: - type: object mapping: $.