Skip to main content
Glama

batch

Execute multiple bridge commands as one undo step, automatically rolling back all changes if any command fails when stop_on_error is enabled.

Instructions

Run several bridge commands in one go as ONE undo step, e.g. [{"cmd": "create_node", "params": {...}}, {"cmd": "set_inputs", "params": {...}}]. If one fails (stop_on_error) the whole batch is rolled back.

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

Input Schema

NameRequiredDescriptionDefault
callsYes
stop_on_errorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

With zero annotations, the description carries the full behavioral burden and does disclose the most important trait: the batch is atomic and rolled back on failure. It omits what the caller receives back (per-call results vs a single aggregate), whether ordering is guaranteed, and what partial state is visible during execution, which is material for a mutation-heavy tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Very short and front-loaded: the atomicity benefit leads, followed by a concrete payload example, then the failure mode. The parenthetical '(stop_on_error)' is slightly awkwardly placed and introduces the ambiguity noted above, but there is no wasted prose.

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 two-parameter tool with no annotations and no output schema, the core semantics (batch shape, atomic rollback) are covered. Still missing are the return value, per-call error reporting, and where the 'cmd' strings come from — a notable gap given the opaque string-keyed payload.

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

Parameters3/5

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

Schema coverage is 0% and the 'calls' array is declared as untyped objects with additionalProperties, so the description usefully supplies the element shape ({"cmd", "params"}). However, the stop_on_error sentence is ambiguous — it reads as if rollback is tied to the flag, leaving the stop_on_error=false behavior undefined, and no valid cmd values or their relationship to sibling command tools are given.

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?

States a specific verb and resource ('Run several bridge commands in one go') and adds a distinguishing property ('as ONE undo step') that separates it from issuing individual commands via the single-command siblings. It stops short of naming an alternative tool, so the differentiation is implicit rather than explicit.

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?

The inline example implies the intended usage pattern (multiple create/set operations together), but there is no explicit when-to-use versus when-to-call-singly statement, no guidance on when not to batch, and no hint that command names can be discovered via a sibling tool. Usage is inferable but not stated.

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