Skip to main content
Glama

Undo a change

undo_change
Destructive

Undo one change by its changeId. Only the parts nobody has edited since go back.

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": {
      "listingId": "<listingId>",
      "changeId": "<changeId>"
    },
    "name": "undo_change"
  }
}

Input Schema

NameRequiredDescriptionDefault
changeIdYesThe change to undo, from recent_changes.
listingIdYesListing id from list_listings.

Output Schema

NameRequiredDescriptionDefault
statusNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / changeId / description
      Added value: +"The change to undo, from recent_changes."
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=false, so the safety profile is covered. The description nonetheless adds genuinely new behavior: undo is partial, reverting only the portions nobody has edited since, which an agent cannot infer from the annotations or schema. It stops short of saying what happens to the edited portions or whether the undo itself can be reversed.

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?

Two short sentences with no filler, and the identifying argument is front-loaded before the partial-revert caveat. Nothing needs trimming.

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?

An output schema exists, so return values need not be explained. For a destructive, non-idempotent mutation, however, the description omits the practical consequences of the partial revert (edited sections stay changed), whether a repeat call is safe, and what failure looks like when the change is stale.

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% and both parameters already carry descriptions tying changeId to recent_changes and listingId to list_listings. The description adds no format, lifetime, or validity detail beyond that, so the baseline 3 applies.

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?

"Undo one change by its changeId" names a specific verb (undo) and resource (change), with the identifying argument stated inline. It is unambiguous on its own, though it never contrasts itself with any alternative behavior an agent might reach for.

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?

Usage is only implied: the schema points changeId at recent_changes, which suggests the discovery-then-undo flow but is not restated in the description. There is no explicit guidance on when not to undo, whether the change must be recent, or what to do if the undo partially fails.

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