Skip to main content
Glama

Undo

undo

Revert the last N painting steps—treating each tool call, batch operation, or whole script as one step—to correct mistakes in Atelier.

Instructions

Undo the last N steps (each tool call is one step; a batch op or a whole script is one step).

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
stepsNodefault 1

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose the genuinely non-obvious step-granularity rule (one tool call = one step; batch or whole script = one step), which helps an agent reason about scope. However, it does not say what state is affected (image vs. tool/UI state), whether undo itself is reversible via redo, or what happens when nothing is left to undo.

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?

One front-loaded sentence plus a parenthetical that resolves the only real ambiguity. Nothing is wasted and no relevant caveat is buried.

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?

For a one-parameter mutation tool with no annotations and no output schema, the definition covers the core semantics but leaves the scope of what gets reverted and failure behavior unstated. Adequate, but an agent still has to discover undo scope empirically.

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

Parameters3/5

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

Schema description coverage is 100% and the single parameter already documents its default of 1. The description restates the parameter as "the last N steps" but adds no constraint, range, or clamp behavior beyond the schema, so the baseline 3 applies.

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?

States a specific verb and resource ("Undo the last N steps") and immediately defines what constitutes a step, which is the non-obvious part. It does not explicitly distinguish itself from siblings like redo or history, so it stops short of a 5.

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 intent (revert prior work) is implied clearly, and the parenthetical tells the agent how to count steps. There is no explicit guidance on when not to use it versus alternate tools (redo, history, snapshot), nor on limits such as undoing past a saved state.

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