Skip to main content
Glama

undo_changes

Destructive

Revert your last creates, edits, or deletes made through this server. Preview what would be undone with a dry run before applying the rollback.

Instructions

Undo your last changes made through this server (creates, edits, deletes). Dry run first

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": {
      "workspace": "<workspace>"
    },
    "name": "undo_changes"
  }
}

Input Schema

NameRequiredDescriptionDefault
countNoHow many of your last changes
forceNoUndo even if someone changed the object since
dryRunNoOnly show what would be undone
workspaceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.5.1

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, so the safety signal is covered; the description adds non-obvious scope limits — only the caller's own changes and only those made through this server, spanning creates, edits and deletes — which matters because undoing a delete is effectively a re-creation. It stops short of saying whether an undo is itself reversible or what force overwrites.

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, front-loaded sentences with no filler: what it undoes, then the safe way to start. 'Dry run first' is slightly cryptic since it never names the dryRun parameter, which is the only small cost.

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?

For a destructive, four-parameter tool with no output schema, the description covers scope and the dry-run posture but omits what the result looks like, whether undo can be rolled back, and any note on the required workspace parameter. Adequate to call safely, incomplete for calling confidently.

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 75%, so the baseline is 3. 'Dry run first' reinforces the dryRun default and 'your last changes' loosely frames count, but the description adds no meaning for force beyond the schema's own text and leaves the required workspace parameter entirely unexplained in both places.

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+object ('Undo your last changes made through this server') and scopes it to creates, edits and deletes. That is enough to distinguish it from the create_/delete_/add_ siblings, which all act on a single named object, though it never explicitly contrasts itself with them.

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?

'Dry run first' is a real procedural directive and implies the intended invocation order, but it does not say when undo is appropriate versus fixing the change another way, nor when to use force or a count greater than one. Usage is implied rather than stated.

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