Skip to main content
Glama

wait_idle

Waits for an iOS screen to stop changing—such as during page loading or animations—then returns the refreshed accessibility element list.

Instructions

Wait until the screen stops changing (a page still loading, an animation), then return the list.

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

Input Schema

NameRequiredDescriptionDefault
max_wait_msNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full behavioral burden and leaves key traits unstated: what happens if the screen never settles, whether the call errors or returns early, and what 'the list' actually contains. The only behavioral cue is the settling condition itself, which is not enough for a blocking wait operation.

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; the condition comes before the return behavior. The trailing 'then return the list' is vague and slightly undercuts an otherwise tight phrasing.

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?

An output schema exists, so the return value need not be spelled out, which offsets some of the ambiguity around 'the list'. However, for a blocking wait with a configurable timeout and no annotations, the description should at minimum cover timeout behavior and the unsettled-screen outcome.

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?

The single parameter max_wait_ms has 0% schema description coverage, so the description needed to explain the timeout semantics and it does not mention the parameter at all. An agent cannot tell from either source whether exceeding the wait budget raises an error, returns partial data, or returns nothing.

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 specific verb and a precise settling condition ('wait until the screen stops changing') with two concrete examples (page loading, animation), which is enough to distinguish it from action siblings like tap or screenshot. It does not explicitly distinguish it from wait_for, but the condition-based framing is clear on its own.

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 through the parenthetical examples of loading pages and animations, which is a reasonable signal of when the tool applies. There is no guidance on when not to use it, nor any mention of the sibling wait_for, so an agent must infer whether to wait for idle versus waiting for a specific condition.

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