Chroma · Capability

Chroma Cloud API — Tenants

Chroma Cloud API — Tenants. 2 operations. Lead operation: Create a tenant. Self-contained Naftiko capability covering one Chroma business surface.

Run with Naftiko ChromaTenants

What You Can Do

POST
Createtenant — Create a tenant
/v1/api/v2/tenants
GET
Gettenant — Get a tenant
/v1/api/v2/tenants/{tenantname}

MCP Tools

create-tenant

Create a tenant

get-tenant

Get a tenant

read-only idempotent

Capability Spec

cloud-tenants.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Chroma Cloud API — Tenants
  description: 'Chroma Cloud API — Tenants. 2 operations. Lead operation: Create a tenant. Self-contained Naftiko capability
    covering one Chroma business surface.'
  tags:
  - Chroma
  - Tenants
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    CHROMA_API_KEY: CHROMA_API_KEY
capability:
  consumes:
  - type: http
    namespace: cloud-tenants
    baseUri: https://api.trychroma.com
    description: Chroma Cloud API — Tenants business capability. Self-contained, no shared references.
    resources:
    - name: api-v2-tenants
      path: /api/v2/tenants
      operations:
      - name: createtenant
        method: POST
        description: Create a tenant
        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
      path: /api/v2/tenants/{tenantName}
      operations:
      - name: gettenant
        method: GET
        description: Get a tenant
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.CHROMA_API_KEY}}'
  exposes:
  - type: rest
    namespace: cloud-tenants-rest
    port: 8080
    description: REST adapter for Chroma Cloud API — Tenants. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/api/v2/tenants
      name: api-v2-tenants
      description: REST surface for api-v2-tenants.
      operations:
      - method: POST
        name: createtenant
        description: Create a tenant
        call: cloud-tenants.createtenant
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v2/tenants/{tenantname}
      name: api-v2-tenants-tenantname
      description: REST surface for api-v2-tenants-tenantName.
      operations:
      - method: GET
        name: gettenant
        description: Get a tenant
        call: cloud-tenants.gettenant
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: cloud-tenants-mcp
    port: 9090
    transport: http
    description: MCP adapter for Chroma Cloud API — Tenants. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: create-tenant
      description: Create a tenant
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: cloud-tenants.createtenant
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-tenant
      description: Get a tenant
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: cloud-tenants.gettenant
      outputParameters:
      - type: object
        mapping: $.