Skip to main content
Glama

ordercloud.products.generateVariants

Generates product variants from a product's defined specs, optionally assigning a price schedule to each variant. Use it to create variant SKUs for spec combinations in one step.

Instructions

Generate variants for a product based on its specs

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "productId": "<productId>"
    },
    "name": "ordercloud.products.generateVariants"
  }
}

Input Schema

NameRequiredDescriptionDefault
productIdYesThe product ID
priceScheduleIdNoOptional price schedule ID to assign to variants

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and does very little with it. It does not say what happens to variants that already exist, whether the operation is idempotent or repeatable, what permissions are required, or whether generated variants are returned or merely created.

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?

A single front-loaded sentence with no filler, and the resource and basis come first. It is efficient but so terse that the brevity is part of the under-specification problem rather than a virtue.

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

Completeness2/5

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

This is a mutating, generation-style operation with no annotations and no output schema, so the description must explain effects and results — and it does not. An agent cannot tell whether calling it twice duplicates variants, whether it needs a price schedule, or what it gets back.

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 coverage is 100%, so both productId and priceScheduleId are already documented, and the baseline is 3. The phrase 'based on its specs' adds one genuinely useful piece of context not in the schema — that generation reads the product's spec definitions — but it does not explain how specs shape the output or what happens if none exist.

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 ('Generate variants for a product') plus the basis ('based on its specs'), which distinguishes it from sibling writes like create, createFull, patch, and bulk.products.create. It stops short of explicitly naming which sibling to use instead for manual variant creation.

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

Usage Guidelines2/5

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

There is no guidance on when to use this versus creating variants individually or via bulk tools, and no stated prerequisites — such as whether the product must already have specs defined for generation to succeed. The agent must infer all of this.

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