Skip to main content
Glama

modo_rollback_action

Destructive

Undo all changes made since a recorded action was started, then close it. Halts safely if it detects an undo step that isn't the bridge's, so the user's own edits are never reverted.

Instructions

Undo every change made since modo_begin_action and close the action. Stops, and says so, when it reaches an undo step that is not the bridge's (the user changed something meanwhile), so the user's work is never undone.

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

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.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, so the description earns credit for disclosing the interesting part: rollback halts at the first non-bridge undo step and leaves the user's intervening work untouched. It is silent on the state left after a halt, e.g. whether the action stays open for retry or how a partial rollback is reported.

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 sentences, both front-loaded: the mutation is stated first and the safety guarantee second. No redundant restatement of the name or title.

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?

With an output schema available to carry return values and annotations carrying the destructive profile, the description supplies the one non-obvious behavior (halting on foreign undo steps). An agent has enough to decide to call it and to warn the user about partial rollback.

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?

There is a single parameter with 100% schema description coverage, so the schema already explains the instance token fully. The description adds no extra meaning about the token, making the baseline 3 correct.

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?

The description gives a specific verb and resource ('Undo every change made since modo_begin_action') plus a second effect ('close the action'), and anchors itself to the sibling that opens the action. An agent can distinguish this from a generic undo without reading 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?

It clearly establishes the precondition context (an action opened by modo_begin_action) and the intent (abandon that work). It does not explicitly name modo_commit_action or modo_undo_last as the alternatives or state when not to use it, so the routing is implied rather than spelled out.

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