Skip to main content
Glama

wait_for

Read-onlyIdempotent

Waits for specified text to appear on a page (up to 15 seconds) or for a set number of seconds, so browser automation actions stay in sync with page state.

Instructions

Wait until text appears on the page (up to 15s), or just wait seconds.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "session_id": "<session_id>"
    },
    "name": "wait_for"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNo
secondsNo
session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so safety is covered. The description adds genuinely new context — the 15-second timeout cap and the fact that the two modes are alternatives — but omits the most important behavioral detail for a wait tool: what happens on timeout (error, empty result, or silent return).

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 two clearly separated modes and a hard bound (15s) front-loaded. No filler words and nothing to trim.

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?

With no output schema and no annotations describing returns, the definition should say what the tool yields when text appears versus when the 15s elapses. It is adequate for a simple read-only tool but leaves the key failure-mode behavior for a synchronization primitive unspecified.

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 0%, so the description carries the burden; it explains that 'text' is the string awaited on the page and 'seconds' is a plain delay (default 2). However, the required 'session_id' parameter gets no mention, and the interaction between text and seconds (both supplied? precedence?) is left unspecified.

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 names a specific verb and resource ('wait until text appears on the page') and clarifies the alternative mode ('or just wait seconds'), which is enough to distinguish it from siblings like click or read_text. It stops short of explicitly naming a contrasting sibling, but the two operating modes are unambiguous.

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 two modes — wait for text, or wait a fixed duration — but there is no explicit guidance on when to prefer one over the other, nor when to use this versus alternatives such as snapshot or find. An agent must infer that 'text' mode is for synchronization and 'seconds' for a blind delay.

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