Skip to main content
Glama

swarm_undo

Reverse a planned operation or full plan using its receipts; restores original and staged files and never deletes data.

Instructions

Reverse a plan (or one op) from its receipts. Restores originals and staged files; never deletes.

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": {
      "ref": "<ref>"
    },
    "name": "swarm_undo"
  }
}

Input Schema

NameRequiredDescriptionDefault
opNoop_id to undo only that op (optional)
refYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the key trait: it restores originals and staged files rather than removing them. It does not say what happens to files created after the plan ran, whether the operation is reversible or partial-failure tolerant, or what permissions/receipts are required.

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, zero filler, with the destructive-safety claim front-loaded in the most scannable position. Nothing could be removed without losing information.

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 state-mutating tool with no annotations and no output schema, the definition covers the core semantics but omits prerequisites (receipts must exist), failure modes, and what is returned. It is adequate to start but not sufficient to call confidently in edge cases.

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%; the required 'ref' parameter has no schema description at all. The phrase 'from its receipts' weakly implies ref identifies the plan whose receipts are replayed, and 'or one op' maps to the optional op parameter, so some meaning is added — but the mandatory parameter remains under-explained.

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 ('Reverse') and resource (a plan or a single op), plus the mechanism ('from its receipts'). It does not name any sibling or explain how it differs from swarm_execute or swarm_plan_show, so the agent must infer the boundary.

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 parenthetical '(or one op)' implies the scope choice between whole-plan and single-op reversal, which is useful. However, there is no explicit when-to-use guidance, no prerequisite (receipts must exist from a prior execution), and no alternative named.

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