Skip to main content
Glama

undo

Reverse the most recent undoable map edit, including create, delete, move, modify, terrain, or cave steps. Use it to roll back a whole prefab placement or room build in one call.

Instructions

Reverse the LATEST undoable edit (create / delete / move / modify / terrain / cave).

The bridge keeps its own undo/redo stack of 1000 steps, independent of
Dungeondraft's Ctrl+Z. A whole place_prefab, scatter_objects, build_room or
move_elements call is one step, so one undo reverses all of it — provided
nothing undoable has happened since. Undo always takes the newest step; it
cannot target an older one.

`undone: false` with `skipped` (the step's kind) means that step's
elements were already gone (deleted in Dungeondraft, or a level removed):
it was dropped, not reversed. Call undo again for the step before it.

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 observedv1.5.0

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses the independent 1000-step stack distinct from Dungeondraft's Ctrl+Z, the atomicity rule that a whole place_prefab/scatter_objects/build_room/move_elements call counts as one step, and the failure contract where a step whose elements were already deleted is dropped rather than reversed. It even prescribes the follow-up action for that partial-failure case, which is behavior an agent could not infer from the empty schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core action is front-loaded in the first line, and the following paragraphs add only non-obvious facts: stack depth, step granularity, and failure handling. No sentence is redundant with the name or title, and the backticked field names make the failure case scannable.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Though there is no output schema, the description explains the shape of the result (`undone: false` with `skipped` naming the step kind), which is exactly the missing piece. For a zero-parameter, no-annotation tool, the combination of scope, atomicity, and failure recovery leaves nothing an agent needs before calling it.

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?

There are zero parameters, so there is nothing for the description to disambiguate and the baseline of 4 applies. The description correctly spends its space on outcome semantics instead of inventing input detail.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource ('Reverse the LATEST undoable edit') and enumerates the operation kinds it covers (create / delete / move / modify / terrain / cave). Combined with the explicit 'always takes the newest step' constraint, an agent can immediately tell this apart from the opposite-direction sibling redo.

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 a hard when-not rule ('cannot target an older one' — you cannot address a specific step) plus an operational recovery path when `undone: false` returns with `skipped`. What it lacks is an explicit pointer to the alternative (calling redo, or re-issuing the original edit) when undo is the wrong choice, so guidance is strong but not fully routing.

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