Skip to main content
Glama

Restore the original

undo
Read-only

Returns the command that restores original memory files after routing, lists the operations performed, and reports when no compiled workspace exists.

Instructions

Returns the command that restores your original memory files and the operations it performs; this server never touches your disk. No compiled workspace: "nothing to undo".

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
forceNodelete routed files even when edited since the last apply
formatNodefault text
targetNofolder in the root, "." for itself; none: the recorded memory folder; never guess
contentNoalso return the originals' content, for a host without a shell

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=true and destructiveHint=false, and the description adds meaningful context beyond that: it explicitly states the server never touches the disk and that it returns both the command and the operations it performs. It also discloses the no-op case ('nothing to undo'), which reconciles the destructive-sounding 'force' parameter with the read-only annotation.

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 tightly packed sentences with the core purpose front-loaded. The phrase 'the operations it performs' is slightly ambiguous about whether 'it' refers to the command or the server, and the quoted 'nothing to undo' is a bit cryptic, but there is no wasted wording.

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 low-complexity, all-optional-parameter tool with annotations covering the safety profile, the description covers the return content, the read-only nature, and the no-op condition. It does not detail the shape of the returned command or format, which is a minor gap given there is no output schema.

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%, so the schema already documents all four parameters. The description adds no parameter-specific syntax or format detail, though 'this server never touches your disk' subtly clarifies that the force-driven deletion happens in the returned command, not on the server. Baseline 3 is appropriate when the schema carries the parameter burden.

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: it 'returns the command that restores your original memory files.' It is clearly the inverse of the sibling 'apply,' though it never names that sibling or explicitly contrasts with it, so sibling differentiation is implicit rather than stated.

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 implied by the inverse relationship to 'apply' and by the 'nothing to undo' case, but there is no explicit statement of when to call this instead of 'apply' or 'doctor,' nor any prerequisites or exclusions. The agent must infer the when-to-use context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools