Skip to main content
Glama
clivejefferies

mobile-debug-mcp

wait_for_ui

Wait for UI elements to appear or become clickable, ensuring the interface is ready before performing actions.

Instructions

Purpose: Resolve elements and/or detect that a UI transition or availability condition has occurred.

Capabilities:

  • Deterministic element resolution

  • Synchronization when element timing or availability is uncertain

Constraints:

  • Does not verify correctness of the resulting state

  • Must not be used alone to confirm action success when an applicable expect_* tool exists

Recommended Usage:

  1. Use wait_for_ui to resolve an element before acting or to wait for UI readiness

  2. Call the action tool

  3. If the expected outcome is known, follow with expect_* as final verification

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
matchNo
retryNo
deviceIdNoOptional device serial/udid
platformNoOptional platform override
selectorNo
conditionNoexists
timeout_msNo
poll_interval_msNo
Behavior4/5

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

Without annotations, the description discloses that it does not verify correctness of the resulting state and is deterministic. This adds behavioral context beyond the schema, though it lacks edge-case or error behavior details.

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 description is well-structured into clear sections (Purpose, Capabilities, Constraints, Recommended Usage) with no redundancy. Minor inefficiency: the phrase about deterministic element resolution appears twice.

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?

Given 8 parameters, nested objects, and no output schema, the description provides high-level purpose and constraints but lacks details on parameter interplay, return value, and error conditions, leaving significant gaps.

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% (only 'contains' subfield described). The description does not explain parameters like match, retry, selector, condition, or timeout beyond their schema defaults, 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 resolves elements and detects UI transitions/conditions, with a specific verb and resource. It distinguishes from siblings like wait_for_screen_change by focusing on element-level synchronization.

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

Usage Guidelines5/5

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

Explicit recommended usage steps are provided: resolve element, call action, then verify with expect_*. Also states a constraint: not to be used alone when expect_* exists, providing clear when-to-use and when-not.

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/clivejefferies/mobile-debug-tools'

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