Skip to main content
Glama

Wait for Android UI

mobile_ui_wait
Read-onlyIdempotent

Wait for a specific UI element to appear on an Android device by polling accessibility nodes, with configurable timeout and matching criteria.

Instructions

Poll until a matching accessibility node appears or the bounded timeout expires.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textNo
exactNo
pollMsNo
serialYesExact ADB serial from mobile_devices_list; never inferred when multiple devices exist
displayIdYesAndroid framework logical display ID, not a SurfaceFlinger physical ID
timeoutMsNo
resourceIdNo
contentDescriptionNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
foundYes
matchesYes
attemptsYes
elapsedMsYes
Behavior4/5

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

Annotations already provide readOnlyHint=true and idempotentHint=true, confirming safety. The description adds the polling mechanism and bounded timeout, which clarifies behavior beyond annotations. No contradictions.

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?

The description is a single, clear sentence with no unnecessary words, front-loading the core functionality effectively.

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?

While the description covers the basic polling behavior, it omits details about return values, error handling, and parameter interactions. The existence of an output schema partially mitigates this, but the description alone is insufficient for complete understanding.

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 only 25%, leaving most parameters (e.g., text, exact, pollMs) undocumented. The description does not explain any parameter or add meaning beyond the schema, failing to compensate for low coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool polls (verb) until a matching accessibility node appears (resource) or timeout expires, which is specific and distinct from siblings like mobile_ui_find (snapshot) or mobile_ui_snapshot (capture).

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?

The description implies usage for waiting on UI elements but does not explicitly state when to use this tool versus alternatives like mobile_ui_find or mobile_ui_snapshot, nor when not to use it.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Zyzto/polyscreen-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server