Skip to main content
Glama

unity_undo_last

Revert the last verified MCP undo group, optionally by agent ID. Use force to include newer Unity-registered changes; no Redo step is created.

Instructions

Revert the latest verified MCP Undo group, optionally by agentId. Newer MCP/native groups require force:true. Only Unity-registered changes are covered; this revert creates no Redo step. Use unity_undo for normal Undo/Redo. Reads and execute-code are not targets.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
portNoUnity instance port (from unity_select_instance). Always include it when multiple instances run.
forceNoAlso revert newer actions stacked on top of the target (Unity's linear undo). Default false.
agentIdNoOptional: revert this agent's most recent action instead of the global newest (see unity_undo_history for ids).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.35.6

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and covers a lot: scope ('Only Unity-registered changes are covered'), side-effect disclosure ('this revert creates no Redo step'), and the force requirement. It stops short of permissions, instance/auth requirements, or a return indication, so not a full 5.

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?

Five dense sentences, each earning its place: core action, force rule, coverage scope, redo side-effect, alternative routing, and exclusions. Scope and the alternative are appropriately front-loaded with zero filler.

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 3-param mutation tool with no annotations and no output schema, the description covers scope, side effects, and routing well. It omits any indication of the response or failure modes, which is a minor gap given the action-oriented nature.

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?

Schema coverage is 100%, so baseline is 3; the description adds meaning beyond the schema by framing agentId as 'revert this agent's most recent action' and tying force to newer MCP/native groups. This value-add above the already-complete schema justifies a 4.

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 ('Revert') and a precise resource ('the latest verified MCP Undo group'), and explicitly contrasts itself with the sibling unity_undo. An agent can tell this apart from unity_undo/unity_redo without opening the schemas.

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?

Names the alternative ('Use unity_undo for normal Undo/Redo'), states the condition for force:true ('Newer MCP/native groups require force:true'), and gives exclusions ('Reads and execute-code are not targets'). When-to-use, when-not, and the alternative are all present.

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