Skip to main content
Glama

callManyTool

Run up to 50 independent tool calls across servers in one bounded parallel batch, returning results in input order and preserving partial results on failures.

Instructions

Runs up to 50 tool calls in one bounded fan-out (8 concurrent) and returns results in input order. Use it when several calls are independent - across servers or within one - and you want one round trip instead of N. Each item is {server, tool, arguments}; server and tool names are the ones readToolFile shows. A failed item returns ok=false with its error and never cancels its siblings, so a partial result is still usable. Do NOT use it when one call depends on another call's result: write an executeTool script for that. BUDGET: optional timeout in seconds caps the whole batch; omitted uses MCP_GWAY_EXEC_TIMEOUT, then 120s. Unfinished calls return ok=false with error.type=TimeoutError.

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

Input Schema

NameRequiredDescriptionDefault
callsYesIndependent tool calls to run in parallel. Results come back in this order.
timeoutNoWall-clock budget in seconds (float) for the whole batch. Omit to use MCP_GWAY_EXEC_TIMEOUT, then the 120s default. Finished calls keep their results; unfinished calls return ok=false with error.type=TimeoutError.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv6.8.0
    • addedInput schema / properties / timeout
      Added value: +{
      +  "description": "Wall-clock budget in seconds (float) for the whole batch. Omit to use MCP_GWAY_EXEC_TIMEOUT, then the 120s default. Finished calls keep their results; unfinished calls return ok=false with error.type=TimeoutError.",
      +  "exclusiveMinimum": 0,
      +  "type": "number"
      +}
  2. Addedv6.1.1

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses concurrency (8), ordering guarantees, failure isolation ('never cancels its siblings', partial result usable), timeout precedence (explicit > MCP_GWAY_EXEC_TIMEOUT > 120s), and the TimeoutError shape. Residual gap: it never notes that the wrapped calls may be mutating/destructive, and the per-item success shape beyond ok=false is only implied.

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?

Front-loaded with capability and limits, then use/do-not-use, then the item shape, then budget semantics. Every sentence carries a distinct fact (concurrency, ordering, isolation, timeout chain) with no filler.

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 two-parameter fan-out tool with no output schema, the description covers selection, batching limits, per-item failure semantics, and timeout behavior. It falls short only on what a successful item returns and any payload-size ceiling, which matter given 50-call batches.

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; the description earns extra by explaining the item shape {server, tool, arguments} and clarifying where valid server/tool names come from. One inconsistency: it points at readToolFile for names while the schema says server is 'as listed by listToolFiles', which is a real naming ambiguity the agent must resolve.

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 ('Runs up to 50 tool calls in one bounded fan-out'), plus hard constraints (50 cap, 8 concurrent) and result ordering. It is clearly distinguishable from executeTool, which it explicitly routes dependent-call cases to.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit when-to-use condition ('several calls are independent - across servers or within one') and an explicit when-not condition with the named alternative ('Do NOT use it when one call depends on another call's result: write an executeTool script'). No inference required.

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