Skip to main content
Glama
ianderso
by ianderso

undo_transaction

Destructive

Revert a past transaction after checking for conflicts; run a dry check first, then undo, or force only when discarding later edits is intended.

Instructions

Undo a past transaction, after checking whether it can be undone cleanly.

A conflict means an object was edited again after this transaction; undoing anyway throws that later edit away. The conflict check is free and runs first, so the default tells you what you are dealing with before anything changes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNoUndo even when there are conflicts. This DISCARDS edits made to those objects after the transaction. Use deliberately.
dry_runNoTrue (default) only checks whether the undo is clean. Set False to actually undo.
transaction_idYesFrom list_transactions.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

With annotations already declaring destructiveHint=true, the description adds valuable behavior beyond structured data: the conflict check is free and runs first, a conflict means a later edit was made, forcing the undo discards that later edit, and the default dry-run tells the agent what it is dealing with before changes occur. This is rich, non-redundant behavioral context.

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 compact sentences with no waste. The core purpose and safety check are front-loaded, followed by the conflict consequence and the default behavior. Every sentence earns its place.

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 destructive mutation tool with rich annotations and full schema coverage, the description supplies the missing behavioral context: conflict semantics, default dry-run behavior, and the consequence of forcing an undo. No output schema exists, so return values need not be explained, and the definition is complete enough for correct invocation.

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 100%, so the parameters are fully documented in the schema. The description does not add syntax or format details beyond what the schema already provides, so the baseline of 3 applies.

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 and resource: 'Undo a past transaction.' It adds the conflict-check behavior, making the scope precise. However, it does not explicitly differentiate this tool from related siblings like list_transactions or get_transaction, so it falls short of the top score.

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 frames the tool as an undo operation that checks for conflicts first, and explains that the default is a safe check before anything changes. This gives strong context for use, though it does not explicitly state when not to use it or name alternative tools.

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