Skip to main content
Glama

tap

Simulate a touch at exact screen coordinates (x, y) to automate Android UI interactions and trigger controls or elements at specified pixel positions.

Instructions

Tap absolute screen coordinates.

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

Input Schema

NameRequiredDescriptionDefault
xYespx from the left
yYespx from the top

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and falls short: it does not state that this injects a touch event into a live device, that a device must be selected/connected first, whether the tap is blocking, or what is returned. "Absolute" is the only behavioral hint, clarifying that coordinates are screen-relative rather than element-relative.

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; the action and target are stated immediately. Brevity here is deliberate rather than padded, even if more content would be desirable elsewhere.

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 two-parameter, fully documented, single-action tool with no output schema, the description covers the essentials. The remaining gap is the device/prerequisite context, which is notable given siblings like adb_connect and device_select but is not strictly required to form the call.

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 100%, with x and y already documented as pixels from the left and top, so the baseline is 3. The phrase "absolute screen coordinates" reinforces that no element targeting or relative offset applies, but adds no units, bounds, or orientation caveats beyond the schema.

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?

The description pairs a concrete action verb ("Tap") with a precise target ("absolute screen coordinates"), which tells an agent it performs a direct touch at pixel positions rather than on a UI element. The qualifier "absolute" implicitly separates it from element-based siblings like tap_text, though no sibling is named.

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?

There is no guidance on when to prefer this over tap_text, long_press, or key_event, nor any precondition such as needing an active device via adb_connect/device_select. The agent must infer the selection criteria from sibling names alone, which the description does not address.

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