Skip to main content
Glama

batch

Run multiple browser actions in one call to fill forms, click Save, and chain steps; execution stops at the first failure and returns a single diff for the whole sequence.

Instructions

Run several actions in ONE call, e.g. fill a whole form and click Save. Each step is {tool, ...args} for click/type/press/select/choose/hover/scroll/upload/wait/navigate/eval/snapshot. Stops at the first failure. Returns one diff for the whole sequence. A step can target an element that only appears mid-batch with find:{role, name} instead of ref.

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
tabNoTab id. Default: your own target tab (each agent session gets its own)
stepsYes
browserNochrome, edge, ... (only when several browsers are connected)
snapshotNoDefault returns a diff of what changed. true = full snapshot, false = nothing

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the burden and does well: it discloses fail-fast semantics ('Stops at the first failure'), the aggregated return format ('one diff for the whole sequence'), and a mid-batch targeting strategy using find:{role, name}. It stops short of stating whether steps already executed before a failure remain applied (partial-state semantics) and says nothing about approval or safety constraints for destructive steps like click or upload in production UIs.

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, front-loaded with the value proposition, then the step contract, then failure/return behavior and the advanced targeting trick. No filler.

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 compound execution tool with no output schema and no annotations, the description covers purpose, step shape, failure behavior, and return shape. The main remaining gap is partial-execution state after a mid-sequence failure, which an agent would want to know before batching destructive actions.

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 75%, and the description still adds real meaning: the steps array element shape ({tool, ...args}), the enumerated set of valid step tools, and the find-vs-ref targeting distinction for elements that appear mid-sequence. The tab, browser, and snapshot parameters are left entirely to the schema, which is acceptable given its descriptions.

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 scope ('Run several actions in ONE call') and anchors it with a concrete example (fill a whole form and click Save), which cleanly distinguishes it from the single-action siblings like click, type, and press.

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?

The example makes the intended use case clear: sequences of actions that belong together, avoiding round-trips. It doesn't explicitly say when not to batch (e.g., when you need to inspect results between steps), but the 'stops at the first failure' note plus the diff-per-sequence behavior implicitly frames that trade-off.

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