Skip to main content
Glama

wait_for

Pauses browser automation until specified text appears or disappears, a CSS selector becomes visible, or a set delay elapses, keeping actions synchronized with page state.

Instructions

Wait until text appears, text disappears, or a CSS selector becomes visible (default timeout 10s, max 40s). Or just wait ms.

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

Input Schema

NameRequiredDescriptionDefault
msNo
textNo
tabIdNoTab ID from tabs_list. Omit for the active tab.
profileNoChrome profile: folder ("Profile 3"), nickname, or unique display name. Omit to use the current profile.
selectorNo
textGoneNo
timeoutMsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses the default 10s and max 40s timeout, but says nothing about what happens on timeout (error vs false return), whether conditions are ANDed or ORed when multiple are supplied, or whether the call blocks. Those gaps matter for a 7-parameter wait tool.

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 compact sentence that front-loads the primary condition-based behavior and appends the fixed-delay fallback. Efficient, though the compressed phrasing leaves important ambiguities unresolved.

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

Completeness4/5

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

For a 7-parameter, annotation-free, output-schema-free wait tool, the description covers the core conditions and timeout bounds. It falls short on timeout-failure behavior and multi-condition precedence, which an agent needs to invoke it reliably.

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 coverage is only 29%, so the description must compensate. It does map meaning onto most parameters — text, textGone, selector, ms, and timeoutMs — but leaves the combination/mutual-exclusivity semantics of text, textGone, and selector undefined, and says nothing about tabId or profile.

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 states a specific verb and set of conditions: wait until text appears, text disappears, or a selector becomes visible, or just wait a fixed ms. It's clear what the tool does, but it never distinguishes itself from the sibling wait_for_user, so an agent must guess which wait tool to pick.

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 phrase 'Or just wait ms' implies the two usage modes (condition-based vs fixed delay), but there is no explicit when-to-use or when-not guidance and no mention of alternatives such as wait_for_user or check.

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