Skip to main content
Glama

rollback_transaction

Undo a failed operation by rolling back a transaction. File-backed models restore from backup; others revert via the operation journal, with unrecoverable deletions reported explicitly.

Instructions

Roll a transaction back: file-backed models are restored from the pre-transaction backup and reopened (the model_id may change - run list_open_models). Without a file backup, create/update operations are undone via the operation journal; deletions without backup cannot be undone and are reported explicitly.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
txn_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure, and it is unusually transparent about side effects: the model_id may change, models are reopened, and deletions without backup cannot be undone. It also and explains the journal fallback and the explicit reporting behavior well beyond what the tool name alone conveys.

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?

The two-sentence description is tightly structured, front-loads the main action, and then supplies the required fallback behavior in the second sentence. There is no filler or repetition, and every sentence adds useful operational detail.

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

Completeness4/5

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

For a mutation tool with no annotations and no output schema, the description covers backup restoration, model reopening, the journal-based undo path, model_id changes, and the unrecoverable deletion case and explicit this exception. The only minor gap is that it does not describe the transaction lifecycle prerequisite, such as the need for a transaction started by begin_transaction.

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?

The description never mentions txn_id specifically and schema description coverage is 0%, and txn_id carries only the title 'Txn Id.' For a single self-evident identifier parameter this is not a serious issue, but the description adds no added semantic guidance about where txn_id comes from.

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 starts with a specific verb and resource: 'Roll a transaction back,' then explains the restoration behavior for file-backed models. This clearly separates rollback_transaction from sibling tools like rollback_model, begin_transaction, and rollback_model by describing the operation at transaction scope, not just single-model rollback.

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?

The description gives conditional usage context: file-backed models are restored from backup, and the undo path uses the operation journal otherwise, and deletions without backup cannot be undone. It does not explicitly name rollback_model as an alternative for single-model rollback, so it stops just short of a fully explicit when-to-use list.

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