Skip to main content
Glama

Set product inventory

set_product_inventory
DestructiveIdempotent

Set stock counts and stock policy for a Replo-managed product's variants, addressing each variant by its option-value combination (empty optionValues for a product with no options). available is an absolute count, not a delta. Turning on trackInventory without an available count leaves the variant unsellable until a count exists — set both together. Only products the merchant fulfills themselves can track stock; print-on-demand and digital variants are made to order and will be refused.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
variantsYes
productIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false, so the safety profile is covered. The description adds value beyond them by clarifying that 'available' is an absolute count rather than a delta and by documenting the refusal behavior for POD/digital variants, though it doesn't spell out what happens to variants omitted from the update.

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 sentences, front-loaded with the core action, and each subsequent sentence adds a distinct operational constraint rather than padding. Slightly dense run-on phrasing in the opening sentence, but nothing is wasted.

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

Completeness4/5

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

For a mutation tool with annotations present and no output schema, the description covers the key behavioral traps an agent would hit. It could be more complete about batch semantics (whether omitted variants are untouched and how maxItems=250 affects large products), but nothing critical for a correct call is missing.

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?

With 0% schema description coverage, the description must carry the parameter burden. It explains the semantics of 'available' (absolute, not delta), 'optionValues' (empty for optionless products), and 'trackInventory' (must be paired with a count), but 'continueSellingWhenOutOfStock' and 'productId' are never addressed.

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 names a specific verb and resource ('Set stock counts and stock policy for a Replo-managed product's variants') and scopes it to variant-level inventory rather than general product editing, so it reads distinctly from update_product. It stops short of naming a sibling explicitly as the alternative, so it is clear but not fully differentiated.

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

Usage Guidelines4/5

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

It gives real operating conditions: turning on trackInventory without an available count leaves the variant unsellable, so both should be set together, and only merchant-fulfilled products can track stock while print-on-demand and digital variants are refused. That is strong when/when-not context, but no sibling alternative (e.g. update_product) is named for the non-inventory case.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources