Skip to main content
Glama

Edit a variation choice

variation_choice_edit
DestructiveIdempotent

Edit an existing variation choice by its ID. All fields optional except ID. Use data_list_variations to find choice IDs.

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": {
      "id": "<id>"
    },
    "name": "variation_choice_edit"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesID of the variation choice to modify
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 destructiveHint=true and idempotentHint=true, so the safety profile is partly carried by structured data. The description adds the useful constraint that all fields are optional except ID, but it never explains whether omitted fields are preserved or reset, nor what the destructive risk actually entails for a partial edit. That ambiguity matters given destructiveHint=true.

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 the identifier, followed by the optionality rule and the ID-discovery pointer. No filler or restatement of the title beyond what is needed.

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

Completeness3/5

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

For an 8-parameter mutation with no output schema, the definition covers the essentials (what it does, required key, how to obtain IDs) but leaves the update semantics and failure behavior unstated. An agent could invoke it, but could not predict what happens to unspecified fields on a destructive-flagged edit.

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 description coverage is 100% and every parameter carries its own description, including domain hints for ending, deltaPrice, and unavailable, so the schema does the heavy lifting. The only added meaning is "All fields optional except ID," which restates the required array; no format, range, or mutual-exclusion guidance is added.

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 states a specific verb and resource ("Edit an existing variation choice") plus the addressing key (by its ID), so an agent knows exactly what it targets. It implicitly separates itself from variation_choice_add/delete by saying "existing ... choice," though it never names those siblings explicitly.

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 a concrete prerequisite workflow: "Use data_list_variations to find choice IDs," which is the main discoverability gap for an edit-by-ID tool. It stops short of stating when not to use it (e.g., creation vs. modification, or editing the parent variation instead), so no exclusions are covered.

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