Skip to main content
Glama
barlasarda91

Shopify MCP Server

by barlasarda91

update-variant-price

Change a product variant's price, optionally setting a compare-at price, by providing product and variant IDs.

Instructions

Update the price (and optionally compare-at price) of a product variant.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
priceYesNew price as a decimal string, e.g. '19.99'
productIdYesProduct ID that owns the variant
variantIdYesVariant ID (numeric ID or gid://shopify/ProductVariant/... form)
compareAtPriceNoOptional compare-at (strikethrough) price as a decimal string

Schema Changelog

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

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior2/5

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

No annotations are provided, so the description must disclose side effects. It conveys that the operation mutates variant pricing, but it does not mention whether the price is overwritten, whether omitted compareAtPrice is cleared or preserved, validation behavior, or permission requirements. For a mutation tool, this is a significant transparency gap.

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?

The description is a single front-loaded sentence with no filler. It states the core operation and the one key option (compare-at price) immediately, earning its place.

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

Completeness3/5

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

For a small mutation tool with 100% schema coverage, the purpose and parameters are adequately documented. However, with no annotations and no output schema, the description does not cover behavioral expectations or return values, leaving a moderate completeness gap that prevents a higher score.

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 documentation covers all four parameters, including the decimal-string format and accepted variant ID forms, so the baseline is 3. The description adds only the optionality of compare-at price, which is already reflected by the schema's required list, so no meaningful new parameter semantics are contributed.

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 action (Update), a precise resource (product variant), and the target fields (price, optionally compare-at price). This clearly differentiates it from sibling update-product, which operates at the product level, and from adjust-inventory, which handles stock rather than pricing.

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 intended use is implied by the action: call this when a variant's price or compare-at price needs to change. However, it does not explicitly state when to prefer this over update-product or exclude product-level updates, leaving some routing inference to the agent.

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/barlasarda91/Shopify-MCP'

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