Skip to main content
Glama

document_undo

Revert or reapply up to 50 editing steps in an open Moho document. Set undo or redo mode and step count to correct mistakes or restore changes.

Instructions

Undo or Redo one or more steps in the open Moho document.

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": "document_undo"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoDefault: 'undo'
stepsNoNumber of steps (1..50, default: 1)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are provided, so the description must carry behavioral disclosure. It only restates the operation and mentions the open document; it does not explain that undo/redo mutates document state, clears redo history, or what errors occur at history boundaries.

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?

A single, front-loaded sentence with no filler. It communicates the core action and scope immediately.

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 simple two-parameter tool with full schema coverage, the description covers the basic operation and the open-document prerequisite. However, with no annotations and no output schema, it should say more about side effects and history limits to fully prepare an agent.

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 both parameters are fully described in the schema, so baseline is 3. The phrase 'one or more steps' loosely aligns with the steps parameter but adds no syntax, range, or default information beyond the schema.

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 states a specific action (undo/redo), an object (steps), and a scope (the open Moho document). This clearly separates it from sibling document/file operations such as document_save or document_open, and the dual undo/redo capability is made explicit.

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

Usage Guidelines2/5

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

It does not say when to choose undo versus redo beyond the mode enum, nor does it state prerequisites or what to do when no undo history exists. The only usage signal is the implied context 'open Moho document'.

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