Skip to main content
Glama

undo

Destructive

Reverse the last Unreal Editor transaction and report what remains, including the next entry's label; check the applied flag to confirm a change actually occurred.

Instructions

Step the editor's undo stack back by one transaction and report what is left, including next_undo (the label of the entry now on top). WARNING: success is ALWAYS true, including when there was nothing to undo -- the real oracle is applied, and the honest verification is re-reading whatever you changed. Use undo_multiple for N steps and get_undo_state to look before you leap; an undo barrier will stop it.

Returns: { applied: bool (THE oracle -- false means nothing was undone), undo_count: int, can_undo: bool, next_undo: string (label of the next entry) }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations (destructiveHint=true, readOnlyHint=false) by exposing a non-obvious trap: 'success is ALWAYS true, including when there was nothing to undo', and naming `applied` as the real oracle with re-reading as honest verification. This is exactly the kind of failure-mode disclosure annotations cannot carry.

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: the action, the critical warning, the alternatives, and the return shape all appear in order with little padding. Slightly dense in the warning clause, but every sentence earns its place.

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?

With no output schema available, the description compensates by spelling out the full return object and flagging which field is authoritative. For a zero-parameter mutation tool, nothing an agent needs to call it correctly is missing.

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?

The tool takes zero parameters, so the baseline is 4. The description instead documents the return contract (applied, undo_count, can_undo, next_undo), which is useful but belongs to output rather than parameter semantics.

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?

States a specific verb and resource ('Step the editor's undo stack back by one transaction') with exact scope ('by one transaction'), which cleanly distinguishes it from undo_multiple and get_undo_state. An agent can identify the tool's action without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly routes to alternatives: 'Use undo_multiple for N steps and get_undo_state to look before you leap.' It also names a stopping condition ('an undo barrier will stop it'), so both the when and the when-not are covered.

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