Skip to main content
Glama

undo_multiple

Destructive

Undo multiple transactions in one call, stopping early at stack depth or barrier to unwind a failed batch without errors. Compare actually_undone against requested to detect stack exhaustion.

Instructions

Walk the undo stack back N transactions in one call, stopping early at the real stack depth (or at an undo barrier) instead of erroring. Use it to unwind a whole failed batch. WARNING: compare actually_undone against requested: a smaller number is the honest signal that the stack ran out, and it is the only oracle here.

Returns: { requested: int (your input), actually_undone: int (compare against it), undo_count: int remaining }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
countNoHow many transactions to undo (>= 1). Silently capped at what the stack actually holds.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already cover the destructive/read-write profile, yet the description adds real behavior beyond them: it stops early at real stack depth or an undo barrier rather than erroring, and it flags the critical 'actually_undone < requested' oracle for detecting stack exhaustion. That is exactly the kind of non-obvious trait (clamping instead of failing) an agent cannot get from the annotations or schema.

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?

Front-loaded with the action, then usage, then the warning, then return fields. It is short and every sentence carries distinct information (what, when, caveat, return contract) with 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?

There is no output schema, so the inline 'Returns:' block spelling out requested/actually_undone/undo_count is necessary and provided. Combined with full parameter documentation and annotation coverage of the mutation profile, nothing an agent needs to call this correctly is missing.

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 100% schema coverage on the single 'count' parameter, the schema already documents the >=1 constraint and the silent capping. The description restates that capping behavior rather than adding new syntax or format detail, so baseline 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 ('Walk the undo stack back N transactions') and immediately scopes it as a multi-step variant. An agent can distinguish it from the singular 'undo' sibling and from 'redo_multiple' without opening 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?

Gives a concrete use case ('unwind a whole failed batch') and describes the early-stop condition, which is clear guidance on context. It does not explicitly name the single-step 'undo' alternative or state when not to use it, leaving the single-vs-batch routing implied.

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