Skip to main content
Glama

Run several tools in one call

run_batch

Runs up to 20 ReversePort or engine tool calls in order and returns combined results in one round trip, with field selection to shrink output and optional continue-on-error.

Instructions

Runs up to 20 tool calls in order (ReversePort's tools and engine tools) and returns their results together, so a plan of small steps costs one round trip. select keeps only the fields you need from each result (dot paths like "primary.id", "entryPoints[0].file" or "items[*].file"), which keeps the answer small. Stops at the first error unless continueOnError is true; the error says which call failed and why.

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

Input Schema

NameRequiredDescriptionDefault
callsYesThe calls, in order.
continueOnErrorNoRun the remaining calls after an error (default false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.25.0

TDQS

A4.2/5.0
Behavior3/5

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

Annotations declare this is not read-only, not idempotent, and not destructive, and the description adds real behavior: the 20-call cap, in-order execution, fail-fast default, and that errors identify the failing call. However, it never addresses the key consequence of a non-readOnly wrapper — that the batch inherits the mutating effects of whatever inner tools it invokes, so batching port_write calls is effectively destructive. That omission is material for a tool whose safety profile depends entirely on its arguments.

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 tight sentences: capability first, then the output-shaping lever, then failure behavior. Every clause carries information — the 20 limit, ordering, dot paths, and error messaging all affect how an agent writes the call.

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 no output schema, the description covers return shape (results together, filtered by select), execution order, limits, and error semantics. It leaves open how results are keyed to their input calls and whether inner tool failures are reported with partial results, both of which matter for a batching wrapper.

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 the baseline is 3; the description earns more by explaining what select actually does, with concrete dot-path examples ("primary.id", "entryPoints[0].file", "items[*].file"), and by restating continueOnError's default-false semantics in behavioral terms. It adds meaning beyond the field-level schema rather than repeating it.

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 20 tool calls in order and returns their results together — and scopes the domain (ReversePort's tools and engine tools). The rationale 'so a plan of small steps costs one round trip' implicitly contrasts it with invoking siblings one at a time, so an agent can tell it apart from engine_call or the port_* tools.

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?

Gives a clear condition for use: a plan of small steps where one round trip is preferable to many. The select and continueOnError clauses further explain how to shape the call. It does not state a when-not (e.g. that calls execute sequentially, so independent work gains nothing from batching), leaving a minor inference.

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