Skip to main content
Glama
Pagewright (browser-mcp)

Pagewright (browser-mcp)

by zamansheikh

browser_wait_for

Pauses browser automation until a selector or text appears or disappears, or for a fixed delay, so actions run only after the page state is ready.

Instructions

Wait until a selector appears (or disappears with gone:true), text appears, or textGone disappears; or just wait time 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": "browser_wait_for"
  }
}

Input Schema

NameRequiredDescriptionDefault
goneNo
textNo
timeNoFixed wait in ms (max 60000).
tabIdNoTab to act on. Defaults to the tab last opened/selected by an agent, else the active tab.
timeoutNoDefault 10000 ms.
selectorNo
textGoneNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

B3.3/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 leaves key outcomes undisclosed. It does not say what happens when the wait times out (error, exception, or falsy return), whether the call blocks the agent's session, or whether multiple supplied conditions are combined with AND or OR semantics. For a blocking tool with zero annotation coverage, those are material omissions.

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?

A single sentence with the primary mode front-loaded and the fallback fixed-wait option last. Semicolons and the inline `time` reference keep it compact without padding; every clause names a distinct waiting mode.

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?

Given seven optional parameters, no annotations, and no output schema, the definition is barely sufficient. It tells an agent how to express a wait but not what the tool returns or how failure manifests, which an agent needs in order to branch after the call. Acceptable as a minimum, not complete.

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 only 43%, and the description compensates partially by explaining the coupling between selector and gone:true and by naming the text and textGone modes, which the bare schema cannot convey. It adds nothing about timeout beyond the schema's stated default, and nothing about tabId behavior, leaving roughly half the parameters dependent on terse schema text.

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 ('wait until') plus the exact conditions it can wait on: selector appears, selector disappears via gone:true, text appears, textGone disappears, or a fixed `time` in ms. It is clearly distinguishable from all siblings, none of which block. It stops short of 5 only because the mode list is compressed into one dense sentence rather than being enumerated as distinct capabilities.

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 by the condition list: an agent can infer it should call this before interacting with elements that may not yet exist. However, there is no explicit when-to-use statement, no guidance on choosing a wait condition over simply calling browser_snapshot or browser_get_content, and no advice on setting timeout versus relying on the 10000 ms default.

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