Skip to main content
Glama

Robot Actions — Remote Device Control

iOS tap

ios_tap

Tap at (x,y) on an iOS device screen — the FALLBACK for when an element has no usable label. Prefer ios_tap_by_label (taps by accessibility label via the automation session, no coordinate math, works even on zero-area elements) whenever the target has a name in ios_page_source. Coordinates here are in physical screen points and must come from ios_page_source (the authoritative source), NOT eyeballed from a screenshot. (On an Apple TV, which has no touchscreen, this is unavailable — select an element with tvos_select or tvos_focus instead.) Works without an automation session when the direct input path is available; falls back to one otherwise (see input).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xYesX coordinate in screen points (from ios_page_source element center)
yYesY coordinate in screen points (from ios_page_source element center)
normNoIf true, x/y (and path points) are 0..1 FRACTIONS of the screen — pass `pixelInScreenshot ÷ screenshotSize` directly (scale-free, matches the frontend, avoids point-guessing). Default false = iOS screen points.
udidYesiOS device UDID
inputNoInput path. 'auto' (default) tries the direct input path first — the one that needs no automation session — and falls back to the session only when the direct path is not usable right now (the response says which one ran). On a device set to direct-input-only, an unusable direct path is reported as an error instead of silently switching to the session. 'hid' forces the direct path with no fallback, reporting 'no HID available' on iOS 17.x or with no tunnel. 'session' forces the automation session even when the direct path would have worked.
durationNoTap hold duration in ms (default: 100)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / input / description
      Previous value: -"Input path. 'auto' (default) tries the direct input path first — the one that needs no automation session — and falls back to the session only when the direct path is not usable right now (the response says which one ran). 'hid' forces the direct path with no fallback, reporting 'no HID available' on iOS 17.x or with no tunnel. 'session' forces the automation session even when the direct path would have worked."New value: +"Input path. 'auto' (default) tries the direct input path first — the one that needs no automation session — and falls back to the session only when the direct path is not usable right now (the response says which one ran). On a device set to direct-input-only, an unusable direct path is reported as an error instead of silently switching to the session. 'hid' forces the direct path with no fallback, reporting 'no HID available' on iOS 17.x or with no tunnel. 'session' forces the automation session even when the direct path would have worked."
  2. Changed2 schema fields changed
    • changedInput schema / properties / input / description
      Previous value: -"Input path. 'auto' (default) drives the gesture through the automation session. 'hid' drives it through the direct input path instead, which needs no automation session — it reports 'no HID available' on iOS 17.x or with no tunnel."New value: +"Input path. 'auto' (default) tries the direct input path first — the one that needs no automation session — and falls back to the session only when the direct path is not usable right now (the response says which one ran). 'hid' forces the direct path with no fallback, reporting 'no HID available' on iOS 17.x or with no tunnel. 'session' forces the automation session even when the direct path would have worked."
    • changedInput schema / properties / input / enum
      Previous value: -[
      -  "auto",
      -  "hid"
      -]New value: +[
      +  "auto",
      +  "hid",
      +  "session"
      +]
  3. Changed2 schema fields changed
    • addedInput schema / properties / input
      Added value: +{
      +  "description": "Input path. 'auto' (default) drives the gesture through the automation session. 'hid' drives it through the direct input path instead, which needs no automation session — it reports 'no HID available' on iOS 17.x or with no tunnel.",
      +  "enum": [
      +    "auto",
      +    "hid"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / norm
      Added value: +{
      +  "description": "If true, x/y (and path points) are 0..1 FRACTIONS of the screen — pass `pixelInScreenshot ÷ screenshotSize` directly (scale-free, matches the frontend, avoids point-guessing). Default false = iOS screen points.",
      +  "type": "boolean"
      +}
  4. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations declare non-read-only, non-idempotent, non-destructive, non-open-world; the description goes further by disclosing that it works without an automation session when the direct input path is available, that it silently falls back otherwise, that direct-input-only devices report an error rather than switching, and that 'hid' fails on iOS 17.x or with no tunnel. That is meaningful operational context beyond the annotations, though it doesn't cover latency or partial-failure semantics.

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?

Front-loaded with the core action and the fallback role before the coordinate-sourcing rule and the tvOS aside. It is dense and long, but every clause carries routing, sourcing, or fallback information; the parenthetical tvOS sentence is the only part that could arguably be moved to a sibling description.

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?

For a 6-parameter mutation tool with no output schema, the description covers what the agent needs: when it applies, where coordinates come from, what the input-path fallback does, and which tools replace it on non-touchscreen platforms. Nothing essential to a correct call is missing.

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, but the description adds real guidance the schema does not: coordinates must originate from ios_page_source and must not be eyeballed from a screenshot, and it points the reader to the `input` parameter for path-selection semantics. It reinforces rather than duplicates the schema's coordinate origin note.

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?

States a specific verb and resource with scope ('Tap at (x,y) on an iOS device screen') and immediately positions itself against its sibling ios_tap_by_label and against the tvOS alternatives. An agent can distinguish it from ios_tap_by_label, ios_two_finger_tap, and tvos_select without opening any schema.

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?

Explicitly says when to use this tool ('the FALLBACK for when an element has no usable label'), when to prefer the alternative ('Prefer ios_tap_by_label ... whenever the target has a name in ios_page_source'), and what to use instead on Apple TV ('select an element with tvos_select or tvos_focus instead'). Both routing conditions and exclusions are spelled out.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources