Skip to main content
Glama

Undo a product's classification

undo_product
Destructive

Undo set_product for a product, by its key (from get_site).

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>",
      "key": "<key>"
    },
    "name": "undo_product"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYes
site_idYesThe site's id, from get_account or list_sites.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the description needn't restate that this mutates state. However, it adds no behavioral context: it does not say what is destroyed (the whole classification vs. a single field), whether the prior value is restored or simply cleared, or whether repeat calls are idempotent. For a destructive operation that is a real gap, though the phrase 'Undo set_product' does imply reverting rather than arbitrary deletion.

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?

A single short sentence with the action front-loaded and no filler. Every clause (the verb, the sibling reference, the parameter and its source) carries information the agent needs.

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, two-parameter tool with no output schema, the definition is thin: it omits what state results after the undo, whether confirmation errors occur when no classification exists, and how the response indicates success. The identifier provenance is the only substantial extra detail provided.

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 50%: site_id is documented in the schema, while key is not. The description compensates partially by stating the key comes from get_site, which tells the agent where to source the identifier. It still says nothing about key format or scope beyond that provenance hint.

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 gives a specific verb ('Undo') tied to a named sibling operation ('set_product') and states the resource is a product identified by key. An agent can immediately tell this is the inverse of set_product rather than a fresh classification. It stops short of describing what 'undo' restores, but the action itself is unambiguous.

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?

Mentioning set_product as the operation being reversed gives implicit routing: use this when a set_product action needs reverting. There is no explicit when-not guidance, no statement about preconditions (e.g. must a classification exist first), and no mention of alternatives such as accept_suggestion for related classification changes.

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