Skip to main content
Glama

Undo an edit

iter0_undo_edit
DestructiveIdempotent

Undo the last saved edit from the iter0 card. Free. Puts back the exact page from before that edit, which iter0 kept, only while the edit is still the design's current page and the undo has not expired.

Input Schema

NameRequiredDescriptionDefault
htmlNoIgnored. Older cards still send it; iter0 restores its own kept copy.
designIdYes
undoTokenYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

With annotations already declaring destructive, non-read-only, and idempotent behavior, the description adds useful context: the action is free, iter0 keeps an exact copy of the prior page, and there are current-page and expiration preconditions. It does not explain token acquisition or error behavior, but it meaningfully adds to the annotation profile.

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 description is short, front-loads the core action, and every clause adds relevant information: verb, cost, restoration semantics, and preconditions. There is no filler.

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

Completeness3/5

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

The description covers the core behavior and preconditions, and an output schema exists so return values need not be explained. However, for a mutation tool with two undocumented required parameters, the missing explanation of undoToken provenance and designId semantics leaves a meaningful gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 33%; the html parameter is documented in the schema as ignored, but designId and undoToken have no schema descriptions. The tool description implies a design context and an undo token but does not explain where undoToken comes from or what designId must identify, so it does not compensate for the low schema coverage.

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 gives a specific verb and resource: 'Undo the last saved edit from the iter0 card,' and clarifies that it restores the exact prior page. It is clear what the tool does, but it does not explicitly distinguish itself from the sibling restore_version tool.

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

Usage Guidelines3/5

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

The description implies when the tool is valid by saying it works only while the edit is the design's current page and the undo has not expired. However, it gives no explicit guidance on when to use this instead of restore_version or other edit-related siblings.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.