Skip to main content
Glama

Variants Update

tiendanube_variants_update
Idempotent

Update a single product variant's price, SKU, stock, weight, or other fields through the Tiendanube API.

Instructions

Update one variant (price, SKU, weight, stock...). HTTP: PUT /products/{product_id}/variants/{id} Required scope: write_products API version: 2025-03

Input Schema

NameRequiredDescriptionDefault
idYesVariant ID
mpnNoManufacturer part number
skuNoSKU
costNoUnit cost (decimal string)
depthNoDepth in cm
priceNoPrice as decimal string, e.g. '1999.90'
stockNoStock quantity; null = infinite
widthNoWidth in cm
genderNoGender (Google Shopping)
heightNoHeight in cm
valuesNoOne i18n value per product attribute, e.g. [{"es":"M"},{"es":"Rojo"}]
weightNoWeight in kg
barcodeNoBarcode (EAN/UPC)
image_idNoID of a product image to associate
age_groupNoAge group (Google Shopping)
product_idYesProduct ID
inventory_levelsNoPer-location stock for multi-location stores
stock_managementNotrue to track stock; false = infinite stock
additional_fieldsNoExtra raw API body fields not covered above; merged into the request body
promotional_priceNoPromotional price (decimal string)

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?

Annotations already declare mutation, idempotency, and non-destructiveness; the description adds genuinely useful operational context in the required scope (write_products) and pinned API version. However, the single most important behavioral fact for a 20-param update endpoint — whether omitted fields are preserved or reset, and how additional_fields/inventory_levels interact with top-level stock — is never stated, and no output schema compensates.

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?

Four compact lines with the action front-loaded and the endpoint, scope, and version stacked underneath — no filler. The only minor cost is that the parenthetical field list adds little over the schema.

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?

With 20 parameters, nested objects, no output schema, and openWorldHint=true, the description is thin on what comes back and on partial-update semantics. The full schema coverage and the scope/version disclosure keep it adequate, but an agent still has to guess about request body merge behavior.

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 every parameter, including the nested values and inventory_levels objects, is documented inline with format hints (decimal strings, i18n objects, null = infinite). The description adds nothing beyond naming four example fields, so the baseline of 3 applies.

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?

States a specific verb and resource ("Update one variant") and enumerates representative mutable fields, so an agent knows exactly what it touches. "One variant" implicitly signals this is the single-record counterpart to the batch siblings, but no sibling is named explicitly, keeping it short of a 5.

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?

Usage is only implied by the word "one" — an agent can infer that bulk edits belong to tiendanube_variants_batch_update and stock-only edits to tiendanube_variants_update_stock, but neither alternative nor any exclusion is stated. No guidance on when this is preferable to the batch or stock-specific variants.

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

Deploy Server

Other Tools