Skip to main content
Glama

Undo the last Godotwright writes

godot_undo
Destructive

Undo recent Godotwright scene and project writes, renames, migrations, fixes, and model builds, newest first, to revert harmful changes without losing later manual edits.

Instructions

Undo what Godotwright wrote, newest first: scene and project edits, renames (moved files go back), migrations, fixes and model builds each keep the files as they were, in .godot/godotwright/journal/ (the last 40 writes). steps undoes that many writes (default 1); list only shows them. A file changed after the write (by hand or by another tool) stops the undo there, so your later edits are never lost silently; force undoes anyway. Use it when a write made things worse, instead of repairing by hand.

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

Input Schema

NameRequiredDescriptionDefault
listNoonly list the writes that can be undone
pathNoproject folder, or a file or folder inside it (relative to the server's folder; default: the current project)
forceNoundo even when a file changed after the write; those changes are lost
stepsNohow many writes to undo (default 1)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.6.0
    • changedInput schema / properties / path / description
      Previous value: -"The project folder, or any file or folder inside it (Godotwright walks up to project.godot). Relative paths start at the server's folder. Default: the current project."New value: +"project folder, or a file or folder inside it (relative to the server's folder; default: the current project)"
  2. Addedv0.2.2

TDQS

A4.1/5.0
Behavior5/5

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

Goes well past the annotations: names the journal location (.godot/godotwright/journal/), the 40-write retention window, and the crucial guard that a file modified after the write halts the undo so later edits are never lost silently, with `force` as the explicit override that discards them. That is exactly the safety-versus-force trade-off an agent must know before calling a destructive tool.

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?

Front-loads the verb and scope, then packs retention, safety guard, and force override into a compact flow with no filler sentences. It is dense but every clause carries information; the parameter notes at the end are slightly repetitive of the schema.

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?

Given a destructive, multi-mode tool with no output schema, it covers restore semantics, retention limits, the abort-on-modification rule, and the inspection mode. What is missing is what `list` actually returns and what a successful undo reports back.

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%, so the schema already documents all four parameters; the description mainly restates `steps` (default 1), `list`, and `force`. It adds some meaning by explaining the condition under which `force` is needed and by constraining steps to the last 40 writes, but leaves `path` entirely to the 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?

States a specific verb (undo) plus the exact resource/scope: Godotwright's own writes, newest first, enumerated by category (scene and project edits, renames, migrations, fixes, model builds). That scope statement is what separates it from manual repair and from the edit tools in the sibling list, though no sibling is named outright.

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?

Gives explicit trigger ('Use it when a write made things worse') and an explicit alternative it replaces ('instead of repairing by hand'), plus the non-mutating `list` mode for inspection first. It does not say when to prefer a forward-fix tool such as godot_fix over a rollback, which is the main remaining routing ambiguity.

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