Skip to main content
Glama

browser_wait_for

Pause browser automation until a set number of seconds pass, specified text appears, or a CSS selector is present, so scripts can synchronize with page changes.

Instructions

Wait for a condition: a number of seconds, specific text to appear, or a CSS selector.

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
selectorNo
time_secondsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and it does not deliver. It never says what happens when the condition is not met (timeout error? silent return?), what the default or maximum wait is, or which parameter wins if more than one is provided. For a blocking tool these are the exact behaviors an agent needs to avoid hanging or mis-sequencing a workflow.

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?

A single front-loaded sentence that lists the modes in a readable order with zero filler. It is efficiently sized, though the terseness is what leaves the behavioral and parameter gaps unfilled.

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?

The output schema covers return values and there are only three optional parameters, which lowers the bar. Still, with no annotations at all, the description should have explained failure/timeout semantics and parameter precedence. It describes the inputs well enough to attempt a call but not well enough to handle the failure path.

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 0%, so the description must compensate, and it partly does by naming all three parameters in prose and clarifying that 'selector' means a CSS selector and 'time_seconds' is a duration. However it never states that the parameters are mutually exclusive alternatives, nor any unit or range constraints. That mutual-exclusivity point is the single most valuable semantic detail and it is absent.

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 gives a specific verb (wait) and enumerates the three concrete condition types the tool accepts: a duration in seconds, text appearance, or a CSS selector. An agent can immediately tell this is a synchronization primitive rather than an action tool like browser_click. It stops short of naming a sibling or scoping itself against one, so it lands at 4 rather than 5.

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?

Usage is only implied: the enumeration of condition types suggests 'use this when you need to block until X', but there is no explicit statement of when to prefer this over polling with browser_snapshot or browser_evaluate. No exclusions, no prerequisites, and no guidance on whether the three parameters can be combined. An agent can infer the use case but must guess at the boundaries.

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