Skip to main content
Glama

batch_tools

Destructive

Run multiple tool calls in one request. Pass an array of {name, arguments}; returns an array of {success, result} or {success, error} in the same order. Max 200 calls. compact=true returns only { ok, failed, results: [{tool, success, id} | {tool, success:false, error}] } — use it for bulk writes where you do not need the records back.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "calls": "<calls>"
    },
    "name": "batch_tools"
  }
}

Input Schema

NameRequiredDescriptionDefault
callsYesTool calls to run in order, max 200
compactNoReturn only ok/failed counts and per-call ids instead of full results

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / calls / description
      Added value: +"Tool calls to run in order, max 200"
    • addedInput schema / properties / calls / items / properties / arguments / description
      Added value: +"Arguments for that tool call"
    • addedInput schema / properties / calls / items / properties / name / description
      Added value: +"Name of the tool to call"
    • addedInput schema / properties / compact / description
      Added value: +"Return only ok/failed counts and per-call ids instead of full results"
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and openWorldHint=true; the description adds behavior beyond them — the 200-call ceiling, the same-order guarantee, and per-call {success, error} isolation implying one failure does not lose the others. It stops short of stating atomicity/rollback semantics or that batched destructive writes are not reversible, which is the main remaining gap for a tool flagged destructive.

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 dense sentences, front-loaded with the core action, then the return contract, then the limit and the mode switch. The embedded JSON shape is verbose but is the most information-dense way to communicate the compact output contract, and nothing is redundant.

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?

With no output schema, describing the return shapes is essential and this does it for both modes; it also covers ordering, the size cap, and partial-failure reporting. Missing is whether the batch is atomic, whether nested batches are allowed, and any warning about batching destructive calls — a notable omission given destructiveHint=true.

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 100%, so baseline is 3, but the description goes further by spelling out the actual return shape of compact=true ({ ok, failed, results: [...] } with per-call ids) rather than merely restating 'return only ok/failed counts'. It also clarifies that calls execute 'in order', adding meaning to the array that the schema does not convey.

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?

States a specific verb and resource — 'Run multiple tool calls in one request' — and immediately disambiguates itself from every sibling by being a meta-dispatch tool. An agent knows exactly what class of operation this is without opening the schema.

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?

Gives explicit routing guidance for the compact flag: 'use it for bulk writes where you do not need the records back', which tells the agent when the concise mode is appropriate versus the full-result mode. It does not say when to prefer batching over individual calls, nor does it caution that batched calls can be destructive.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.