Skip to main content
Glama
wrave-mcp

wrave-mcp

wrave_wait_for

Pause automation until a page element or text appears or disappears, or until the page finishes loading and settles; optionally set a timeout.

Instructions

Wait until an element and/or text appears (or disappears with gone=true). With no selector/text, waits for the page to finish loading and settle.

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

Input Schema

NameRequiredDescriptionDefault
goneNoWait for it to disappear instead.
textNoText that must appear on the page (case-insensitive).
tab_idNoTab ID. Optional: defaults to the last tab you opened or used.
selectorNoTarget: @ref from the latest snapshot (e.g. "@3"), a CSS selector, or "text:Visible label".
timeout_msNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.3.0

TDQS

A4.1/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden, and it does disclose the gone flag's inverted behavior and case-insensitive text matching. However, it never says what happens on timeout (error, silent return, boolean?) or what the call yields on success, which matters for an agent that wants to act on the located element next.

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?

Two tight sentences, zero filler, with the primary operation front-loaded and the two special cases (gone, no arguments) appended in the order an agent would need them.

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?

For a wait primitive with five optional parameters and no output schema, the description should state the timeout outcome and success return value, since the agent's next step depends on knowing whether the element was actually found. The core waiting semantics are well covered, but that failure-mode gap is material.

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 80%, so most parameters are self-documenting; the description still adds real meaning by defining the empty-selector/empty-text default case and the gone inversion. The 'and/or' phrasing leaves the combined selector+text semantics ambiguous, and timeout_ms has no description in either place.

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?

States a specific verb+resource (wait for element and/or text) and covers all three modes: appearance, disappearance via gone=true, and the zero-argument page-settle case. No sibling in the list performs waiting, so an agent can identify this tool unambiguously from the description alone.

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?

Gives clear in-tool guidance on when each mode applies, notably 'With no selector/text, waits for the page to finish loading and settle,' which is non-obvious and useful. It stops short of saying when to prefer this over polling siblings such as wrave_get_tab_state or wrave_get_snapshot, and doesn't clarify the semantics of supplying both selector and text.

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