Skip to main content
Glama

browser_wait_for

Pauses browser automation until specified text, URL, or element state conditions are met, helping synchronize actions with page changes.

Instructions

Wait until all supplied text, URL, and ref-state conditions are true.

text and url use case-insensitive substring matching. state is applied only when ref is supplied. At least one condition is required.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refNo
urlNo
textNo
stateNovisible
session_idNo
timeout_msNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

No annotations provided, so description carries the full behavioral burden. It discloses matching semantics (case-insensitive substring), conditional logic (state applies only with ref), the requirement of at least one condition, and implies a polling/wait behavior. However, it does not state blocking behavior, timeout default handling, or what happens on timeout failure.

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-loads the core action and required condition, then adds matching semantics. Four sentences, all relevant, no filler. Could be slightly more compact but the structure is clear and hierarchical.

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

Completeness3/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 values need not be explained. But with 0% schema coverage and 6 parameters, the description leaves timeout_ms, session_id, and ref state behavior insufficiently documented for an agent to call parameters correctly without additional inference.

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%, meaning the description must compensate fully for parameter documentation but fails to explain most parameters. It adds meaning to text, url, ref, and state but ignores session_id and timeout_ms entirely, leaving 2 of 6 parameters undocumented anywhere.

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 (Wait until) and the condition types (text/url/ref-state). Distinguishes itself from siblings like browser_screenshot or browser_click_ref by clearly being the synchronization/polling tool.

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?

Says 'At least one condition is required' which establishes the minimum usage, but does not state when to use this tool over alternatives like browser_status or browser_find_text. No explicit exclusions or comparative routing guidance.

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