Skip to main content
Glama

Add a variation choice

variation_choice_add

Add a new choice to a variation (e.g. "Large" to the "Size" variation). Requires a title and idVariation. Optional: deltaPrice to adjust the price, position, description, ending (marks it as last choice), unavailable.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "variation_choice_add"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNoChoice label (e.g. 'Large', 'Red')
endingNo1 if selecting this choice ends the variation selection flow
positionNoDisplay order within the variation
deltaPriceNoPrice adjustment applied when this choice is selected
descriptionNoAdditional description for this choice
idVariationNoID of the parent variation type
unavailableNo1 to mark this choice as temporarily unavailable

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare the operation is a non-read-only, non-idempotent, non-destructive, closed-world write. The description adds field-level behavior (ending marks the final choice, unavailable marks temporary unavailability), but says nothing about permissions, duplicate-name handling, failure modes, or what the call returns.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the action and an example, then required fields, then optional fields. Nothing is redundant and no sentence could be dropped without losing information.

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 7-parameter create operation with rich schema descriptions and non-trivial annotations, the definition covers purpose, required inputs, and the semantics of the notable optional fields. The main remaining gap is the absence of any indication of what the tool returns (e.g., the new choice identifier), which matters since there is no output schema.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds requiredness information that the schema lacks entirely (no required array is present), plus short glosses for deltaPrice, position, and ending. It stops short of explaining formats for the number-or-string union fields.

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 ("Add a new choice to a variation") and anchors it with a concrete example ("Large" into "Size"), which implicitly separates it from variation_add (creates the variation type). It never names a sibling tool explicitly, so it falls short of full sibling differentiation.

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?

"Requires a title and idVariation" gives a usable precondition and hints that the remaining fields are optional, which is real usage context. However, there is no explicit when-to-use guidance, no exclusion pointing to variation_choice_edit or variation_choice_delete, and no note about what to do if the choice already exists.

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