CockroachDB · Capability

CockroachDB Cloud API — ServiceAccounts

CockroachDB Cloud API — ServiceAccounts. 5 operations. Lead operation: List service accounts. Self-contained Naftiko capability covering one Cockroachdb business surface.

Run with Naftiko CockroachdbServiceAccounts

What You Can Do

GET
Listserviceaccounts — List service accounts
/v1/api/v1/service-accounts
POST
Createserviceaccount — Create a service account
/v1/api/v1/service-accounts
GET
Getserviceaccount — Get a service account
/v1/api/v1/service-accounts/{id}
PATCH
Updateserviceaccount — Update a service account
/v1/api/v1/service-accounts/{id}
DELETE
Deleteserviceaccount — Delete a service account
/v1/api/v1/service-accounts/{id}

MCP Tools

list-service-accounts

List service accounts

read-only idempotent
create-service-account

Create a service account

get-service-account

Get a service account

read-only idempotent
update-service-account

Update a service account

idempotent
delete-service-account

Delete a service account

idempotent

Capability Spec

cloud-serviceaccounts.yaml Raw ↑
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 Cockroachdb business surface.'
  tags:
  - Cockroachdb
  - ServiceAccounts
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    COCKROACHDB_API_KEY: COCKROACHDB_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.COCKROACHDB_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: $.