Skip to main content
Glama

Redo

redo

Reapplies recently undone BPMN editor changes, but only immediately after an undo. Returns the number of steps reapplied and whether more undo or reapply actions are available.

Instructions

Redoes the changes just undone, like the editor's Redo button (Ctrl+Y). Only possible right after undo: a new change clears what can be redone. Returns how many steps were redone and whether more can be undone or redone.

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

Input Schema

NameRequiredDescriptionDefault
stepsNoNumber of steps to redo. Default: 1

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.4.6

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare non-read-only, non-idempotent, non-destructive behavior, so the description's added value is the state precondition (redo history is cleared by any new change) and what the call reports back (step count plus whether further undo/redo is available). That is meaningful context the annotations cannot convey, though nothing is said about what happens if the redo stack is empty or how the call fails.

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?

Three short sentences with zero waste: purpose first, precondition second, return shape third. Every clause carries information an agent needs.

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, non-idempotent mutation tool with no output schema, the description covers purpose, precondition, failure mode, and return values. Nothing an agent needs to call it correctly is missing.

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 'steps' parameter is fully documented in the schema (min 1, max 20, default 1). The description adds nothing about batching behavior or what happens when 'steps' exceeds the available redo depth, so it sits at the baseline for a fully-described 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?

States a specific verb and object ('Redoes the changes just undone') and anchors it with a familiar analogy ('like the editor's Redo button (Ctrl+Y)'). The phrase 'changes just undone' distinguishes it from the sibling 'undo' without ambiguity.

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

Usage Guidelines4/5

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

Gives a clear precondition and failure mode: 'Only possible right after undo: a new change clears what can be redone.' This tells the agent when the call will succeed and when it is pointless. It does not explicitly name the sibling 'undo' as the prerequisite action, which keeps it just short of full routing guidance.

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