Skip to main content
Glama

redo

Reapply undone session mutations on a screen to restore edits after an undo; specify how many changes to bring back.

Instructions

Redo the last n undone session mutations on a screen. Example: {"screen":"checkout","n":1}.

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": {
      "screen": "<screen>"
    },
    "name": "redo"
  }
}

Input Schema

NameRequiredDescriptionDefault
nNo
screenYesLowercase identifier matching [a-z][a-z0-9_]{0,31}

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden for a mutation tool. It does disclose that the stack is session-scoped and that only previously undone mutations can be redone, but it says nothing about failure behavior when n exceeds the available redo depth, whether new mutations clear the redo stack, or whether the change persists beyond the session.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One tight sentence plus an inline example; the operation and its scope are front-loaded with zero filler. The example earns its place by showing the exact call shape.

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 two-parameter, single-purpose tool with no output schema this is close to adequate, but with zero annotation coverage the definition should say what a redo returns (e.g., the resulting screen state) and what happens at stack exhaustion. Those gaps are minor but real for a mutation.

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 50%: "screen" is documented by its pattern, while "n" has only numeric bounds. The description does add real meaning by explaining that n counts undone mutations to replay and gives a concrete example payload, but it omits the default behavior when the optional "n" is omitted, leaving a practical ambiguity.

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?

The description states a specific verb ("Redo") applied to a specific resource ("the last n undone session mutations") scoped to a screen, which is enough to distinguish it from the sibling "undo" without opening either schema. It stops short of explicitly naming the inverse operation, but the intent is unambiguous.

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 phrase "undone session mutations" implies a precondition (there must be an undo stack), and the scope is limited to a single screen, so usage is inferable. However, nothing states when NOT to use it, what happens if there is nothing to redo, or how it relates to "undo" or "checkpoint" beyond the obvious name pairing.

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