Skip to main content
Glama

browser_wait

Pause automation until a CSS selector becomes visible, ensuring page elements are ready before the next action. Specify the selector and an optional timeout to keep steps reliable.

Instructions

Wait for a CSS selector to become visible.

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": {
      "selector": "<selector>"
    },
    "name": "browser_wait"
  }
}

Input Schema

NameRequiredDescriptionDefault
selectorYes
timeoutMsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and falls short: it never states what happens when the selector never becomes visible (error, false return, throw), whether it polls, or whether it blocks. The distinction between 'visible' and merely 'present in the DOM' is implied but not confirmed.

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 with no filler, and the key condition ('become visible') is stated immediately. It is efficient but borders on under-specification given the unspecified failure behavior.

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?

For a blocking wait primitive with no annotations and no output schema, an agent needs to know the timeout default and the failure signal in order to handle it correctly. Neither is provided, leaving a meaningful operational gap despite the tool's apparent simplicity.

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% on two parameters. The description clarifies 'selector' only indirectly by tying it to CSS and to visibility, but says nothing about 'timeoutMs' (units are implied by the name, yet defaults and timeout behavior are absent). It does not compensate for the coverage gap.

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 concrete verb and target ('Wait for a CSS selector') plus a precise success condition ('become visible'), so an agent can tell exactly what the tool does. It does not name or contrast any sibling, but no other listed tool performs a wait, so differentiation is largely unnecessary.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this versus taking a snapshot or screenshot, no mention of prerequisites such as a page needing to be open, and no stated condition for choosing it. The agent must infer that this is a pre-step before clicking or filling a dynamic element.

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