Skip to main content
Glama
grandMA2 MCP
by drohi-r

undo_last_action

Undo the last 1–20 actions on a grandMA2 console by issuing the console's oops command repeatedly, helping you quickly reverse recent programming or playback changes.

Instructions

Undo the last N actions on the console (sends 'oops' N times).

Args:
    count: Number of actions to undo (1-20, default 1)

Returns:
    str: JSON result with all raw responses

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_last_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
countNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden; it does disclose the mechanism (repeating the console 'oops' command) and that raw responses are returned, which is real context. However it does not say whether the undo is itself reversible, what happens if count exceeds available history, or whether it can affect other users' state — notable gaps for a state-changing operation.

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?

The first sentence is front-loaded and complete; the tool purpose is understandable from it alone. The trailing 'Args:'/'Returns:' docstring block partly duplicates what the input and output schemas already declare, so a little space is not strictly earned.

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?

An output schema exists, so the description need not (and need not be penalized for) explaining return values, and the single parameter is fully covered. What is missing is failure/edge behavior and any hint about verifying the target of the undo before invoking it, which matters for a mutating console command with no annotations.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% — the single 'count' property has no description, no minimum/maximum, only a default. The description fully compensates by defining the meaning ('Number of actions to undo') and supplying the 1-20 bound and default that the schema omits.

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?

States a specific verb and resource ('Undo the last N actions on the console') plus the underlying mechanism ('sends \'oops\' N times'), so an agent knows exactly what the tool does operationally. It does not explicitly contrast itself with the sibling 'list_undo_history', but the undo verb is inherently distinguishing.

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?

There is no when-to-use / when-not-to-use guidance, no prerequisites, and no reference to the sibling 'list_undo_history' for inspecting what would be undone first. The only usage-adjacent information is the count default and bounds, which is parameter semantics rather than guidance.

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