Skip to main content
Glama

Run a batch of tasks

run_batch
Destructive

Run many independent browser tasks (up to 100) in one call: pilotfish runs them one after another in its cloud browser, as browser_task would each, and collects their results together. Use it for the same kind of task over a list (each product's price, each company's careers page); for one task that spans several sites, use browser_task. The options here apply to every task unless a task sets its own. Each task is charged as a task when it runs; if credits run out the rest are skipped, never run or charged. Returns the batch's status and each task's result so far; get_batch waits for the rest, cancel_batch stops 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": {
      "tasks": "<tasks>"
    },
    "name": "run_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoA name for the batch.
waitNoWait for the result (default true). false: return the job id at once; check with get_job.
loginNoWhich of your accounts on these sites (each keeps its own sign-in, device and IP).
modelNoThe model every step runs on: gpt-6-luna (the default), gpt-5-mini or gpt-5-nano (OpenAI).
sitesNoFurther sites whose saved logins and profiles the task may use.
solveNoLet pilotfish clear CAPTCHAs and bot checks by itself. On by default; false sends every check to you.
tasksYesThe tasks, in the order to run them: each its words, or {task, start_url?, region?, model?, max_steps?, output_schema?}.
regionNoExit country for a residential IP, e.g. "us" or "in". Omit: by the site's market and your settings.
stealthNoStealth browsing (a stable device fingerprint per site and account). On by default; false turns it off for this run.
accountsNoWhich saved account on each site, e.g. {"linkedin.com":"work"} ("" the main one). Omitted: the task's words, the site's default, else pilotfish asks.
ask_modeNoHow much the task asks the person: auto (default) only what it can't do without them; manual also every choice the task leaves open; accept_all decides every choice itself from the task, the session and the site. Sign-ins, codes and unapproved final steps are the person's in every mode.
identityNoRun as this identity (idn_…, a shared project's end user): its own logins, sessions, residential IP and device. Never the values themselves.
max_stepsNoBrowser actions per task.
start_urlNoOpen this page first.
credentialsNoThe identity's saved logins to use, by id (cred_…).
wait_secondsNoLongest wait before returning (the job carries on). Default 120, or 50 for a call without a progress token.
output_schemaNoJSON Schema (root type "object") for the answer: the result then gives it as JSON (Data:).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / ask_mode
      Added value: +{
      +  "description": "How much the task asks the person: auto (default) only what it can't do without them; manual also every choice the task leaves open; accept_all decides every choice itself from the task, the session and the site. Sign-ins, codes and unapproved final steps are the person's in every mode.",
      +  "enum": [
      +    "auto",
      +    "manual",
      +    "accept_all"
      +  ],
      +  "type": "string"
      +}
  2. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already flag openWorld and destructive, but the description adds behavior the annotations cannot: tasks run one after another, each is charged individually, exhausted credits cause the remaining tasks to be skipped rather than run or charged, and the call returns partial per-task results. What is not disclosed is failure handling for an individual task (retry vs. abort) or what side effects on the target sites are implied by destructiveHint.

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 the core action and size limit, then routing, override semantics, cost, and return behavior, each in its own clause. Every sentence carries information, though the run-on middle sentence and the slightly awkward "as browser_task would each" cost it a point.

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 17-parameter nested tool with no output schema, the description covers the essentials an agent needs: what it does, when to pick it, per-task override semantics, cost exposure, and that results come back per task with get_batch/cancel_batch for the rest. Remaining gaps are individual-task failure semantics and any pagination/partial-result structure.

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 description coverage is 100%, so the schema already documents all 17 parameters and the baseline is 3. The description does add one genuinely non-schema fact — "The options here apply to every task unless a task sets its own" — which clarifies the top-level vs. per-task override relationship, but it gives no further guidance on individual options.

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 with hard scope ("Run many independent browser tasks (up to 100) in one call") and explains the execution model: sequential, in pilotfish's cloud browser, results collected together. It explicitly contrasts with browser_task, so an agent can distinguish it from the single-task sibling without opening either 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 a positive selection rule ("the same kind of task over a list — each product's price, each company's careers page") and an explicit negative rule ("for one task that spans several sites, use browser_task"). It also routes follow-up behavior to get_batch for waiting and cancel_batch for stopping.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.