Skip to main content
Glama

Undo or redo a change

myapp_undo
Destructive

Undo a change, or redo it with redo set to true. Without change_id, the last change. The app can also change outside this conversation: before acting on what was read earlier, read it again with myapp_get_app; after a conflict or an unexpected result, read it again before trying again.

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": "myapp_undo"
  }
}

Input Schema

NameRequiredDescriptionDefault
appNo
redoNo
draftNoSecret of a draft, returned once by myapp_create without an account: the app as it takes shape, before it is kept in the user's account. Pass it back as draft, instead of app, to read, preview and change it, until myapp_create with this draft keeps the app in the account. It is not an id: do not show it to the user.
change_idNoId of the change, as the answer of the change or myapp_get_app gives it: digits for an app, s_ and 12 hexadecimal digits for a draft.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/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 readOnlyHint=false, so the safety profile is covered. The description adds real value beyond that by disclosing the stale-read/conflict hazard ('The app can also change outside this conversation') and the default target when change_id is omitted. However, it never says what state is lost or what an undo returns, leaving the core destructive behavior underspecified.

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?

The definition is compact and front-loads the primary action before the fallback and staleness caveats. The final sentence is a long run-on with two overlapping 'read it again' instructions, which costs a little readability but each clause carries distinct guidance.

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 four-parameter mutation tool with full annotation coverage and no output schema, the description covers the default target, the redo switch, and the concurrency hazard. The remaining gap is the unexplained 'app' parameter and the absence of any statement about what the call returns or confirms.

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 50%: draft and change_id are documented in the schema, while app and redo are not. The description compensates for redo ('redo set to true') and for change_id's default ('Without change_id, the last change'), but the 'app' parameter is never explained in either place.

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 — 'Undo a change, or redo it with redo set to true' — and immediately clarifies the default ('Without change_id, the last change'). It doesn't explicitly contrast with myapp_change (the sibling most likely to be confused with it), so it falls short of a 5.

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 concrete when-to-use guidance for a sibling: 'before acting on what was read earlier, read it again with myapp_get_app; after a conflict or an unexpected result, read it again before trying again.' It also defines the no-change_id default. What's missing is guidance on when to undo versus using myapp_change to make a corrective change.

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.