Skip to main content
Glama

Undo Action

undo_action
Destructive

Reverse an agent action by its action id, if nobody changed it since.

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": {
      "action_id": "<action_id>"
    },
    "name": "undo_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
action_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the write/irreversible profile is covered structurally. The description adds one genuinely useful behavioral trait beyond that: the undo only succeeds if the action hasn't been modified since, a concurrency guard not visible in annotations. It omits failure semantics, partial-reversal behavior, and confirmability of the result.

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?

A single sentence with the verb and subject front-loaded and no wasted words; the precondition is folded in efficiently.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, non-read-only mutation with no output schema, the description says nothing about what is restored or destroyed, whether the reversal is complete, or what the caller receives on success versus conflict. Its brevity leaves real gaps an agent would need to guess at.

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 description coverage is 0%, so the description must carry parameter meaning, and it only restates that the id refers to an agent action. It doesn't indicate where an agent obtains action_id (plausibly the agent_activity sibling) or how stale ids behave. The schema does supply format and pattern, which keeps this at a minimum-viable 3 rather than lower.

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 ("Reverse") and resource ("an agent action") identified by an action id, which is clear enough for an agent to know exactly what the tool does. No sibling among the listed tools performs undo, so differentiation is implicit rather than stated, keeping it just short of a 5.

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?

Usage is implied by the purpose plus the precondition "if nobody changed it since," which hints at when the call will succeed. However, it never says when to reach for this versus alternatives (e.g., re-issuing a correcting action) nor what to do if the precondition fails.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources