Shopify · Capability

Shopify Ajax API — Product Recommendations

Shopify Ajax API — Product Recommendations. 1 operations. Lead operation: Shopify Get product recommendations. Self-contained Naftiko capability covering one Shopify business surface.

Run with Naftiko ShopifyProduct Recommendations

What You Can Do

GET
Getproductrecommendations — Shopify Get product recommendations
/v1/recommendations/products-json

MCP Tools

shopify-get-product-recommendations

Shopify Get product recommendations

read-only idempotent

Capability Spec

ajax-product-recommendations.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Shopify Ajax API — Product Recommendations
  description: 'Shopify Ajax API — Product Recommendations. 1 operations. Lead operation: Shopify Get product recommendations.
    Self-contained Naftiko capability covering one Shopify business surface.'
  tags:
  - Shopify
  - Product Recommendations
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SHOPIFY_API_KEY: SHOPIFY_API_KEY
capability:
  consumes:
  - type: http
    namespace: ajax-product-recommendations
    baseUri: https://{store}.myshopify.com
    description: Shopify Ajax API — Product Recommendations business capability. Self-contained, no shared references.
    resources:
    - name: recommendations-products.json
      path: /recommendations/products.json
      operations:
      - name: getproductrecommendations
        method: GET
        description: Shopify Get product recommendations
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: product_id
          in: query
          type: integer
          description: The product ID to get recommendations for
          required: true
        - name: limit
          in: query
          type: integer
          description: Number of recommendations (1-10, default 10)
        - name: intent
          in: query
          type: string
          description: The recommendation intent
  exposes:
  - type: rest
    namespace: ajax-product-recommendations-rest
    port: 8080
    description: REST adapter for Shopify Ajax API — Product Recommendations. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/recommendations/products-json
      name: recommendations-products-json
      description: REST surface for recommendations-products.json.
      operations:
      - method: GET
        name: getproductrecommendations
        description: Shopify Get product recommendations
        call: ajax-product-recommendations.getproductrecommendations
        with:
          product_id: rest.product_id
          limit: rest.limit
          intent: rest.intent
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: ajax-product-recommendations-mcp
    port: 9090
    transport: http
    description: MCP adapter for Shopify Ajax API — Product Recommendations. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: shopify-get-product-recommendations
      description: Shopify Get product recommendations
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: ajax-product-recommendations.getproductrecommendations
      with:
        product_id: tools.product_id
        limit: tools.limit
        intent: tools.intent
      outputParameters:
      - type: object
        mapping: $.