Skip to main content
Glama

browser_run_flow

Destructive

Run a multi-step flow in the tenant's hosted browser — this is the tool for portals that have no API and need a login. Steps are NAMED, not JavaScript: goto (url), type (selector + value OR secret), click (selector, optional), wait_for (selector or ms, optional), read (selector + as, optional attribute), count (selector + as). Passwords are NEVER passed in: give secret: "<name>" on a type step and list the name under secrets as { name: { provider, field } } — the value is fetched from the tenant vault at runtime, never appears in the call, the generated code or the result. Every goto address is checked BEFORE the browser starts; internal and cloud-metadata addresses are refused. Optional stealth asks Browserless to reduce automation signals; it does not solve or bypass CAPTCHA challenges. Returns what the read/count steps collected plus a per-step trace, with any secret value blanked out. Use browser_fetch_page instead when one page and no login is enough.

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

Input Schema

NameRequiredDescriptionDefault
stepsYesThe steps in order. At least one goto.
secretsNoName -> { provider, field } from the tenant vault, e.g. { "passwort": { "provider": "freelancermap", "field": "password" } }.
stealthNoEnable Browserless stealth launch mode. Does not solve CAPTCHA challenges.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, but the description adds substantial behavior the annotations cannot convey: the steps are a named DSL rather than JavaScript, secrets come from the tenant vault at runtime and never appear in the call, generated code, or result, goto addresses are pre-validated before the browser starts with internal/cloud-metadata refused, and stealth explicitly does not bypass CAPTCHA. It also states the return shape (read/count values plus per-step trace with secrets blanked).

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 the alternative routing, then the DSL, then security and stealth caveats — every sentence carries new information and nothing is repeated from the schema verbatim. It is dense and dash-heavy, but the density is justified by the amount of non-obvious behavior being disclosed.

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

Completeness5/5

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

For a destructive, open-world tool with no output schema and a nested, untyped steps parameter, the description covers usage scope, step vocabulary, secret handling, SSRF protection, stealth limits, and return contents. An agent could invoke this correctly from the description alone.

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?

Top-level schema coverage is 100%, but the nested steps array has no item schema, and the description carries that load by enumerating the step kinds and their fields (goto/url, type/selector+value or secret, click, wait_for, read/attribute/as, count/as) plus the secrets mapping shape. Remaining gaps are per-step mechanics such as selector syntax or what happens on multiple matches, so it stops short of full coverage.

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 multi-step flow in the tenant's hosted browser') and immediately scopes it to 'portals that have no API and need a login'. It also names the sibling it is not, so it is distinguishable from browser_fetch_page 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 an explicit use condition (portal with no API and a login required) and an explicit alternative with its own condition: 'Use browser_fetch_page instead when one page and no login is enough.' Both the when and the when-not are stated.

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.