Skip to main content
Glama
This connector has been deprecated

Wait

browser_wait
Read-onlyIdempotent

Wait briefly for page activity. ms (or durationMs) must be 0–30000; negative values are INVALID_ARGUMENT. Values above 30000 are INVALID_ARGUMENT. Sending both ms and durationMs is INVALID_ARGUMENT. The result reports waitedMs and clamped. If urlIncludes is set and the tab URL does not contain it before the wait ends, the call returns TIMEOUT. After release_control, wait returns HUMAN_HAS_CONTROL even if a JavaScript dialog is still open. While the agent has control and a JavaScript dialog is open, wait returns DIALOG_PENDING. A second release returns ALREADY_RELEASED.

Input Schema

NameRequiredDescriptionDefault
msNoWait duration in milliseconds (0–30000).
sessionIdYes
durationMsNoAlias for ms (0–30000). Do not send both.
urlIncludesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Annotations already establish readOnly, idempotent, non-destructive behavior, and the description adds substantial extra context: value bounds, the mutual-exclusion rule, the returned waitedMs/clamped fields, and explicit outcome codes for TIMEOUT, HUMAN_HAS_CONTROL, and DIALOG_PENDING. Nothing contradicts the annotations.

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?

Front-loaded with purpose, then validation, then result and outcome codes — a sensible order with little filler. The closing sentence about a 'second release' returning ALREADY_RELEASED describes browser_release_control behavior rather than wait behavior, so it is marginal noise for this tool.

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?

With no output schema, the description usefully explains that the result reports waitedMs and clamped and enumerates the failure modes. It is nearly complete for a 4-parameter tool, missing only what sessionId means and what happens if neither ms nor durationMs is supplied (the default wait length).

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 50% (ms and durationMs are documented; sessionId and urlIncludes are not), and the description compensates by spelling out the 0–30000 bounds, the INVALID_ARGUMENT conditions for negatives, oversize values and sending both fields, plus the TIMEOUT semantics of urlIncludes. Only sessionId is left without any explanation anywhere.

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 opening sentence gives a specific verb and resource ('Wait briefly for page activity'), which is distinguishable from mutating siblings like browser_click or browser_navigate. However, 'page activity' is slightly misleading since the tool takes a fixed duration rather than detecting load/network activity, so the agent must read further to learn it is a timed sleep.

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 implied through the urlIncludes parameter (wait until a URL substring appears) and the error codes, but there is no explicit statement of when to call wait versus browser_observe or browser_get_status, nor any prerequisites such as needing an active session.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources