Skip to main content
Glama

Undo your last step

undo

Take back your own last change in the editor (an edit or an opened version). A step of the user's stays.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false with destructiveHint=false, and the description usefully explains why: the undo is bounded to one step of the agent's own work and deliberately leaves the user's step in place. That is real value beyond the flags. It omits what happens when there is nothing to undo and whether the undo itself can be reversed, which are the remaining behavioral gaps.

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?

Two short sentences with the core action front-loaded and no filler. The second sentence, "A step of the user's stays," is terse to the point of ambiguity and could state the exclusion more plainly without adding length.

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 zero-parameter, non-open-world tool with no output schema and full annotation coverage, the description supplies the scope and the safety-relevant exclusion an agent needs. Only the empty-history behavior and undo-of-undo semantics are unaddressed, which are minor for this complexity level.

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?

The tool takes zero parameters, so there is no parameter meaning for the description to add; the baseline for parameterless tools applies. The description's scope statement (one step, agent's own change only) is the closest analogue and is consistent with the empty schema.

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 ("Take back your own last change in the editor") and pins down scope with "your own" plus the parenthetical "an edit or an opened version." It distinguishes itself from a general history/revert sibling by limiting the target to the agent's own last change, though the follow-up sentence "A step of the user's stays" is phrased cryptically enough to slow parsing.

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?

The definition makes clear when to reach for this tool (to reverse the agent's own most recent editor action) and gives an implicit exclusion: the user's step is preserved, so it is not a general history rollback. It names no explicit alternative among siblings, which keeps it below a 5, but the when-not condition is conveyed through the scope constraint.

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