Skip to main content
Glama

Tap

android_tap

Taps a specific x,y coordinate on a connected Android screen, enabling precise UI interaction from data captured by ui_dump. Uses the optional serial to target one of multiple devices.

Instructions

Tap at x,y (use @(x,y) from ui_dump).

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": "android_tap"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYes
yYes
serialNoDevice serial; optional if one device

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

B3.2/5.0
Behavior2/5

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

Annotations already declare openWorldHint=false, readOnlyHint=false, and destructiveHint=false, so the safety profile is covered. The description adds nothing behavioral beyond that — no mention of whether the tap waits for a UI response, what happens with off-screen or invalid coordinates, whether the device must be unlocked, or what is returned.

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?

A single front-loaded sentence with the action first and the sourcing hint second; no wasted words. Brevity is appropriate for a simple tap primitive, though it borders on under-specification rather than tight writing.

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

Completeness3/5

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

For a three-parameter, simple interaction tool with no output schema, the definition covers the core call path (coordinate source). It falls short on failure modes and coordinate-space semantics that an agent would need before blindly issuing taps.

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 coverage is only 33% (only 'serial' is documented in the schema), so the description must help. It does clarify that x,y are screen coordinates obtainable from the @(x,y) token in ui_dump output, which is meaningful. It still omits units/coordinate space (pixels vs. normalized) and gives no guidance on when to pass 'serial'.

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 ("Tap") and the exact input form (x,y), which separates it from siblings like android_swipe and android_type. It does not name an alternative explicitly, but the action itself is unambiguous.

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?

The parenthetical "use @(x,y) from ui_dump" gives a valuable precondition and tells the agent to source coordinates from ui_dump first. However, it offers no when-not guidance (e.g., when to swipe instead, or what to do if the target has no accessible coordinates).

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