Skip to main content
Glama

Tap

adb_tap

Tap an Android device at (x,y) via ADB; choose logical screen coordinates or recent screenshot pixels, and optionally verify the tap changed activity or UI.

Instructions

Tap at (x, y). coords="screen" (default): coordinates from adb_ui_dump, the logical space input tap uses. coords="screenshot": coordinates off the last adb_screenshot for the SAME serial, rescaled; missing or older than 120s is refused. Rotation between screenshot and tap is not checked. verify="activity"|"ui" reports whether the tap changed anything; a failed verify never turns a performed tap into an error. To activate an element by its label, adb_find_and_tap does it in one call and also works on TV boxes without a touchscreen.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xYesX in pixels, in the space chosen by coords.
yYesY in pixels, same space.
coordsNoCoordinate space, default "screen". "screenshot" = pixels read off the last adb_screenshot image for this serial, rescaled automatically; refused if that screenshot is missing or older than 120s.
serialNoDevice serial from adb_devices. Optional when exactly one device is connected.
verifyNoDefault "none". "activity" compares the resumed activity before/after. "ui" also hashes the UI dump (~2-4s); a clock or timer ticking on its own can make it report "changed". "unchanged" is reliable.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing that rotation is not checked, that a stale screenshot (>120s) is refused, and that a failed verify never converts a performed tap into an error. These are non-obvious behavioral traits an agent needs, and nothing contradicts the annotations.

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, then dense but purposeful sentences covering each mode and the alternative. Slightly packed, but no wasted sentences.

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 tap mutation with no output schema, the description covers coordinate spaces, staleness limits, verification semantics, and the sibling alternative. Complete enough for correct invocation, with only minor gaps around which other alternatives to prefer.

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 meaning: it clarifies that 'screen' is the logical space input tap uses (vs screenshot rescaling) and explains what each verify mode compares. This meaningfully augments the enum descriptions.

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 (tap) and resource (x, y coordinates) with clear scope, and explicitly contrasts itself with the sibling adb_find_and_tap. An agent can distinguish it from the label-based alternative 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 Guidelines4/5

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

Gives explicit conditions for the two coord modes and routes label-based activation to adb_find_and_tap. Clear context for when to use it, though it doesn't address other alternatives like adb_swipe or adb_key.

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