Skip to main content
Glama
joyous-coder

universal-db-mcp

by joyous-coder

execute_batch

Execute one SQL statement against multiple parameter sets (up to 1000) and receive affected row counts per statement. Ideal for bulk data operations; verify results with SELECT to confirm correct writes.

Instructions

批量执行同一条 SQL 的多个参数集(最多 1000 行)。需要 permissions 包含 batch。返回 affectedRowsPerStatement 数组,推荐用 SELECT 验证副作用以保证数据写入正确(v4.0 G8 流程改进)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sqlYes
paramsListYes
maxBatchSizeNo
useTransactionNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv5.0.2

TDQS

A3.9/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 full behavioral disclosure burden. It discloses the permission requirement, the row limit, the returned affectedRowsPerStatement array, and the recommended verification pattern for writes. It does not, however, mention transaction failure semantics or all side-effect behaviors, so it is strong but not exhaustive.

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 compact and front-loaded, with three sentences covering purpose, permission, and return/verification guidance. The parenthetical version/process reference adds little actionable value, so it is concise but not perfectly lean.

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 core behavior well but omits important operational details: no mention of the useTransaction default or its implications, no failure/rollback behavior, and no explanation of maxBatchSize. Given the absence of both annotations and an output schema, these gaps make the context only moderately complete.

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%, so the description must compensate, but it only adds limited meaning for paramsList and sql. It does not explain maxBatchSize or useTransaction, and the stated row limit duplicates schema maxItems info. Key parameters remain unclear.

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 clearly states a specific action: batch-execute the same SQL with multiple parameter sets, with an explicit upper bound of 1000 rows. This differentiates it from the sibling execute_query tool, which handles single-query execution.

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 provides useful context: it requires the 'batch' permission, and recommends using SELECT to verify side effects for write operations. However, it does not explicitly name alternatives or state when not to use this tool, so it falls short of full explicit guidance.

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

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/joyous-coder/universal-db-mcp'

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