Skip to main content
Glama

wait_for

Waits for an iPhone UI element whose label or value contains specified text, with timeout and optional exact matching to keep automation steps synchronized.

Instructions

Wait until an element whose label or value contains text appears.

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": {
      "text": "<text>"
    },
    "name": "wait_for"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
exactNo
timeoutNo
observe_afterNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations at all, the description carries the full behavioral burden, yet it says nothing about what happens on timeout (exception, false return, silent continuation), whether waiting blocks the caller, or how polling works. The output schema may cover the success return, but the failure/timeout behavior central to a wait tool is undisclosed.

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 or redundancy. It is efficient, though its brevity is partly under-specification rather than deliberate concision.

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 four-parameter, zero-annotation tool with no schema descriptions, the description is too thin. It omits timeout semantics, the exact-match toggle, and the observe_after flag, all of which materially change behavior.

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

Parameters2/5

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

Schema description coverage is 0%, and the four parameters carry only titles. The description clarifies `text` as a substring match against label or value, but leaves `exact` (which appears to override the contains behavior), `timeout`, and `observe_after` completely unexplained — the last two being non-obvious and high-impact.

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 gives a concrete verb and target: wait until an element whose label or value contains `text` appears. That is specific enough to distinguish it from siblings like tap_text or observe, though it never contrasts with the closely related wait_idle.

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 wait_idle or observe, no mention of prerequisites, and no note on how long to wait or what to do if the element never appears. Usage must be inferred entirely from the name and the phrase 'until ... appears'.

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