Chroma · Capability

Chroma Server API — Collections

Chroma Server API — Collections. 5 operations. Lead operation: List collections. Self-contained Naftiko capability covering one Chroma business surface.

Run with Naftiko ChromaCollections

What You Can Do

GET
Listcollections — List collections
/v1/api/v2/tenants/{tenantname}/databases/{databasename}/collections
POST
Createcollection — Create a collection
/v1/api/v2/tenants/{tenantname}/databases/{databasename}/collections
GET
Getcollection — Get a collection
/v1/api/v2/tenants/{tenantname}/databases/{databasename}/collections/{collectionid}
PUT
Updatecollection — Update a collection
/v1/api/v2/tenants/{tenantname}/databases/{databasename}/collections/{collectionid}
DELETE
Deletecollection — Delete a collection
/v1/api/v2/tenants/{tenantname}/databases/{databasename}/collections/{collectionid}

MCP Tools

list-collections

List collections

read-only idempotent
create-collection

Create a collection

get-collection

Get a collection

read-only idempotent
update-collection

Update a collection

idempotent
delete-collection

Delete a collection

idempotent

Capability Spec

server-collections.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Chroma Server API — Collections
  description: 'Chroma Server API — Collections. 5 operations. Lead operation: List collections. Self-contained Naftiko capability
    covering one Chroma business surface.'
  tags:
  - Chroma
  - Collections
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    CHROMA_API_KEY: CHROMA_API_KEY
capability:
  consumes:
  - type: http
    namespace: server-collections
    baseUri: http://localhost:8000
    description: Chroma Server API — Collections business capability. Self-contained, no shared references.
    resources:
    - name: api-v2-tenants-tenantName-databases-databaseName-collections
      path: /api/v2/tenants/{tenantName}/databases/{databaseName}/collections
      operations:
      - name: listcollections
        method: GET
        description: List collections
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createcollection
        method: POST
        description: Create a collection
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-v2-tenants-tenantName-databases-databaseName-collections-collectionId
      path: /api/v2/tenants/{tenantName}/databases/{databaseName}/collections/{collectionId}
      operations:
      - name: getcollection
        method: GET
        description: Get a collection
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatecollection
        method: PUT
        description: Update a collection
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletecollection
        method: DELETE
        description: Delete a collection
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.CHROMA_API_KEY}}'
  exposes:
  - type: rest
    namespace: server-collections-rest
    port: 8080
    description: REST adapter for Chroma Server API — Collections. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/v2/tenants/{tenantname}/databases/{databasename}/collections
      name: api-v2-tenants-tenantname-databases-databasename-collections
      description: REST surface for api-v2-tenants-tenantName-databases-databaseName-collections.
      operations:
      - method: GET
        name: listcollections
        description: List collections
        call: server-collections.listcollections
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createcollection
        description: Create a collection
        call: server-collections.createcollection
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v2/tenants/{tenantname}/databases/{databasename}/collections/{collectionid}
      name: api-v2-tenants-tenantname-databases-databasename-collections-collectionid
      description: REST surface for api-v2-tenants-tenantName-databases-databaseName-collections-collectionId.
      operations:
      - method: GET
        name: getcollection
        description: Get a collection
        call: server-collections.getcollection
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatecollection
        description: Update a collection
        call: server-collections.updatecollection
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletecollection
        description: Delete a collection
        call: server-collections.deletecollection
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: server-collections-mcp
    port: 9090
    transport: http
    description: MCP adapter for Chroma Server API — Collections. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-collections
      description: List collections
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: server-collections.listcollections
      outputParameters:
      - type: object
        mapping: $.
    - name: create-collection
      description: Create a collection
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: server-collections.createcollection
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-collection
      description: Get a collection
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: server-collections.getcollection
      outputParameters:
      - type: object
        mapping: $.
    - name: update-collection
      description: Update a collection
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: server-collections.updatecollection
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-collection
      description: Delete a collection
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: server-collections.deletecollection
      outputParameters:
      - type: object
        mapping: $.