Shopify · Capability

Shopify Ajax API — Products

Shopify Ajax API — Products. 1 operations. Lead operation: Shopify Retrieve a product by its handle. Self-contained Naftiko capability covering one Shopify business surface.

Run with Naftiko ShopifyProducts

What You Can Do

GET
Getproductbyhandle — Shopify Retrieve a product by its handle
/v1/products/handle-js

MCP Tools

shopify-retrieve-product-its-handle

Shopify Retrieve a product by its handle

read-only idempotent

Capability Spec

ajax-products.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Shopify Ajax API — Products
  description: 'Shopify Ajax API — Products. 1 operations. Lead operation: Shopify Retrieve a product by its handle. Self-contained
    Naftiko capability covering one Shopify business surface.'
  tags:
  - Shopify
  - Products
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SHOPIFY_API_KEY: SHOPIFY_API_KEY
capability:
  consumes:
  - type: http
    namespace: ajax-products
    baseUri: https://{store}.myshopify.com
    description: Shopify Ajax API — Products business capability. Self-contained, no shared references.
    resources:
    - name: products-handle}.js
      path: /products/{handle}.js
      operations:
      - name: getproductbyhandle
        method: GET
        description: Shopify Retrieve a product by its handle
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: handle
          in: path
          type: string
          description: The URL-friendly product handle
          required: true
  exposes:
  - type: rest
    namespace: ajax-products-rest
    port: 8080
    description: REST adapter for Shopify Ajax API — Products. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/products/handle-js
      name: products-handle-js
      description: REST surface for products-handle}.js.
      operations:
      - method: GET
        name: getproductbyhandle
        description: Shopify Retrieve a product by its handle
        call: ajax-products.getproductbyhandle
        with:
          handle: rest.handle
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: ajax-products-mcp
    port: 9090
    transport: http
    description: MCP adapter for Shopify Ajax API — Products. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: shopify-retrieve-product-its-handle
      description: Shopify Retrieve a product by its handle
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: ajax-products.getproductbyhandle
      with:
        handle: tools.handle
      outputParameters:
      - type: object
        mapping: $.