Coveo · Capability

Coveo Commerce API — Recommendations

Coveo Commerce API — Recommendations. 2 operations. Lead operation: Execute a Recommendations Query. Self-contained Naftiko capability covering one Coveo business surface.

Run with Naftiko CoveoCommerceRecommendations

What You Can Do

POST
Recommendations — Execute a Recommendations Query
/v1/organizations/{organizationid}/commerce/v2/recommendations
POST
Recommendationspreview — Preview a Recommendations Query
/v1/organizations/{organizationid}/commerce/v2/recommendations/preview

MCP Tools

execute-recommendations-query

Execute a Recommendations Query

read-only
preview-recommendations-query

Preview a Recommendations Query

read-only

Capability Spec

commerce-recommendations.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Coveo Commerce API — Recommendations
  description: 'Coveo Commerce API — Recommendations. 2 operations. Lead operation: Execute a Recommendations Query. Self-contained
    Naftiko capability covering one Coveo business surface.'
  tags:
  - Coveo
  - Commerce
  - Recommendations
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    COVEO_SEARCH_TOKEN: COVEO_SEARCH_TOKEN
capability:
  consumes:
  - type: http
    namespace: commerce-recommendations
    baseUri: https://platform.cloud.coveo.com
    description: Coveo Commerce API — Recommendations business capability. Self-contained, no shared references.
    authentication:
      type: bearer
      token: '{{env.COVEO_SEARCH_TOKEN}}'
    resources:
    - name: rest-organizations-organizationId-commerce-v2-recommendations
      path: /rest/organizations/{organizationId}/commerce/v2/recommendations
      operations:
      - name: recommendations
        method: POST
        description: Execute a Recommendations Query
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: organizationId
          in: path
          type: string
          description: The unique identifier of the target [organization](https://docs.coveo.com/en/185/).<br />**Example:**
            `acmecorporation8tp8wu3`
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: rest-organizations-organizationId-commerce-v2-recommendations-preview
      path: /rest/organizations/{organizationId}/commerce/v2/recommendations/preview
      operations:
      - name: recommendationspreview
        method: POST
        description: Preview a Recommendations Query
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: organizationId
          in: path
          type: string
          description: The unique identifier of the target [organization](https://docs.coveo.com/en/185/).<br />**Example:**
            `acmecorporation8tp8wu3`
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
  exposes:
  - type: rest
    namespace: commerce-recommendations-rest
    port: 8080
    description: REST adapter for Coveo Commerce API — Recommendations. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/organizations/{organizationid}/commerce/v2/recommendations
      name: rest-organizations-organizationid-commerce-v2-recommendations
      description: REST surface for rest-organizations-organizationId-commerce-v2-recommendations.
      operations:
      - method: POST
        name: recommendations
        description: Execute a Recommendations Query
        call: commerce-recommendations.recommendations
        with:
          organizationId: rest.organizationId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/organizations/{organizationid}/commerce/v2/recommendations/preview
      name: rest-organizations-organizationid-commerce-v2-recommendations-preview
      description: REST surface for rest-organizations-organizationId-commerce-v2-recommendations-preview.
      operations:
      - method: POST
        name: recommendationspreview
        description: Preview a Recommendations Query
        call: commerce-recommendations.recommendationspreview
        with:
          organizationId: rest.organizationId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: commerce-recommendations-mcp
    port: 9090
    transport: http
    description: MCP adapter for Coveo Commerce API — Recommendations. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: execute-recommendations-query
      description: Execute a Recommendations Query
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: commerce-recommendations.recommendations
      with:
        organizationId: tools.organizationId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: preview-recommendations-query
      description: Preview a Recommendations Query
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: commerce-recommendations.recommendationspreview
      with:
        organizationId: tools.organizationId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.