Skip to main content
Glama

Many writes, one transaction

data_batch
Idempotent

Batch multiple data operations (add, update, move, delete) into one atomic transaction. Up to 200 commands execute together, with all-or-nothing rollback on failure.

Instructions

Apply up to 200 writes in ONE transaction — for seeding an app from what you already know, or filling a board in one go, instead of one call per row. Each command is exactly what you would send to data_add_item / data_update_item / data_move_item / data_delete_item, as {type, ...args}: type is add_item | update_item | move_item | delete_item. All or nothing: the first failure rolls back everything and names which command failed. The reply is one line per command ({id, seq}) — not the rows, which you already have.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actorNo
commandsYes[{type: "add_item", collection, fields, group?}, {type: "update_item", id, fields}, …] — same arguments as the single-write tools
command_idYesidempotency key — generate a fresh uuid per action

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
eotNo
seqNothe batch's last ledger position — pass it to data_changes as `since`
noteNo
countNo
reasonNo
previewNo
resultsNo
expires_atNo
failed_indexNo
request_stateNo
Behavior5/5

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

Discloses critical behavioral traits: all-or-nothing transaction with first-failure rollback and error naming, reply format ({id, seq}), and that rows are not returned. This goes well beyond the annotations, which only hint at idempotency and non-destructiveness, adding real operational context for the agent.

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?

Four dense sentences, each earning its place: purpose, command format, transaction semantics, and response format. No filler or redundancy; the description is front-loaded with the most important constraint (ONE transaction, up to 200 writes).

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

Completeness5/5

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

For a complex batch tool, the description covers the essential operational aspects: usage examples, command schema (via reference to sibling tools), transaction behavior, failure reporting, and response format. The presence of an output schema reduces the need to detail return values, and annotations handle safety hints.

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

Parameters4/5

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

Schema coverage is 67% (actor lacks description), but the description compensates by fully explaining the 'commands' array structure, linking each command to the corresponding single-write tool and enumerating the 'type' values. It also clarifies command_id as an idempotency key. The actor parameter remains undocumented in text but is self-evident via its enum.

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?

Specific verb+resource+scope: 'Apply up to 200 writes in ONE transaction' clearly states the batch-write purpose. The description explicitly differentiates from single-write tools with 'instead of one call per row' and lists the four supported write types, making the tool's role unmistakable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit use cases ('seeding an app' or 'filling a board in one go') and contrasts with alternatives ('instead of one call per row'). It also identifies the 200-write limit and implies when the tool is appropriate by mapping commands to the single-write tools.

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

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/2nd1st/open-mcp-apps'

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