Skip to main content
Glama

Kalpana Designer

Undo

undo

Revert the latest change to a design: the design goes back to how it was before that call (any tool that changed it: layers, structure, motion). Call it again to step back further; there is no redo, so an undone change has to be made again. Returns the revision the design is now at and the change it is back to; refused when there is nothing to undo. Free. Use it when an edit made things worse; to remove one property, change it with update_layers instead.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "page_id": "<page_id>"
    },
    "name": "undo"
  }
}

Input Schema

NameRequiredDescriptionDefault
page_idYesThe page to work on, as returned by create_design.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations it discloses non-obvious behavior: the undo stack is one-way ("there is no redo, so an undone change has to be made again"), repeated calls step back further, the call is refused when history is empty, and it is free. Those traits (loss of redo, failure mode, cost) are exactly what an agent cannot infer from readOnlyHint=false / destructiveHint=false alone.

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?

Front-loads the core action, then the stepping behavior, then return/refusal semantics, then usage routing. Every clause carries distinct information and nothing is repeated from the name or annotations.

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?

For a one-parameter mutation tool with no output schema, the description covers the essentials an agent needs: what is reverted, how to chain calls, the refusal case, and what is returned (the revision and the change it is back to).

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 coverage is 100% and the single page_id parameter is fully documented as "the page to work on, as returned by create_design"; the description adds no further parameter detail, so the baseline applies.

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 ("Revert the latest change to a design") and immediately scopes what counts as a change ("any tool that changed it: layers, structure, motion"), which separates it from sibling mutation tools like update_layers or edit_structure.

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?

Gives an explicit trigger ("Use it when an edit made things worse") and an explicit alternative with its condition ("to remove one property, change it with update_layers instead"), plus the repeated-invocation rule for stepping back further.

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.

Resources