Skip to main content
Glama

wb_wait

Pause execution until page text, CSS selector, or document ready state is achieved, preventing premature actions in web automation.

Instructions

Wait until text appears, CSS selector matches, or document is ready (timeout).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textNoSubstring to wait for in document.body.innerText
sessionNoPer-call session override (does not change the process default)
selectorNoCSS selector to wait for
timeoutMsNoTimeout ms (default 15000)
intervalMsNoPoll interval ms (default 400)
Behavior3/5

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

No annotations are provided, so the description must carry the transparency burden. It discloses the timeout aspect but does not clarify what happens on timeout (e.g., error thrown, boolean returned, or null) nor whether the tool waits for all conditions simultaneously or any one of them. This leaves important behavioral details ambiguous.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, concise sentence that directly conveys the tool's purpose and key conditions. There is no redundancy or filler, every word earns its place.

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 simple wait tool with no output schema, the description covers the main behaviors (wait conditions and timeout). The only gap is the lack of detail on timeout behavior and the somewhat ambiguous 'document is ready' phrase, but overall it is sufficient for this tool's simplicity.

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 100%, meaning every parameter already has a description in the schema. The tool description adds no extra semantics beyond mentioning 'text', 'CSS selector', and 'timeout', which are already covered by the schema's parameter descriptions. Thus, the description does not add value beyond the schema.

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?

The description clearly states the tool's function with a specific verb ('wait') and lists three concrete conditions (text appears, CSS selector matches, document is ready) along with a timeout. This distinguishes it from siblings like wb_navigate or wb_click, which perform different actions.

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

Usage Guidelines4/5

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

The description provides clear context on when to use the tool: to wait for text, selector, or document readiness. It does not explicitly mention alternatives or when not to use it, but the conditions are self-explanatory and typical for synchronization, making the usage almost self-evident.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Nimm0ny/kimi-webbridge-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server