Skip to main content
Glama

batch

Run multiple browser actions sequentially in one turn, including click, fill, type, select, press, wait, sleep, and evaluate, to complete automation steps without separate calls.

Instructions

Run sequential actions in one turn. Valid actions: click, fill, type, select, press, wait_for, sleep, evaluate (fields: selector, ref, text, value, key, state, ms, force, expression, main_world, timeout_ms).

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

Input Schema

NameRequiredDescriptionDefault
tabNo
actionsYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose meaningful behavior: actions execute sequentially and the valid action set is enumerated. Critical traits are missing, though: what happens when an action fails (abort vs. continue), whether the batch is atomic, any action-count limit, and whether results are returned per action.

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?

Two sentences, front-loaded with the core purpose, and the field list is compact. The parenthetical field enumeration is dense and unmapped to specific actions, which slightly hurts scannability but no sentence is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a batching tool with a free-form nested actions array, 0% schema coverage, and no annotations, the description omits the per-action object shape, failure/partial-failure semantics, and the meaning of `tab`. The output schema covers return values, but the input-side gaps are substantial enough that an agent could construct a malformed call.

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

Parameters2/5

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

Schema coverage is 0%, so the description must compensate; it does list possible per-action fields (selector, ref, text, value, key, state, ms, force, expression, main_world, timeout_ms), which is real added meaning. But it never explains how an action is designated inside each array object (i.e., the action-name key), nor what the `tab` parameter does, leaving the most important structural question answerable only by trial.

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 scope ('Run sequential actions in one turn') and enumerates the exact action vocabulary, which implicitly distinguishes it from the single-action siblings like click or type. It stops short of explicitly saying 'use this instead of N separate calls', so the differentiation is inferable rather than stated.

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?

'In one turn' implies the use case of combining multiple steps into a single call, which is usable guidance. However, there is no explicit when-to-use/when-not, no guidance on how many actions are reasonable, and no mention of when to prefer individual sibling tools over batching.

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