Skip to main content
Glama

execute_transaction

Process multiple SQL queries as a single atomic transaction in CockroachDB, ensuring data consistency and integrity. Returns a success or error message for each execution.

Instructions

Execute a list of SQL queries as a single transaction.

Args: queries (List[str]): List of SQL queries to execute.

Returns: A success message or an error message.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queriesYes
Behavior2/5

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

No annotations are provided, so the description carries full burden. It mentions transactional execution but fails to disclose critical behavioral traits: whether it requires specific permissions, if it's read-only or mutative, how errors are handled (rollback on failure?), rate limits, or what 'success message' entails. This is inadequate for a tool with potential data modification.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is appropriately sized and front-loaded, with the core purpose stated first. The Args and Returns sections are structured but could be more integrated; overall, it avoids unnecessary verbosity while covering key aspects efficiently.

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

Completeness2/5

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

Given the complexity (transactional SQL execution), lack of annotations, and no output schema, the description is incomplete. It misses essential context: behavioral details (e.g., rollback, permissions), parameter constraints, and output specifics beyond 'success or error message.' This leaves significant gaps for safe and effective tool use.

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 meaning by specifying 'queries' as a 'List of SQL queries to execute,' clarifying the parameter's purpose beyond the schema's basic type definition. However, it does not detail query syntax, validation rules, or constraints (e.g., supported SQL dialects), leaving gaps in parameter understanding.

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 clearly states the tool 'Execute a list of SQL queries as a single transaction,' specifying the verb (execute) and resource (SQL queries). It distinguishes from sibling 'execute_query' by emphasizing transactionality, but does not explicitly contrast with other siblings like 'bulk_import' or 'connect_database.'

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?

The description implies usage for executing multiple queries atomically, suggesting when to use it over single-query tools. However, it lacks explicit guidance on alternatives (e.g., vs. 'execute_query' for single queries or 'bulk_import' for data loads) and does not mention prerequisites like database connection or transaction contexts.

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

Install Server

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/amineelkouhen/mcp-cockroachdb'

If you have feedback or need assistance with the MCP directory API, please join our Discord server