Skip to main content
Glama

undo

Destructive

Restore the scene before the most recent successful mutation, reversing the last diagram change.

Instructions

Restore the scene before the most recent successful mutation.

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

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.0
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "history_depth": {
      -      "type": "integer"
      -    },
      -    "revision": {
      -      "type": "integer"
      -    },
      -    "status": {
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "status",
      -    "revision",
      -    "history_depth"
      -  ],
      -  "type": "object"
      -}New value: +null
  2. First observedv0.2.1

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and openWorldHint=false, so the safety profile is largely covered. The description adds useful scope by specifying that only the most recent successful mutation is reverted, but it does not explain what happens to the current scene state, whether undo can itself be undone, or what occurs after failed mutations.

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 a single, front-loaded sentence with no redundant or filler wording. Every phrase contributes to defining the operation's scope and target.

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 parameterless undo tool with annotations covering destructiveness, the description is nearly complete. It states what is restored and which mutation is targeted, though it could optionally clarify whether repeated undo is supported or what constitutes the restored state.

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 there is no parameter meaning for the description to clarify. The schema is empty and complete, making the baseline of 4 appropriate.

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?

The description uses a specific verb and resource: 'Restore the scene before the most recent successful mutation.' It clearly identifies this as an undo-style operation scoped to the last successful mutation, distinguishing it from broad destructive tools like clear or delete.

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 to use the tool by tying it to the most recent successful mutation, but it does not explicitly say when not to use it, whether multiple undos are possible, or how it differs from alternatives like clear or preview. The usage context is present but not fully elaborated.

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