Skip to main content
Glama

Run steps

batch
Destructive

Runs multiple browser tools in one call, in order, passing each step's result to the next to save round trips. Use it for known sequences like navigate, fill, submit, and read.

Instructions

Run a batch of several tools in one call, in order, passing results forward.

Saves a round trip per step for sequences you already know, such as navigate, fill a form, submit, read the result. Each step is validated when it runs, and nothing is rolled back: a browser cannot undo a click. At most 50 steps per call; refer to an earlier step's result as "$N.field". Returns every step's outcome; failed_at names the step that stopped it.

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

Input Schema

NameRequiredDescriptionDefault
stepsYesSteps to run in order, each {"tool": name, "arguments": {...}}. A string argument '$N.path' is replaced by that field of step N's result (0-based; list items by index, e.g. '$0.tabs.1.id'); '${N.path}' substitutes inside a longer string. Example: [{"tool": "navigate", "arguments": {"url": "https://example.com"}}, {"tool": "get_text_content", "arguments": {}}]
stop_on_errorNoStop at the first failing step (default). false runs every step and reports each outcome. Example: true

Output Schema

NameRequiredDescriptionDefault
stepsYes
summaryYesOne line saying what happened.
completedYesSteps that succeeded.
failed_atNoIndex of the step that stopped the batch.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the destructive/openWorld annotations by disclosing atomicity behavior ('nothing is rolled back: a browser cannot undo a click'), validation timing ('each step is validated when it runs'), the 50-step ceiling, and how failure is reported ('failed_at names the step that stopped it'). These are exactly the risk facts an agent needs before issuing an irreversible multi-step call.

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?

Front-loaded with purpose and payoff in the first two lines, then constraints and failure semantics in descending priority. Minor duplication of the '$N.field' and 50-step details already in the schema keeps it from being maximally tight.

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?

An output schema exists so return formatting need not be explained, and the description covers the risk profile, ordering, substitution, and failure reporting. It does not say which tools are valid inside a batch (e.g. whether describe_tool/search_tools must be consulted first or whether batching is nestable), which is a meaningful gap for a destructive orchestration tool.

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 100% and the schema itself already documents the step shape, the '$N.path' substitution rules, indexing, and the maxItems of 50. The description restates the '$N.field' reference syntax and the step cap without adding syntax or edge-case detail beyond the schema, so baseline 3 applies.

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 a batch of several tools in one call, in order, passing results forward') and immediately scopes it with a concrete example sequence (navigate, fill a form, submit, read the result). The phrase 'several tools in one call' also implicitly separates it from the single-tool 'call_tool' sibling.

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?

'for sequences you already know' gives a clear selection heuristic: use it for pre-planned chains, not exploratory work. It stops short of an explicit when-not statement or naming an alternative like calling tools individually, so it is clear context without full routing guidance.

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