Skip to main content
Glama

redo

Reapplies the change removed by the last undo; if a new edit follows an undo, there is nothing to restore.

Instructions

Put back the change the last undo took back. A new change after an undo means there is nothing to redo.

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

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only declare the mutation profile (readOnly=false, destructive=false, idempotent=false); the description adds genuine state semantics beyond them — the tool operates on an undo history stack that is invalidated by any intervening change. It does not say what happens when there is nothing to redo (error vs. silent no-op), so it stops short of full disclosure.

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?

Two short sentences, the core action first and the invalidation rule second. No filler, no redundancy, and the ordering is front-loaded on what the tool does.

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 zero-parameter, single-purpose mutation with no output schema, the description covers what it does and the key precondition that governs success. Only the failure behavior (exception vs. no-op when the redo stack is empty) is missing.

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 schema detail for the description to supplement; the 4 baseline applies. Nothing in the description misdescribes inputs, and none are needed.

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?

"Put back the change the last undo took back" names a specific verb and resource and implicitly anchors the operation against the undo sibling, so an agent can distinguish redo from undo. The phrasing is slightly indirect (it never says "redo the last undone edit" outright), keeping it from a clean 5.

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?

It gives a concrete condition under which the call is pointless: "A new change after an undo means there is nothing to redo." That is an effective when-not-to-use rule, though it never states the positive prerequisite (that a prior undo must exist in the session) or the alternative action to take.

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

Deploy Server

Other Tools