Skip to main content
Glama

wait_for

Read-only

Pauses execution until any specified text appears on a target page, enabling synchronization with dynamic content.

Instructions

Wait for the specified text to appear on the selected page.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesNon-empty list of texts. Resolves when any value appears on the page.
pageIdYesTargets a specific page by ID.
timeoutNoMaximum wait time in milliseconds. If set to 0, the default timeout will be used.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations only supply readOnlyHint=true, so the description carries the behavioral burden. It says nothing about polling behavior, what happens when the wait times out, whether it errors or returns a status, or that the default timeout applies when 0 is passed (that detail lives only in the schema).

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?

A single front-loaded sentence with no filler. It is efficient, though its brevity is partly the source of the missing behavioral detail rather than a mark of completeness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a blocking/waiting tool with no output schema and no annotations beyond readOnlyHint, the description omits the critical question of what the tool returns or does on timeout, and whether the page must be selected first. These are real gaps for an agent deciding how to handle the result.

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%, so the schema already documents pageId, the text list with any-match semantics, and the timeout default behavior. The description adds no parameter syntax or format detail beyond what the schema provides, making the baseline 3 appropriate.

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?

States a specific verb ('Wait') and resource ('specified text ... on the selected page'), which distinguishes it from sibling reads like take_snapshot or get_console_message. It does not, however, explicitly name an alternative tool or clarify how it relates to select_page.

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

Usage Guidelines2/5

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

There is no guidance on when to prefer this over polling with evaluate_script, take_snapshot, or re-reading state. No preconditions (e.g., a page must already be selected) and no when-not-to-use conditions are given.

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