Skip to main content
Glama

tap

Destructive

Sends a single touch at specified screen coordinates on a connected iPhone or iPad, useful for targets without labels or identifiers; verify with UI inspection or a screenshot.

Instructions

Tap once at screen coordinates in points, as given by describe_ui or a default screenshot. Prefer tap_element when the target has a label or identifier, because it waits for the element and survives layout changes. Doesn't check that anything was hit; verify with describe_ui or screenshot.

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": {
      "x": "<x>",
      "y": "<y>"
    },
    "name": "tap"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYesPoints from left
yYesPoints from top
deviceNoDevice UDID or name substring. Defaults to the select_device choice, then IOS_DEVICE_MCP_DEVICE, else the single USB-connected device.
recordAudioNoRecord the Mac microphone around the tap. The tap is sent once audio is actually being captured, and the result gives its offset in the file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare destructive, non-idempotent, non-readOnly, so the safety bar is partly met; the description adds the genuinely non-obvious trait that the tap is blind ('Doesn't check that anything was hit') and prescribes verification. It does not mention that passing recordAudio records the Mac microphone around the tap or how device selection resolves, though the schema covers those.

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?

Three tight sentences: the action first, the preferred alternative second, the caveat and verification third. No filler or repetition of structured fields.

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 coordinate-tap tool with a nested recordAudio object and no output schema, the core call-and-verify loop is fully explained and the remaining parameters are documented at 100% coverage in the schema. Only the audio-recording side effect and device fallback chain are left to the schema.

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 baseline is 3; the description still adds meaning by specifying the unit is points and that coordinates should come from describe_ui or a default screenshot, which the schema's 'Points from left/top' does not convey.

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 ('Tap once at screen coordinates in points') and immediately contrasts with tap_element, so an agent can choose between the two without reading either 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?

Gives an explicit routing rule ('Prefer tap_element when the target has a label or identifier') with the reason (waits for the element, survives layout changes), plus a follow-up verification path via describe_ui or screenshot. When-to-use, when-not-to-use, and alternatives are all present.

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