Skip to main content
Glama

ios_wait_for_element

Wait for a UI element to appear on iOS simulator before interacting with it. Polls until the element is found or timeout occurs, ensuring screen readiness for automated testing.

Instructions

Wait for a UI element to appear on iOS simulator. Polls until found or timeout. Requires IDB (brew install idb-companion). Use this FIRST after navigation to ensure screen is ready, then use find_element + tap.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
labelNoExact accessibility label match
labelContainsNoPartial label match (case-insensitive)
valueNoExact accessibility value match
valueContainsNoPartial value match (case-insensitive)
typeNoElement type to match (e.g., 'Button', 'TextField')
indexNoIf multiple elements match, select the nth one (0-indexed, default: 0)
timeoutMsNoMaximum time to wait in milliseconds (default: 10000)
pollIntervalMsNoTime between polls in milliseconds (default: 500)
udidNoOptional simulator UDID. Uses booted simulator if not specified.
Behavior3/5

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

With no annotations provided, the description carries full burden. It discloses key behavioral traits: polling mechanism, timeout behavior, and external dependency ('Requires IDB'). However, it doesn't mention error handling, what happens on timeout, or the return format/value when element is found.

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 perfectly front-loaded and concise. Three sentences cover purpose, mechanism, dependency, and usage sequence with zero wasted words. Every sentence earns its place by adding distinct value.

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?

For a 9-parameter tool with no annotations and no output schema, the description provides good purpose and usage context but lacks details about return values, error conditions, and timeout behavior. It's adequate but has clear gaps given the tool's 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 description coverage is 100%, so the schema already documents all 9 parameters thoroughly. The description adds no parameter-specific information beyond what's in the schema. The baseline of 3 is appropriate when schema does the heavy lifting.

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's purpose with specific verb ('Wait for') and resource ('UI element on iOS simulator'), including the polling mechanism. It distinguishes from sibling tools like 'ios_find_element' by emphasizing the waiting behavior and positioning it as a prerequisite step for element interaction.

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?

The description provides explicit usage guidance: 'Use this FIRST after navigation to ensure screen is ready, then use find_element + tap.' It names the alternative tool ('find_element') and specifies the temporal sequence, giving clear when-to-use context.

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/igorzheludkov/metro-logs-mcp'

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