Skip to main content
Glama
shopify-mcp-complete

shopify-mcp-complete

by hishamalhadi

get-product-by-id

Retrieve a specific Shopify product by ID to access its variants, images, metafields, and inventory details.

Instructions

Get detailed information about a specific product by ID, including all variants, images, metafields, and inventory.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "productId": "<productId>"
    },
    "name": "get-product-by-id"
  }
}

Input Schema

NameRequiredDescriptionDefault
productIdYesShopify product ID or GID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the full disclosure burden; it does signal the response breadth (all variants, images, metafields, inventory), which warns of a potentially large payload. It says nothing about permissions/scopes, rate limits, or behavior when the ID does not resolve (error vs. empty), which an agent needs for a bare read tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One front-loaded sentence with zero filler; the resource and the returned field set come first. Nothing is repeated or wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter read with no output schema and no annotations, the description covers the core need by naming what comes back. It stops short of noting failure behavior when the ID is unknown, which is the main remaining gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and the single parameter is documented as "Shopify product ID or GID". The description only restates "by ID" and adds no format or validation nuance beyond the schema. Baseline 3 applies when the schema already does the work.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb ("Get") and resource ("detailed information about a specific product by ID") and enumerates the returned sub-resources (variants, images, metafields, inventory). It clearly reads as a single-record fetch, implicitly distinct from the list-oriented get-products sibling, though it never names that alternative.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use or when-not-to-use guidance: nothing says to call this only when a product ID is already known, or to use get-products when searching by title. The only implied condition is "by ID", which the parameter name already conveys.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.