Skip to main content
Glama

tap

Simulate a touch at exact screen coordinates on Android or iOS devices to trigger UI elements, optionally capturing screen state afterward.

Instructions

Tap at a specific coordinate on the device screen

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
xYesX coordinate to tap (in native device resolution by default)
yYesY coordinate to tap (in native device resolution by default)
observeNoCapture screen state after the action. "on_change" returns the first tree that differs — catches a toast a fixed delay would miss. Default: none
platformNoTarget platform. Inferred if omitted.
device_idNoDevice ID. Omit for the connected device.
observe_delay_msNoMs to wait before observing. Default: 500
screenshot_scaleNoIf coordinates come from a scaled screenshot, provide the scale factor (e.g. 0.5). Coordinates will be auto-converted to native resolution.
observe_stabilizeNoWait for the UI to settle instead of a fixed delay. Default: false

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.1

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, but the description adds no further behavioral context: it does not warn that a tap can trigger irreversible actions, does not mention what observe returns, and says nothing about coordinate conversion. The single sentence carries no disclosure beyond the name.

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?

One short, front-loaded sentence with zero filler. It is efficient but borders on under-specification given the tool has eight parameters and observation modes.

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

Completeness2/5

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

This is a moderately complex interaction tool with eight parameters, two enums, and no output schema, yet the description is a single sentence. It gives no hint about the rich observe/on_change/screenshot_scale behavior that materially affects how the tool should be called, leaving the schema to do all the work.

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 all eight parameters (including observe, screenshot_scale, and observe_stabilize) are already documented in-schema. The description adds no parameter meaning beyond that, which is the baseline-3 case.

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 ('Tap at a specific coordinate on the device screen'), making the coordinate-based nature clear. It does not explicitly distinguish itself from coordinate-free siblings like tap_element, double_tap, or long_press, so it stops short of a 5.

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

Usage Guidelines2/5

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

'At a specific coordinate' implies this is for coordinate taps rather than element taps, but there is no explicit when-to-use or when-not-to-use guidance and no alternative named. An agent must infer that tap_element exists for element targeting.

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