Skip to main content
Glama

iph_tap

Taps an element selector or x,y point on a real iPhone, waits for the screen to settle, then returns current elements and whether it changed.

Instructions

Tap an element (selector) or a point ("x,y" in points). Waits for the screen to change and hold still, then returns it (elements, as iph_read does) and whether it changed. Never retry a tap whose outcome is "unknown".

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "target": "<target>"
    },
    "name": "iph_tap"
  }
}

Input Schema

NameRequiredDescriptionDefault
doubleNo
targetYesA selector, or "x,y". Selector: a plain string is an exact label (the name part of a "name, value" row also counts). Or combine terms: label="exact", label~="contains", label/regex/, role=button, id=<identifier or element id>, value~=…, within="<selector>", index=N. An object works too: {label, label_contains, label_regex, value, value_contains, role, id, id_contains, id_regex, within, index}. More than one match is an error that lists the candidates.
long_msNoHold this long instead of a short tap.
no_waitNoRead the screen once right after the tap instead of waiting for it to settle; the result then has no elements.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and discloses key traits: it waits for the screen to change and hold still, returns the resulting elements similarly to iph_read, and warns against retrying unknown outcomes. It still leaves 'unknown' undefined and does not mention side effects, but the core behavior is well communicated.

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 front-loaded with the core action and target forms, followed by wait/return behavior and a short safety rule. Every sentence contributes useful information with no wasted wording.

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?

For a four-parameter tap tool with no annotations and no output schema, the description gives enough context to invoke it: target forms, post-tap waiting, return shape, and retry caution. Minor gaps remain around defining 'unknown' and explaining the double-tap parameter, but the schema covers most parameter detail.

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 coverage is 75%, and the schema already provides detailed selector syntax and descriptions for target, long_ms, and no_wait. The description adds little beyond restating that target can be a selector or 'x,y' point, and does not compensate for the undocumented double parameter.

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

Purpose4/5

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

The description states a specific verb and resource: tapping an element or point. It is easy to distinguish from read-only siblings like iph_read, though it does not explicitly distinguish itself from iph_button or other input tools.

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?

Usage is strongly implied by the tool name and first sentence, and the description adds a useful operational rule about not retrying an unknown outcome. However, it does not explicitly say when to use this versus alternatives such as iph_button or iph_swipe.

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