Skip to main content
Glama

tap

Touch precise screen coordinates on virtual Android, iOS, visionOS, and macOS devices to click apps, long-press, or interact with games, ads, and system popups.

Instructions

Touch the screen at a position (a click on "mac", a look-and-pinch on Apple Vision Pro, sent through the DeviceHub window). Works on anything in front: the game, an ad, a system popup. Not available on Apple TV, which has no touch screen: use key there.

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

Input Schema

NameRequiredDescriptionDefault
xYesHorizontal position, as a fraction of the screenshot: 0 is the left / top edge, 1 the right / bottom edge
yYesVertical position, as a fraction of the screenshot: 0 is the left / top edge, 1 the right / bottom edge
appNoApp id: Android package, Apple bundle identifier; on "mac" the bundle identifier or app name (required there)
deviceYesDevice id (or exact name) from the devices tool
holdMsNoKeep the finger down this long (a long press). Default: a quick tap
screenshotAfterMsNoIf set, wait this many milliseconds after the action and return a screenshot too

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose platform-specific behavior and that the tap hits whatever is topmost (including popups), which warns the agent about unintended targets. However it says nothing about permissions, failure modes, or whether the coordinate is relative to a current screenshot versus device frame beyond the parenthetical.

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?

Three short sentences, front-loaded with the action and then platform caveats. The parenthetical is dense but each clause carries distinct information; nothing is filler.

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 six-parameter, fully documented input schema with no output schema, the description covers the essential unknowns: platform support, coordinate basis via schema, and target-selection behavior. Only the optional timing parameters and the absence of return values are left implicit, both handled by the schema.

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 baseline is 3; the schema already explains x/y as fractions of the screenshot, device lookup, app id, holdMs, and screenshotAfterMs. The description adds no parameter detail of its own and never mentions holdMs long-press or the optional post-action screenshot.

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?

States a concrete verb and resource ("Touch the screen at a position") and immediately maps it to per-platform semantics (click on "mac", pinch on Vision Pro). It also names one sibling it is not (key on Apple TV), though it does not differentiate itself from tap_element or pinch, which target the same underlying action by other means.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit negative case with the correct alternative: "Not available on Apple TV... use key there." It also clarifies that the tap lands on whatever is in front, including ads and system popups, which tells the agent this is a coordinate-level, not element-level, interaction. It stops short of saying when to prefer tap_element for a known element.

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