Skip to main content
Glama
A1-x-Tech

mcp-shopify-admin

Изменить цены варианта

update_variant
Idempotent

Set new prices and compare-at prices on up to 250 variants of a single product, accepting variant IDs and decimal values in store currency, with null to remove compare-at pricing.

Instructions

Задаёт цену и/или зачёркнутую цену (compareAtPrice) вариантам одного товара — до 250 вариантов за вызов, каждый элемент variants несёт id варианта и новые значения. Суммы — десятичные строки в валюте магазина ("1999.00"); compareAtPrice: null убирает зачёркнутую цену. Больше ничего в варианте не меняет (SKU, штрихкод, опции — через graphql_request). Требуется id товара-родителя: он есть в ответах list_products и get_product. Провал приходит как ошибка с userErrors.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
variantsYesВарианты одного товара с новыми ценами.
productIdYesId товара-родителя: число или gid://shopify/Product/<id>.
Behavior4/5

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

Annotations already declare readOnlyHint=false/not read-only, destructiveHint=false, and idempotentHint=true. The description adds important context: only price and compareAtPrice are affected, compareAtPrice:null removes the strike-through price, failures arrive as userErrors, and the call is limited to one product. It does not repeat annotation data, and no contradiction exists.

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?

Every sentence carries distinct information: main function, scope limit, value format, null semantics, exclusions, prerequisite, and error behavior. It is dense but well-structured and does not restate the title or schema.

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

Completeness5/5

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

The description covers all necessary context for a simple two-parameter write tool: required parent id, variant id format, value format, null handling, limits, and error reporting. With no output schema and 100% schema coverage, nothing essential is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the schema documents both parameters. The description adds semantic value beyond the schema: amounts are decimal strings in shop currency, compareAtPrice:null clears the old price, and only price fields are changed—not other variant attributes.

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 uses a specific verb ('Задаёт') with a clear resource: prices and compareAtPrice for variants of one product. It explicitly states what it does NOT change (SKU, barcode, options), which distinguishes it from sibling tools like update_product and graphql_request.

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

Usage Guidelines5/5

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

It explicitly says when to use this tool (set price/compareAtPrice on variants) and when not to (other variant fields via graphql_request). It also specifies the prerequisite: parent product id from list_products/get_product.

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

Install Server

Other Tools

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/A1-x-Tech/mcp-shopify-admin'

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