Skip to main content
Glama
rajarshi-personal

Portable Database MCP

execute_transaction

Destructive

Commit multiple parameterized DML statements as one atomic transaction, rolling back every change if any statement fails.

Instructions

Commit a bounded list of {sql, params} DML statements atomically; rollback on failure.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
databaseYes
statementsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false and destructiveHint=true, so the safety profile is covered. The description adds genuinely new behavior: it commits atomically and rolls back on failure, which tells the agent about failure semantics not present in the annotations. Remaining gaps (what "bounded" means, size cap, partial-failure details) are minor.

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 compact sentence with the core action (atomic commit) front-loaded and the failure behavior appended. Every clause carries information; there is no filler.

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?

An output schema exists, so return values need not be described, and annotations carry the destructive/non-idempotent profile. The description supplies the essential atomic-commit/rollback contract for a mutation tool. It falls just short by not clarifying the database parameter or what bounds the statement list.

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 compensate. It adds real meaning by defining the item shape as {sql, params}, which the opaque schema (additionalProperties: true) does not convey. However, it never explains the required "database" parameter or the semantics/limits of the statements array, leaving the compensation partial.

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?

States a specific verb (commit) and resource (a list of {sql, params} DML statements) with the atomicity qualifier, so the agent understands this is multi-statement transactional execution. It does not explicitly name or contrast with the sibling execute_sql, which likely handles single statements, so sibling differentiation is only implied.

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?

"Atomically" and "bounded list" imply the use case (multiple DML statements that must succeed or fail together), but there is no explicit when-to-use guidance, no contrast with execute_sql/query_sql, and no stated prerequisites or limits. Usage must be inferred from the atomicity wording.

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