Skip to main content
Glama

Frontman for WordPress

wc_create_product_variation

Destructive

Creates a variation for a WooCommerce product. Mirrors woocommerce-mcp-server method create_product_variation using local WordPress authentication; no WooCommerce REST API keys are required.

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": {
      "site_id": "<site_id>",
      "productId": "<productId>",
      "variationData": "<variationData>"
    },
    "name": "wc_create_product_variation"
  }
}

Input Schema

NameRequiredDescriptionDefault
site_idYesThe connected site's id returned by list_sites. Call list_sites first; do not use a URL or WordPress post ID.
productIdYesThe parent product ID.
variationDataYesVariation fields to create.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and openWorldHint=true, so the safety profile is covered. The description adds genuinely new context — local WordPress authentication, no REST API keys required — but says nothing about failure modes (duplicate SKU, invalid attribute), side effects, or what is returned.

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?

Two sentences, front-loaded with the operation and free of padding. The second sentence earns its place by explaining the authentication model, though it is framed around an internal implementation name most agents cannot act on.

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?

For a destructive, non-idempotent mutation with an opaque nested payload and no output schema, the description leaves too much unsaid: accepted variation fields, required parent state, and whether the created variation's ID is returned. The authentication note is helpful but does not close these gaps.

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 coverage is nominally 100%, but the key payload parameter variationData is an empty object with additionalProperties=true, so the agent cannot tell which fields to supply. The description does not enumerate them, only vaguely pointing at an external 'create_product_variation' method; it adds no meaning beyond the schema rather than compensating for its vacuity.

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: 'Creates a variation for a WooCommerce product.' The word 'variation' distinguishes it from wc_create_product implicitly, but the description never names a sibling or states when a variation is preferable to a standalone product.

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?

No when-to-use guidance, no prerequisites (e.g. parent product must exist, attributes must be defined), and no alternatives mentioned. The one actionable instruction, 'Call list_sites first', lives in the site_id schema field rather than the description.

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.