Skip to main content
Glama

modo_undo_last

Destructive

Revert the most recent assistant-made change in Modo as a single undo step. It only undoes bridge actions and skips undo to protect your own edits, reporting when it does nothing.

Instructions

Undo the newest change the assistant made in Modo (one call of modo_run_python, modo_run_command, modo_set_channels ... is one undo step). Safe against the user's own work: if the newest undo step is not the bridge's because something was changed in Modo since, nothing is undone and the answer says so. A call that fails is already undone automatically.

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

Input Schema

NameRequiredDescriptionDefault
instanceNoThis chat's Modo instance token (modo-xxxxxx) from modo_use_instance or modo_launch_instance. Pass it on every call once you have one; leave empty only while a single chat works with Modo.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the destructiveHint/readOnlyHint annotations by disclosing the guardrail logic: it will not touch the user's own work, it silently no-ops (with an explanatory answer) when the top undo step is not the bridge's, and failed calls are already rolled back automatically. These are non-obvious behaviors an agent needs to interpret results correctly.

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 tight sentences, each carrying distinct information — the action and its granularity, the safety guard, and the failure semantics — with the core purpose front-loaded and no filler.

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 mutation tool whose annotations already flag destructiveness and whose output schema covers return values, the description supplies everything else an agent needs: what counts as an undo step, when nothing happens, and what happens on failure.

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?

With a single parameter and 100% schema description coverage, the schema already documents the instance token. The description adds nothing about the parameter, so the baseline of 3 applies.

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 resource ('Undo the newest change the assistant made in Modo') and defines the unit of work precisely, naming the sibling calls (modo_run_python, modo_run_command, modo_set_channels) that constitute one undo step. An agent can distinguish this from other Modo tools without inspecting the schema.

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?

The context for use is clear: reverting the assistant's most recent bridge call. It also gives an implicit when-not condition — if the newest undo step does not belong to the bridge, nothing is undone — but it does not name an alternative tool or state what to do instead in that case.

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