Skip to main content
Glama

tap

Selects Android UI elements by index, text, or resource ID, or clicks screen coordinates. Returns UI changes, full tree, or screenshots after the action for agent verification.

Instructions

Tap an element (by index, text or id) or a screen point (x, y).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xNoScreen x (with y), from a screenshot or get_ui
yNo
idNoMatch resource id / Compose testTag
textNoMatch element text or content description (case-insensitive)
exactNoRequire the whole text/id to match instead of a substring
indexNoElement [ref] from get_ui or a change report
serialNoadb serial; optional when exactly one device is connected
observeNoWhat to return after the action: changes (default: only what changed since you last saw the screen, full tree on a new screen), ui (full tree), screenshot, both (tree + screenshot), nonechanges
settle_msNoWait before observing
occurrenceNoWhich match to use when several match (0-based)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It does not disclose that tapping mutates UI state, whether it waits for settle, what observe mode defaults to, how multi-device serial selection works, or what happens when multiple elements match; the schema covers some of this but the natural-language description adds almost nothing.

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?

A single front-loaded sentence that names the action and its two targeting approaches with no wasted words. It is efficiently sized for an agent scanning tool descriptions.

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?

For a 10-parameter interaction tool with no annotations and no output schema, the description is too sparse. It omits behavioral context about device selection, observation defaults, settling, match resolution, and side effects, leaving the agent to infer important interaction semantics from the schema alone.

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 90%, so parameters such as observe, settle_ms, exact, occurrence, and serial are already well documented in the schema. The description repeats the targeting modes (index, text, id, x/y) but adds no meaning beyond what the schema provides, so the baseline of 3 applies.

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 specific verb and resource (tap an element or screen point) and names the targeting modes (index, text, id, x/y). It is clearly distinguishable from long_press and swipe by virtue of being a tap, but it does not explicitly call out those sibling boundaries.

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?

The description lists possible targeting modes but gives no guidance on when to use tap versus long_press, swipe, or scroll, nor whether get_ui should be called first to obtain an element ref. It provides no exclusions or prerequisites.

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