Skip to main content
Glama

Batch

batch

Execute multiple tool calls in one request sequentially, stopping at the first error so failures are reported immediately.

Instructions

Run many tool calls in one request, sequentially (each one is its own undo step). Stops at the first error and reports it. Example: {ops:[{tool:"add_layer",args:{name:"Ink"}},{tool:"stroke",args:{brush:"ink",strokes:[...]}}]}

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": {
      "ops": "<ops>"
    },
    "name": "batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
opsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and discloses substantive traits: sequential ordering, fail-fast abort at the first error with that error reported, and undo granularity (each op is its own undo step). It does not say whether successfully completed ops before a failure are rolled back or what the aggregate response looks like, leaving a meaningful gap.

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 compact sentences: behavior first, failure semantics second, a concrete example last. Nothing is filler and the most decision-relevant facts are front-loaded.

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 meta-tool with one parameter and no output schema, the definition covers execution order, failure handling, and undo behavior, which is most of what an agent needs. It leaves open whether partial successful ops persist after an error and what the response contains, which matters for a dispatching tool.

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

Parameters5/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 supply meaning, and it does: the example shows that each entry pairs a 'tool' string (a sibling tool name) with an 'args' object passed through to that tool. That is exactly the semantics the bare schema ('ops' array of objects with 'tool'/'args') fails to 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?

The description names a specific capability with a precise verb and object: 'Run many tool calls in one request, sequentially.' The example payload makes concrete that it dispatches named sibling tools ('add_layer', 'stroke') with their own args, so an agent can tell this apart from calling those tools directly.

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?

It gives clear context for use: multiple operations bundled into one request, executed in order, with fail-fast on the first error. It stops short of stating exclusions (e.g., when a single direct call is preferable, or whether reads belong in a batch), so there is no explicit when-not guidance.

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