Skip to main content
Glama

browser_wait_for

Waits until specified text appears or a CSS selector matches after navigation or loading, so browser automation proceeds only when the page is ready.

Instructions

Wait until text appears or a CSS selector matches (after navigation/loading).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "browser_wait_for"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNo
tabIdNo
selectorNo
timeoutMsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations at all, the description carries the entire behavioral burden and falls well short. For a wait tool the critical behaviors are what happens on timeout (error vs. false return), whether the two conditions are ANDed or ORed, and polling granularity — none are disclosed. Only the rough sequencing hint '(after navigation/loading)' adds any behavioral color.

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?

One sentence, front-loaded with the action and the two match modes, with no filler. It is efficient, though the brevity borders on under-specification rather than pure economy.

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?

No annotations, no output schema, and zero schema documentation for four parameters leave the description responsible for a lot it does not cover. An agent could not determine timeout behavior or tab targeting from this definition alone, which is inadequate for a control-flow-sensitive wait primitive.

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 description coverage is 0% across four parameters, so the description must compensate and it only partially does. It conveys the meaning of 'text' and 'selector' (and implicitly that they are alternatives), but 'timeoutMs' and 'tabId' — the latter being essential for targeting the right tab — are never mentioned, and no defaults or units are given.

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?

The description names a specific verb ('Wait until') and two concrete match conditions ('text appears' or 'a CSS selector matches'), so the agent knows exactly what the tool does. It does not explicitly contrast itself with siblings like browser_snapshot or browser_click, but the waiting semantics are distinct enough that an agent can route correctly.

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?

The parenthetical '(after navigation/loading)' implies the context in which waiting is appropriate, which is genuine but thin guidance. There is no statement of when not to use it, no alternative named for the non-waiting case, and no mention of prerequisites such as an existing tab.

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