tool_batch
tool_batchBatch multiple independent Mako lookups into one call to reduce round-trips. Control concurrency and error behavior while preserving result order and obtaining per-op timing metadata.
Instructions
Read-only batching wrapper for independent Mako lookups. The input schema only accepts batchable read-only tools; runtime also rejects mutation tools and recursive tool_batch calls defensively. With continueOnError=true, operations run with bounded concurrency while results preserve input order; tune maxConcurrency to trade latency against shared-store pressure. continueOnError=false keeps fail-fast sequential execution. Returns labeled sub-results with per-op duration plus summary latency metadata including totalOpDurationMs and slowestOp. Use verbosity: "compact" or per-op resultMode: "summary" to return compact summaries instead of full payloads; per-op resultMode: "full" keeps the full output. Each sub-op's projectId is overridden with the parent batch's resolved project, so all ops run against one project. Use to reduce round-trips after a context_packet recommends several expansions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ops | Yes | ||
| maxOps | No | ||
| projectId | No | ||
| verbosity | No | ||
| projectRef | No | ||
| maxConcurrency | No | ||
| continueOnError | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _hints | Yes | ||
| results | Yes | ||
| summary | Yes | ||
| toolName | Yes | ||
| warnings | Yes | ||
| projectId | Yes | ||
| projectRoot | Yes |