Skip to main content
Glama
expoli

android-phone-mcp-server

by expoli

tap

Perform a touch action on an Android UI element using semantic selectors (text, content-desc, id, or bounds), and verify the result with screen-change evidence.

Instructions

Tap a semantic target and verify the result.

Prefer semantic selectors — never compute coordinates yourself:

  • by=text: exact text label, e.g. {"by": "text", "value": "保存"}

  • by=desc: content-desc label

  • by=id: a stable element id from get_screen

  • by=bounds: last resort, "x,y" or "l,t,r,b" (raw coordinates)

Returns verification evidence {executed, screen_changed, changed_elements[], screen_hash}, or SELECTOR_AMBIGUOUS with candidates[] when several elements match (retry with by=id).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
deviceNoADB serial; omit with a single connected device.
targetYes{"by": "text"|"desc"|"id"|"bounds", "value": str}
session_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations, the description carries the burden. It discloses the return shape (verification evidence fields), the SELECTOR_AMBIGUOUS case with candidates[], and a retry recommendation. It does not mention side effects or waiting behavior, but the verification result indicates the tool confirms its own action.

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?

The description is well-structured: a one-sentence purpose, a bulleted selector guide, and a return-format note. Each component contributes unique value; no filler or redundancy.

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?

Covers the main behavior (verification, ambiguity handling), selector semantics, and output shape. The schema covers device and session_id. It omits potential edge cases like timeouts or post-tap settling, but for a tap tool the description is sufficiently complete alongside the output schema.

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?

The description adds significant meaning to the target parameter by explaining each 'by' value (text, desc, id, bounds) with examples and a 'last resort' note. This goes beyond the schema's type-only description. session_id is not covered, but schema coverage is moderate and the main required parameter is well documented.

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?

Clear verb+resource: 'tap a semantic target and verify the result.' Distinguishes from sibling tools like swipe/type_text by focusing on semantic selectors and verification. The selector hierarchy (text/desc/id/bounds) further clarifies its scope.

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?

Provides explicit guidance on selector choice: 'Prefer semantic selectors — never compute coordinates yourself,' with a hierarchy (text, desc, id, bounds last resort). Also advises retrying with by=id on ambiguity. However, it does not explicitly compare to alternative tools like swipe or type_text, though the distinct purpose makes this less critical.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/expoli/android-phone-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server