Couchbase · Capability

Couchbase Capella App Services Admin API — Database Administration

Couchbase Capella App Services Admin API — Database Administration. 7 operations. Lead operation: Get database configuration. Self-contained Naftiko capability covering one Couchbase business surface.

Run with Naftiko CouchbaseDatabase Administration

What You Can Do

GET
Getdatabaseconfig — Get database configuration
/v1/{db}/config
PUT
Updatedatabaseconfig — Update database configuration
/v1/{db}/config
GET
Getsyncfunction — Get sync function
/v1/{db}/config/sync
PUT
Updatesyncfunction — Update sync function
/v1/{db}/config/sync
POST
Takedatabaseoffline — Take database offline
/v1/{db}/offline
POST
Bringdatabaseonline — Bring database online
/v1/{db}/online
POST
Resyncdatabase — Resync database
/v1/{db}/resync

MCP Tools

get-database-configuration

Get database configuration

read-only idempotent
update-database-configuration

Update database configuration

idempotent
get-sync-function

Get sync function

read-only idempotent
update-sync-function

Update sync function

idempotent
take-database-offline

Take database offline

bring-database-online

Bring database online

resync-database

Resync database

Capability Spec

capella-app-services-admin-database-administration.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Couchbase Capella App Services Admin API — Database Administration
  description: 'Couchbase Capella App Services Admin API — Database Administration. 7 operations. Lead operation: Get database
    configuration. Self-contained Naftiko capability covering one Couchbase business surface.'
  tags:
  - Couchbase
  - Database Administration
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    COUCHBASE_API_KEY: COUCHBASE_API_KEY
capability:
  consumes:
  - type: http
    namespace: capella-app-services-admin-database-administration
    baseUri: https://{appEndpoint}:4985
    description: Couchbase Capella App Services Admin API — Database Administration business capability. Self-contained, no
      shared references.
    resources:
    - name: db-_config
      path: /{db}/_config
      operations:
      - name: getdatabaseconfig
        method: GET
        description: Get database configuration
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatedatabaseconfig
        method: PUT
        description: Update database configuration
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: db-_config-sync
      path: /{db}/_config/sync
      operations:
      - name: getsyncfunction
        method: GET
        description: Get sync function
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatesyncfunction
        method: PUT
        description: Update sync function
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: db-_offline
      path: /{db}/_offline
      operations:
      - name: takedatabaseoffline
        method: POST
        description: Take database offline
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: db-_online
      path: /{db}/_online
      operations:
      - name: bringdatabaseonline
        method: POST
        description: Bring database online
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: db-_resync
      path: /{db}/_resync
      operations:
      - name: resyncdatabase
        method: POST
        description: Resync database
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: basic
      username: '{{env.COUCHBASE_USER}}'
      password: '{{env.COUCHBASE_PASS}}'
  exposes:
  - type: rest
    namespace: capella-app-services-admin-database-administration-rest
    port: 8080
    description: REST adapter for Couchbase Capella App Services Admin API — Database Administration. One Spectral-compliant
      resource per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/{db}/config
      name: db-config
      description: REST surface for db-_config.
      operations:
      - method: GET
        name: getdatabaseconfig
        description: Get database configuration
        call: capella-app-services-admin-database-administration.getdatabaseconfig
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatedatabaseconfig
        description: Update database configuration
        call: capella-app-services-admin-database-administration.updatedatabaseconfig
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/{db}/config/sync
      name: db-config-sync
      description: REST surface for db-_config-sync.
      operations:
      - method: GET
        name: getsyncfunction
        description: Get sync function
        call: capella-app-services-admin-database-administration.getsyncfunction
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatesyncfunction
        description: Update sync function
        call: capella-app-services-admin-database-administration.updatesyncfunction
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/{db}/offline
      name: db-offline
      description: REST surface for db-_offline.
      operations:
      - method: POST
        name: takedatabaseoffline
        description: Take database offline
        call: capella-app-services-admin-database-administration.takedatabaseoffline
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/{db}/online
      name: db-online
      description: REST surface for db-_online.
      operations:
      - method: POST
        name: bringdatabaseonline
        description: Bring database online
        call: capella-app-services-admin-database-administration.bringdatabaseonline
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/{db}/resync
      name: db-resync
      description: REST surface for db-_resync.
      operations:
      - method: POST
        name: resyncdatabase
        description: Resync database
        call: capella-app-services-admin-database-administration.resyncdatabase
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: capella-app-services-admin-database-administration-mcp
    port: 9090
    transport: http
    description: MCP adapter for Couchbase Capella App Services Admin API — Database Administration. One tool per consumed
      operation, routed inline through this capability's consumes block.
    tools:
    - name: get-database-configuration
      description: Get database configuration
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: capella-app-services-admin-database-administration.getdatabaseconfig
      outputParameters:
      - type: object
        mapping: $.
    - name: update-database-configuration
      description: Update database configuration
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: capella-app-services-admin-database-administration.updatedatabaseconfig
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-sync-function
      description: Get sync function
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: capella-app-services-admin-database-administration.getsyncfunction
      outputParameters:
      - type: object
        mapping: $.
    - name: update-sync-function
      description: Update sync function
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: capella-app-services-admin-database-administration.updatesyncfunction
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: take-database-offline
      description: Take database offline
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: capella-app-services-admin-database-administration.takedatabaseoffline
      outputParameters:
      - type: object
        mapping: $.
    - name: bring-database-online
      description: Bring database online
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: capella-app-services-admin-database-administration.bringdatabaseonline
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: resync-database
      description: Resync database
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: capella-app-services-admin-database-administration.resyncdatabase
      outputParameters:
      - type: object
        mapping: $.