Skip to main content
Glama

generate_commerce_variants

Destructive

Generate every combination of a product's current options as variants (max 100).

Existing variants are matched by option combination and keep their id, SKU, price, and stock; missing combinations are added at the product's price.

Args: project_id: The project ID. product_id: The product ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
product_idYes
project_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Annotations already mark this destructive and open-world, and the description goes well beyond them: existing variants are matched by option combination and preserve id, SKU, price and stock, while missing combinations are added at the product's price, all capped at 100. That is exactly the kind of side-effect detail an agent needs before invoking a mutation.

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?

The core behavior is front-loaded in two dense, informative sentences with no filler. The trailing Args block is pure repetition of the parameter names with no added value, which is the only waste.

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?

An output schema exists, so return values need not be described, and the description covers the key semantics: matching rule, price default, and the 100-variant cap. It could be stronger by noting prerequisites or what happens when the cap is exceeded.

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

Parameters2/5

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

Schema description coverage is 0% and the description's Args block only restates the names ('project_id: The project ID', 'product_id: The product ID'), adding no format, source, or constraint information. It fails to compensate for the schema gap.

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 and resource ('Generate every combination of a product's current options as variants') and bounds the scope with '(max 100)'. It is clearly distinguishable from the sibling create_commerce_variant, which creates one variant, and list_commerce_variants, which reads them.

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?

It describes the bulk-generation behavior and the max-100 constraint, which implies the context for use, but never states when to prefer it over create_commerce_variant for a single variant or what prerequisites (e.g. options must already be defined via set_commerce_product_options) apply. Usage is implied, not prescribed.

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