Skip to main content
Glama
codeyogi911

Shopify MCP Server

by codeyogi911

add_product_variant

Add a new product variant with specific option values and price to an existing product using its Global ID.

Instructions

Adds a new variant (combination of options like color/size) with its price to an existing product.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
skuNoOptional Stock Keeping Unit (SKU) for this variant.
priceYesThe price for this new variant.
product_idYesThe Global ID (GID) of the product to add the variant to (e.g., 'gid://shopify/Product/12345')
option_valuesYesComma-separated list of the option values for this specific variant, **in the exact order** they appear on the product (e.g., 'Red,Small' for options Color then Size).
compare_at_priceNoOptional compare-at price for this variant.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It only states the additive action and does not mention required permissions, error behavior (e.g., if the product is missing), idempotency, reversal effects, or what response is returned. This is a significant gap for a mutation 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?

A single, tightly written sentence communicates the core action and key attributes, with no filler or redundant phrases. Every part of the sentence earns its place.

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?

Given zero annotations, no output schema, and a mutation operation, the description is too sparse. It does not address crucial behavioral context like what happens after creation, prerequisite checks, or failure modes. The schema covers parameters fully, but the operation context remains incomplete.

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%, so the baseline is 3. The description adds no new parameter information beyond what the schema already documents (e.g., the exact order requirement for option_values is already in the schema). It only offers a high-level summary without deepening parameter understanding.

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

Purpose5/5

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

The description states a specific verb ('Adds'), a clear resource ('new variant to an existing product'), and the key attributes (combination of options like color/size, price). It distinguishes itself from sibling tools by emphasizing 'new'

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

Usage Guidelines3/5

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

The description implies this tool is for adding variants to products that already exist, which gives some context. However, it does not explicitly state when to use this tool versus alternatives like update_variant_price or create_product, nor does it provide exclusions or prerequisites beyond 'existing product'.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/codeyogi911/shopify-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server