Skip to main content
Glama

ios_tap

Destructive

Tap an element on an iOS device or simulator and get the resulting screen. Uses exact refs when available; requests approval for Send, Pay, or Delete actions.

Instructions

Tap an element and return the resulting screen.

Prefer ref over target; it is exact and cannot be misread. Taps on things like Send, Pay, or Delete need approval first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refNoA ref from the last observation, such as 'e7'. Preferred.
roleNoNarrow by role, e.g. 'button', 'cell', 'switch'.
doubleNoDouble tap.
targetNoPlain description of the element, e.g. 'the Send button'. Used if no ref.
approveNoSignature returned by a previous action_requires_approval error.
idem_keyNoOptional key making a retry a no-op. Pass the same key when repeating an action you are unsure completed.
long_press_sNoPress and hold for this many seconds.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Install Server

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, and the description adds useful behavioral context by explaining that taps on actions like Send, Pay, or Delete require approval first. This gives the agent a concrete sense of the tool's risk profile beyond the raw annotation.

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 appropriately short and front-loaded: the core purpose is stated in the first sentence, followed by two high-value usage warnings. Every sentence earns its place with no redundancy.

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

Completeness4/5

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

Given the tool's 7 optional parameters, destructive annotation, and output schema, the description covers the key decision points: what it does, what it returns, how to identify the target, and when extra approval is needed. It stops just short of being fully complete by not contrasting with sibling interaction tools, but that is a minor gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3. The description enhances this by explaining why `ref` is preferred over `target`—it is exact and cannot be misread—and by tying approval requirements to certain tap targets, which is not evident from the schema alone.

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 action ('Tap an element') and the result ('return the resulting screen'), identifying the specific resource and behavior. It is distinct from sibling tools like ios_press_button or ios_type, which target different interaction styles.

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 gives practical guidance on preferring `ref` over `target` and warns about approval-required taps, which helps with invocation. However, it does not explicitly explain when to choose this tool over alternatives like ios_press_button, ios_scroll, or ios_type, so the usage context is implied rather than fully stated.

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

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/emazaheri/ios-agent'

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