Skip to main content
Glama
Shopify Admin MCP Server

Shopify Admin MCP Server

get_product_variants

List every variant for a specific product, including pricing, inventory, SKU, and option values, so you can review product options and stock details from Shopify Admin data.

Instructions

List all variants for a specific product, including pricing, inventory, SKU, and option values.

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_variants"
  }
}

Input Schema

NameRequiredDescriptionDefault
afterNo
firstNo
productIdYesThe product ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.5

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden, and it does add useful context by naming the payload contents (pricing, inventory, SKU, option values), which tells the agent what to expect back. However, it is silent on pagination behavior despite the presence of first/after, and says nothing about permissions, ordering, or limits.

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

Conciseness4/5

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

A single well-formed sentence with the resource and scope front-loaded and no filler. It is appropriately tight, though the brevity comes at the cost of the pagination context a caller needs.

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

Completeness2/5

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

For a paginated list tool with no annotations, no output schema, and two of three parameters undocumented, the description leaves real gaps. It never tells the agent that results are paginated or how to iterate, which is the main operational risk when calling it on a product with many variants.

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

Parameters2/5

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

Schema description coverage is only 33%: productId is documented (tautologically, 'The product ID'), while first and after have no schema descriptions at all. The description could have explained that results are paginated and that first defaults to 50 with a 250 cap, but it adds no parameter meaning whatsoever.

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 gives a specific verb and resource ('List all variants for a specific product') and enumerates the data returned (pricing, inventory, SKU, option values), which clearly separates it from get_product or get_product_tags. It stops short of naming a sibling or stating the boundary case, but an agent can select it confidently.

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 when-to-use guidance beyond the implicit 'for a specific product' prerequisite. Nothing says when to call get_product instead, whether variants are also returned by get_product, or how to page through large variant sets, so an agent must infer the routing decision.

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