naftiko: 1.0.0-alpha2 info: label: CockroachDB Cloud API — ServiceAccounts description: 'CockroachDB Cloud API — ServiceAccounts. 5 operations. Lead operation: List service accounts. Self-contained Naftiko capability covering one Cockroach Labs business surface.' tags: - Cockroach Labs - ServiceAccounts 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-serviceaccounts baseUri: https://cockroachlabs.cloud description: CockroachDB Cloud API — ServiceAccounts business capability. Self-contained, no shared references. resources: - name: api-v1-service-accounts path: /api/v1/service-accounts operations: - name: listserviceaccounts method: GET description: List service accounts outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createserviceaccount method: POST description: Create a service account outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: api-v1-service-accounts-id path: /api/v1/service-accounts/{id} operations: - name: getserviceaccount method: GET description: Get a service account outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updateserviceaccount method: PATCH description: Update a service account outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deleteserviceaccount method: DELETE description: Delete a service account outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.COCKROACH_LABS_API_KEY}}' exposes: - type: rest namespace: cloud-serviceaccounts-rest port: 8080 description: REST adapter for CockroachDB Cloud API — ServiceAccounts. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/v1/service-accounts name: api-v1-service-accounts description: REST surface for api-v1-service-accounts. operations: - method: GET name: listserviceaccounts description: List service accounts call: cloud-serviceaccounts.listserviceaccounts outputParameters: - type: object mapping: $. - method: POST name: createserviceaccount description: Create a service account call: cloud-serviceaccounts.createserviceaccount with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/v1/service-accounts/{id} name: api-v1-service-accounts-id description: REST surface for api-v1-service-accounts-id. operations: - method: GET name: getserviceaccount description: Get a service account call: cloud-serviceaccounts.getserviceaccount outputParameters: - type: object mapping: $. - method: PATCH name: updateserviceaccount description: Update a service account call: cloud-serviceaccounts.updateserviceaccount with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deleteserviceaccount description: Delete a service account call: cloud-serviceaccounts.deleteserviceaccount outputParameters: - type: object mapping: $. - type: mcp namespace: cloud-serviceaccounts-mcp port: 9090 transport: http description: MCP adapter for CockroachDB Cloud API — ServiceAccounts. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-service-accounts description: List service accounts hints: readOnly: true destructive: false idempotent: true call: cloud-serviceaccounts.listserviceaccounts outputParameters: - type: object mapping: $. - name: create-service-account description: Create a service account hints: readOnly: false destructive: false idempotent: false call: cloud-serviceaccounts.createserviceaccount with: body: tools.body outputParameters: - type: object mapping: $. - name: get-service-account description: Get a service account hints: readOnly: true destructive: false idempotent: true call: cloud-serviceaccounts.getserviceaccount outputParameters: - type: object mapping: $. - name: update-service-account description: Update a service account hints: readOnly: false destructive: false idempotent: true call: cloud-serviceaccounts.updateserviceaccount with: body: tools.body outputParameters: - type: object mapping: $. - name: delete-service-account description: Delete a service account hints: readOnly: false destructive: true idempotent: true call: cloud-serviceaccounts.deleteserviceaccount outputParameters: - type: object mapping: $.