Skip to main content
Glama

begin_transaction

Start a transaction to safely batch model modifications, backing up file-backed models so rollback restores the exact prior state. Use the returned txn_id to commit or rollback.

Instructions

Start a transaction before a batch of modifications. For file-backed models the current file is saved and backed up so rollback can restore the exact pre-transaction state. Pass the returned txn_id to commit_transaction / rollback_transaction.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
model_idYes
auto_saveNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations available, the description carries the disclosure burden. It discloses a non-obvious side effect: for file-backed models, the current file is saved and backed up so rollback can restore the exact pre-transaction state. It also signals that a txn_id is returned. It stops short of clarifying auto_save behavior for non-file-backed models, but the core transactional behavior is transparent.

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 concise sentences cover action, behavioral note, and next step. There is no filler, and the key guidance is front-loaded before the side-effect explanation.

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?

The description covers the transaction lifecycle, mentions the returned txn_id despite no output schema, and explains rollback behavior. However, with no annotations and an unexplained auto_save parameter, an agent still lacks enough detail to fully understand all call configuration paths and non-file-backed behavior.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, and the description does not explain either model_id or auto_save. model_id is partly inferable from the tool context, but the auto_save boolean's meaning and effect on transaction behavior remains undocumented. An agent selecting this tool cannot confidently configure the optional parameter.

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 names a specific operation ('Start a transaction'), a resource scope ('models'), and the workflow position ('before a batch of modifications'). It distinguishes itself from commit_transaction and rollback_transaction by explicitly instructing the agent to pass the returned txn_id to those sibling tools.

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 provides an explicit condition for use ('before a batch of modifications') and the follow-up protocol ('Pass the returned txn_id to commit_transaction / rollback_transaction'). It does not include a when-not-to-use case, but the intended transactional context is clear enough.

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