Replicate · Capability

Replicate — Collections

Replicate — Collections. 2 operations. Lead operation: List Collections of Models. Self-contained Naftiko capability covering one Replicate business surface.

Run with Naftiko ReplicateCollections

What You Can Do

GET
Collectionslist — List Collections of Models
/v1/collections
GET
Collectionsget — Get a Collection of Models
/v1/collections/{collection-slug}

MCP Tools

list-collections-models

List Collections of Models

read-only idempotent
get-collection-models

Get a Collection of Models

read-only idempotent

Capability Spec

replicate-collections.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Replicate — Collections
  description: 'Replicate — Collections. 2 operations. Lead operation: List Collections of Models. Self-contained Naftiko
    capability covering one Replicate business surface.'
  tags:
  - Replicate
  - Collections
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    REPLICATE_API_KEY: REPLICATE_API_KEY
capability:
  consumes:
  - type: http
    namespace: replicate-collections
    baseUri: https://api.replicate.com/v1
    description: Replicate — Collections business capability. Self-contained, no shared references.
    resources:
    - name: collections
      path: /collections
      operations:
      - name: collectionslist
        method: GET
        description: List Collections of Models
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: collections-collection_slug
      path: /collections/{collection_slug}
      operations:
      - name: collectionsget
        method: GET
        description: Get a Collection of Models
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: collection_slug
          in: path
          type: string
          description: The slug of the collection, like `super-resolution` or `image-restoration`. See [replicate.com/collections](https://replicate.com/collections).
          required: true
    authentication:
      type: bearer
      token: '{{env.REPLICATE_API_KEY}}'
  exposes:
  - type: rest
    namespace: replicate-collections-rest
    port: 8080
    description: REST adapter for Replicate — Collections. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/collections
      name: collections
      description: REST surface for collections.
      operations:
      - method: GET
        name: collectionslist
        description: List Collections of Models
        call: replicate-collections.collectionslist
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/collections/{collection-slug}
      name: collections-collection-slug
      description: REST surface for collections-collection_slug.
      operations:
      - method: GET
        name: collectionsget
        description: Get a Collection of Models
        call: replicate-collections.collectionsget
        with:
          collection_slug: rest.collection_slug
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: replicate-collections-mcp
    port: 9090
    transport: http
    description: MCP adapter for Replicate — Collections. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: list-collections-models
      description: List Collections of Models
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: replicate-collections.collectionslist
      outputParameters:
      - type: object
        mapping: $.
    - name: get-collection-models
      description: Get a Collection of Models
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: replicate-collections.collectionsget
      with:
        collection_slug: tools.collection_slug
      outputParameters:
      - type: object
        mapping: $.