Skip to main content
Glama

Batch tools

batch_tools
Destructive

Run several tool calls in one request. Pass { calls: [{ name, arguments }] }. Returns a per-call array of { success, result | error }. Cannot nest batch_tools.

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
callsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, openWorldHint=true and idempotentHint=false, so the agent knows this is a side-effecting, non-idempotent, open-world tool. The description usefully adds the return shape ({ success, result | error }) and the nesting restriction, but omits critical behavior for a mutating batch: whether execution stops on first failure, whether calls run in order, and whether a retry re-executes already-succeeded calls.

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 short sentences: purpose, payload format, return format and a constraint. Everything is front-loaded with zero filler, and each sentence carries distinct information an agent needs.

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?

For a one-parameter dispatcher with no output schema, the description supplies the input shape, the return shape and the nesting prohibition, which covers the essentials. Remaining gaps are failure/ordering semantics and batch-size limits, which matter for a destructive, non-idempotent tool but are secondary to getting the call right.

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 description coverage is 0%, and the schema itself only declares an array of objects with 'name' and 'arguments'. The description compensates by showing the concrete shape { calls: [{ name, arguments }] }, clarifying that 'name' is the target tool's name rather than an arbitrary label. It does not explain whether arguments must match that tool's schema, which keeps it shy of a 5.

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 opens with a specific verb and resource ('Run several tool calls in one request') and immediately shows the payload shape, so an agent knows this is a batch dispatcher rather than another create_* sibling. The scope ('in one request') distinguishes it from sequential individual tool calls.

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 first sentence implies the use case (combine multiple calls into one request), and 'Cannot nest batch_tools' gives one explicit exclusion. However, it never states when to prefer batching over invoking siblings directly, nor any limit on how many or which calls can be batched, so the guidance is implied rather than stated.

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.

Resources