Skip to main content
Glama

ai_batch

Executes multiple tool calls in sequence within one request, halting at the first failure and reporting which call failed.

Instructions

Run several tool calls in one request, in order. Stops at the first failure and reports which call failed. Accepts both consolidated names (ai_component) and the internal ones (ai_component_add).

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": "ai_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
callsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.1

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses sequential execution, fail-fast on first error, and that the failing call is identified. It does not address atomicity (are earlier successful calls rolled back?), whether partial results are returned, side-effect scope, or permission requirements — significant gaps for a tool that executes arbitrary mutations.

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, front-loaded with the core action, then behavior, then an edge case an agent would otherwise stumble on. No filler and nothing restated from the schema.

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 meta-tool with no annotations and no output schema, the description covers execution order, failure semantics, and naming conventions reasonably well. It leaves the return shape (per-call results? the failing call's error body?) and rollback behavior unexplained, which an agent needs before composing a multi-call batch.

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?

Only one top-level parameter, whose inner shape the schema already documents with 'Tool name' and 'Tool arguments'. The description adds genuinely new meaning for the 'tool' field: it accepts both consolidated names (ai_component) and internal ones (ai_component_add), which is not expressible in the schema. It does not clarify argument passing or ordering semantics per call.

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 a specific verb and resource: 'Run several tool calls in one request, in order.' That is unambiguous and clearly distinct from the single-purpose siblings (ai_component, ai_asset, ai_build). It does not explicitly say how it relates to those siblings, which keeps it from a 5.

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?

Batching 'in one request' implies the situation where this tool is preferable, but there is no explicit when-to-use or when-not-to-use guidance and no alternative named. The fail-fast behavior is stated, which indirectly tells the agent calls must be independent, but this must be inferred rather than read.

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