Couchbase · Capability

Couchbase Capella Management API — Scopes and Collections

Couchbase Capella Management API — Scopes and Collections. 2 operations. Lead operation: List scopes in a bucket. Self-contained Naftiko capability covering one Couchbase business surface.

Run with Naftiko CouchbaseScopes and Collections

What You Can Do

GET
Listcapellascopes — List scopes in a bucket
/v1/v4/organizations/{organizationid}/projects/{projectid}/clusters/{clusterid}/buckets/{bucketid}/scopes
POST
Createcapellascope — Create a scope
/v1/v4/organizations/{organizationid}/projects/{projectid}/clusters/{clusterid}/buckets/{bucketid}/scopes

MCP Tools

list-scopes-bucket

List scopes in a bucket

read-only idempotent
create-scope

Create a scope

Capability Spec

capella-management-scopes-and-collections.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Couchbase Capella Management API — Scopes and Collections
  description: 'Couchbase Capella Management API — Scopes and Collections. 2 operations. Lead operation: List scopes in a
    bucket. Self-contained Naftiko capability covering one Couchbase business surface.'
  tags:
  - Couchbase
  - Scopes and Collections
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    COUCHBASE_API_KEY: COUCHBASE_API_KEY
capability:
  consumes:
  - type: http
    namespace: capella-management-scopes-and-collections
    baseUri: https://cloudapi.cloud.couchbase.com
    description: Couchbase Capella Management API — Scopes and Collections business capability. Self-contained, no shared
      references.
    resources:
    - name: v4-organizations-organizationId-projects-projectId-clusters-clusterId-buckets-bu
      path: /v4/organizations/{organizationId}/projects/{projectId}/clusters/{clusterId}/buckets/{bucketId}/scopes
      operations:
      - name: listcapellascopes
        method: GET
        description: List scopes in a bucket
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createcapellascope
        method: POST
        description: Create a scope
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.COUCHBASE_API_KEY}}'
  exposes:
  - type: rest
    namespace: capella-management-scopes-and-collections-rest
    port: 8080
    description: REST adapter for Couchbase Capella Management API — Scopes and Collections. One Spectral-compliant resource
      per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/v4/organizations/{organizationid}/projects/{projectid}/clusters/{clusterid}/buckets/{bucketid}/scopes
      name: v4-organizations-organizationid-projects-projectid-clusters-clusterid-buckets-bu
      description: REST surface for v4-organizations-organizationId-projects-projectId-clusters-clusterId-buckets-bu.
      operations:
      - method: GET
        name: listcapellascopes
        description: List scopes in a bucket
        call: capella-management-scopes-and-collections.listcapellascopes
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createcapellascope
        description: Create a scope
        call: capella-management-scopes-and-collections.createcapellascope
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: capella-management-scopes-and-collections-mcp
    port: 9090
    transport: http
    description: MCP adapter for Couchbase Capella Management API — Scopes and Collections. One tool per consumed operation,
      routed inline through this capability's consumes block.
    tools:
    - name: list-scopes-bucket
      description: List scopes in a bucket
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: capella-management-scopes-and-collections.listcapellascopes
      outputParameters:
      - type: object
        mapping: $.
    - name: create-scope
      description: Create a scope
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: capella-management-scopes-and-collections.createcapellascope
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.