Skip to main content
Glama

batch

Run up to 20 operations in order in one call, passing earlier step results by JSON Pointer so intermediate results stay out of the response. Stops at first failure unless stopOnError is false.

Instructions

Run up to 20 operations in order in one call. An argument value { "$from": "", "path": "" } is replaced by that part of an earlier step's full result, so intermediate results never need to come back. Stops at the first failure unless stopOnError is false. Not a transaction: completed steps stay done.

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

Input Schema

NameRequiredDescriptionDefault
stepsYes
maxBytesNo
stopOnErrorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/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 behavioral burden and does well: it discloses ordered execution, a 20-step cap, stop-on-first-failure unless stopOnError is false, non-transactional completed steps, and a $from/path mechanism for reusing earlier results. It still omits authentication, rate limits, maxBytes behavior, and return-format details.

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?

The description is front-loaded with purpose and packs ordering, substitution, failure, and transaction semantics into four tight sentences. Every sentence adds actionable information with no wasted wording.

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?

For a complex batch executor with no annotations, no output schema, and 0% schema description coverage, the description covers purpose and key behavior but leaves important gaps. The required steps array item shape and maxBytes remain undefined, and return behavior is only implied.

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

Parameters3/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. It explains stopOnError and the special $from/path substitution for step arguments, but says nothing about maxBytes and does not define the required steps item structure beyond calling them 'operations'.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with 'Run up to 20 operations in order in one call', which gives a specific verb, scope, and ordering behavior. It makes clear this is a batching executor rather than a single call, though it does not explicitly name the single-call sibling as an alternative.

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 batching context is clear from 'up to 20 operations in order in one call', and the failure/transaction caveats imply when the tool is appropriate. However, it gives no explicit when-to-use versus alternatives and no when-not guidance beyond 'Not a transaction'.

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