Skip to main content
Glama

batch

Run multiple JSX-routed portal tools in one round-trip and one atomic undo group, with optional stop-on-error and per-operation results.

Instructions

Run many portal tools in ONE round-trip and ONE undo group (atomic: a single Undo reverts the whole batch). stopOnError (default true) halts at the first failing op. Only JSX-routed mutation/read tools are allowed — not render_frame, whisper, import_folder, run_jsx, reload_host, or batch itself. Returns per-op results plus appliedCount/failedAt.

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

Input Schema

NameRequiredDescriptionDefault
instanceNoTarget a specific AE when more than one is connected (e.g. "2026", "2025", or a major like "26"). Omit when only one AE is open — see list_instances.
operationsYesOrdered ops to run in one undo group. Each: { tool: <portal tool name>, args: <that tool's arguments> }.
stopOnErrorNoWhen true (default), the batch stops at the first failing op and reports failedAt + notAttempted; when false, every op is attempted and per-op errors are collected.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.7/5.0
Behavior4/5

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

With no annotations provided, the description carries the full behavioral burden and does so well: atomic undo grouping, per-op error collection when stopOnError=false, and the failure report fields are all disclosed. It stops short of saying what happens to already-applied ops when an error occurs with stopOnError=false (is the undo group still applied?), and never mentions the 500-op cap or ordering guarantees.

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 dense sentences, front-loaded with the primary value proposition, then constraints, then return shape. No filler and no repetition of the schema's wording.

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 batch dispatcher with no output schema, the description supplies the return shape (per-op results plus appliedCount/failedAt) and the error-reporting contract, which is what an agent most needs. Mildly incomplete on partial-failure undo semantics and the maxItems ceiling, both of which matter for planning a large batch.

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

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, but the description still adds real meaning: stopOnError's default and halt-vs-collect behavior, that args are validated against each sub-tool's own schema, and that a per-op instance is disallowed. That is meaning beyond the schema, not a restatement of 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 ("Run many portal tools") plus the two defining properties: one round-trip and one undo group with atomic revert. It also draws a hard boundary against named siblings, so an agent can distinguish it from set_property_batch, run_jsx, or render_frame without opening another schema.

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 allow-list (JSX-routed mutation/read tools) and an explicit deny-list (render_frame, whisper, import_folder, run_jsx, reload_host, batch itself), plus the stopOnError condition that controls halting. The only inference left is whether to batch at all, which the one-round-trip/one-undo framing answers.

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

Deploy Server

Other Tools