Shopify · Capability

Shopify Admin REST API — Collections

Shopify Admin REST API — Collections. 2 operations. Lead operation: Shopify Retrieve a single collection. Self-contained Naftiko capability covering one Shopify business surface.

Run with Naftiko ShopifyCollections

What You Can Do

GET
Getcollection — Shopify Retrieve a single collection
/v1/collections/collection-id-json
GET
Listcollectionproducts — Shopify Retrieve products in a collection
/v1/collections/{collection-id}/products-json

MCP Tools

shopify-retrieve-single-collection

Shopify Retrieve a single collection

read-only idempotent
shopify-retrieve-products-collection

Shopify Retrieve products in a collection

read-only idempotent

Capability Spec

admin-rest-collections.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Shopify Admin REST API — Collections
  description: 'Shopify Admin REST API — Collections. 2 operations. Lead operation: Shopify Retrieve a single collection.
    Self-contained Naftiko capability covering one Shopify business surface.'
  tags:
  - Shopify
  - Collections
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SHOPIFY_API_KEY: SHOPIFY_API_KEY
capability:
  consumes:
  - type: http
    namespace: admin-rest-collections
    baseUri: https://{store}.myshopify.com/admin/api/2025-01
    description: Shopify Admin REST API — Collections business capability. Self-contained, no shared references.
    resources:
    - name: collections-collection_id}.json
      path: /collections/{collection_id}.json
      operations:
      - name: getcollection
        method: GET
        description: Shopify Retrieve a single collection
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: collection_id
          in: path
          type: integer
          description: The ID of the collection
          required: true
        - name: fields
          in: query
          type: string
          description: Comma-separated list of fields to include
    - name: collections-collection_id-products.json
      path: /collections/{collection_id}/products.json
      operations:
      - name: listcollectionproducts
        method: GET
        description: Shopify Retrieve products in a collection
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: collection_id
          in: path
          type: integer
          description: The ID of the collection
          required: true
        - name: limit
          in: query
          type: integer
          description: Maximum number of results (max 250, default 50)
    authentication:
      type: apikey
      key: X-Shopify-Access-Token
      value: '{{env.SHOPIFY_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: admin-rest-collections-rest
    port: 8080
    description: REST adapter for Shopify Admin REST API — Collections. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/collections/collection-id-json
      name: collections-collection-id-json
      description: REST surface for collections-collection_id}.json.
      operations:
      - method: GET
        name: getcollection
        description: Shopify Retrieve a single collection
        call: admin-rest-collections.getcollection
        with:
          collection_id: rest.collection_id
          fields: rest.fields
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/collections/{collection-id}/products-json
      name: collections-collection-id-products-json
      description: REST surface for collections-collection_id-products.json.
      operations:
      - method: GET
        name: listcollectionproducts
        description: Shopify Retrieve products in a collection
        call: admin-rest-collections.listcollectionproducts
        with:
          collection_id: rest.collection_id
          limit: rest.limit
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: admin-rest-collections-mcp
    port: 9090
    transport: http
    description: MCP adapter for Shopify Admin REST API — Collections. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: shopify-retrieve-single-collection
      description: Shopify Retrieve a single collection
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: admin-rest-collections.getcollection
      with:
        collection_id: tools.collection_id
        fields: tools.fields
      outputParameters:
      - type: object
        mapping: $.
    - name: shopify-retrieve-products-collection
      description: Shopify Retrieve products in a collection
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: admin-rest-collections.listcollectionproducts
      with:
        collection_id: tools.collection_id
        limit: tools.limit
      outputParameters:
      - type: object
        mapping: $.