Skip to main content
Glama

await-screen-idle

Read-only

Blocks until the screen has rendered stable content before screenshots or taps, returning settled status or a timeout result.

Instructions

Block until the screen has rendered content and held it for minStableMs, or the timeout elapses. It polls the same element tree as describe. Use when a launch or navigation must finish rendering before a screenshot or tap. Returns { settled, waitedMs, polls, note? }. If that is not seen before timeoutMs, it returns settled=false instead of failing.

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": {
      "udid": "<udid>"
    },
    "name": "await-screen-idle"
  }
}

Input Schema

NameRequiredDescriptionDefault
udidYesTarget device id from `list-devices` (iOS UDID, Android serial, Vega serial, or Chromium id).
timeoutMsNoMax time to wait for the screen to settle before giving up (default 3000). Maximum: 120000. Must be greater than 0.
minStableMsNoThe screen must hold the same content for at least this long to count as settled (default 250); 0 settles on the first non-empty read. Range: 0 to 10000.
pollIntervalMsNoHow often to re-read the tree (default 200). Range: 50 to 5000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / minStableMs / description
      Previous value: -"The screen must hold the same content for at least this long to count as settled (default 250)."New value: +"The screen must hold the same content for at least this long to count as settled (default 250); 0 settles on the first non-empty read. Range: 0 to 10000."
    • changedInput schema / properties / pollIntervalMs / description
      Previous value: -"How often to re-read the tree (default 200)."New value: +"How often to re-read the tree (default 200). Range: 50 to 5000."
    • changedInput schema / properties / timeoutMs / description
      Previous value: -"Max time to wait for the screen to settle before giving up (default 3000)."New value: +"Max time to wait for the screen to settle before giving up (default 3000). Maximum: 120000. Must be greater than 0."
    • changedInput schema / properties / udid / description
      Previous value: -"Target device id from `list-devices` (iOS UDID, Android serial, or Chromium id)."New value: +"Target device id from `list-devices` (iOS UDID, Android serial, Vega serial, or Chromium id)."
  2. First observedv0.15.0

TDQS

A4.1/5.0
Behavior5/5

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

Beyond readOnlyHint=true, the description discloses the polling mechanism, the exact return shape ({ settled, waitedMs, polls, note? }), and the important non-obvious failure mode: it returns settled=false instead of throwing on timeout. That non-failing behavior is the kind of detail an agent cannot get from annotations or schema and would otherwise handle incorrectly.

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?

The blocking condition and the timeout outcome are front-loaded, and the usage sentence follows logically. Slightly padded by restating the polling return field after already describing polling behavior, and the mid-sentence line break splits a related idea.

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

Completeness5/5

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

With four parameters fully documented by the schema, no output schema, and readOnlyHint supplied, the description covers everything an agent needs: what it waits for, how it terminates, and what it returns. No meaningful gap remains for a blocking wait tool of this complexity.

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 100%, so the schema already defines timeoutMs, minStableMs, and pollIntervalMs with defaults and ranges. The description reinforces the relationship between minStableMs and 'settled' and names timeoutMs in the failure case, but adds no syntax or format detail beyond the structured fields — baseline 3 is 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?

A specific verb+condition ('Block until the screen has rendered content and held it for minStableMs') plus a precise notion of settling, and it explicitly ties itself to `describe` as the same element tree. It stops short of distinguishing itself from the other await-style siblings such as `await-ui-element` or `await-network-request`, so an agent must infer which await primitive fits.

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?

'Use when a launch or navigation must finish rendering before a screenshot or tap' gives a clear triggering context and pairs naturally with `screenshot`/tap flows. There is no explicit when-not guidance and no named alternative for element- or network-based waiting, so the routing is helpful but not exhaustive.

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