Skip to main content
Glama

Undo a change

undo_change
Destructive

Undo WorldAPI block or container changes by ID, or list recent changes newest first when no ID is given. Use force to override later edits and confirm before reverting another player's work.

Instructions

Take back a change made through WorldAPI: blocks set or filled, containers edited. Without id, lists recent ones, newest first, with who, where, and how many blocks. Blocks changed again since stay unless force. Players' own changes and entities aren't kept, and the list empties when the server stops. Confirm before undoing someone else's change.

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_change"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNo
forceNo
limitNoPage size: 0 only counts
worldNoWhen listing
cursorNo`nextCursor` from the previous page

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv5.0.0
    • removedInput schema / properties / force / description
      Removed value: -"Also restore blocks changed again since"
    • removedInput schema / properties / id / description
      Removed value: -"The change to undo; leave out to list them"
    • changedInput schema / properties / id / maximum
      Previous value: -9007199254740991New value: +1000000000
    • changedInput schema / properties / limit / description
      Previous value: -"How many items to return; 0 answers only the total, to count without listing"New value: +"Page size: 0 only counts"
    • changedInput schema / properties / world / description
      Previous value: -"When listing: only this world"New value: +"When listing"
  2. Addedv4.2.0

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the destructive/non-idempotent annotations, it discloses real behavioral traits: overlapping re-changes are skipped unless force is set, player-made changes and entities are outside retention, the undo list is lost on server restart, and confirmation is advised for other users' changes. These are exactly the side-effect details an agent needs before a destructive call.

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-loaded with the primary action and mode split, and nearly every clause carries information. The clipped phrasing ('Blocks changed again since stay unless force') is dense to the point of needing a second read, which costs a point.

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 destructive mutation tool with no output schema, it covers scope limits, retention volatility, and confirmation well. It does not say what an undo or a listing call returns, and leaves pagination behavior for the listing mode implicit.

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?

With 60% schema coverage, the description adds genuine meaning for the two key parameters: omitting id switches to list mode, and force overrides the default of preserving blocks changed again. It says nothing about limit (including the schema's '0 only counts' behavior) or cursor paging, leaving those 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?

The description states a specific verb and resource ('Take back a change made through WorldAPI: blocks set or filled, containers edited') and clearly covers the second mode ('Without id, lists recent ones, newest first'). It does not name any sibling for differentiation, but no sibling in the catalog performs undos, so ambiguity is low.

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 an explicit selection rule between the two modes: supply an id to undo, omit it to list recent changes. It also adds a caution ('Confirm before undoing someone else's change') and a conditional escape hatch ('unless force'), but never says when not to use the tool or what to do instead for non-WorldAPI changes.

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