Skip to main content
Glama

Find and tap Android UI node

adb_find_and_tap
Destructive

Locate an Android UI element by text, resource ID, or content description and tap its center, avoiding manual coordinate guesses during ADB automation.

Instructions

Find an Android UI node by text/resourceId/content description and tap its center instead of guessing screen coordinates.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "adb_find_and_tap"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNo
indexNo
matchNoexact
serialNo
deviceIdNo
deviceNameNo
resourceIdNo
contentDescNo
requireClickableNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true and openWorldHint=true, so the agent knows this is an unsafe, mutating, real-device action. The description adds only the tap mechanism (center of node), but does not disclose failure behavior (what happens if no match), multiple-match handling, or device targeting — useful context that annotations cannot supply.

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 with zero filler; every clause earns its place and the core action and its differentiator are stated first.

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 9-parameter, 0%-coverage mutation tool with no output schema, the description is too thin: it omits device selection, match mode (exact/contains), index semantics for multiple matches, and result/failure reporting. An agent cannot reliably invoke it from this description alone.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% and there are 9 parameters, so the description carries the full burden. It names only three matching criteria (text, resourceId, contentDesc) and leaves index, match mode, serial/deviceId/deviceName targeting, and requireClickable entirely unexplained.

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+resource ('Find an Android UI node ... and tap its center') and adds a differentiating rationale ('instead of guessing screen coordinates') that implicitly separates it from coordinate-based siblings like adb_input. It does not name the alternative tool, 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 Guidelines3/5

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

Usage is implied by the phrase 'instead of guessing screen coordinates', suggesting use when a target is identifiable by text/resourceId/contentDesc. However there is no explicit when-to-use/when-not guidance, no mention of adb_input or adb_ui_dump as alternatives, and no preconditions (device connected, UI settled).

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

Deploy Server

Other Tools