Skip to main content
Glama

Tap

tap_screen

Taps a target by ref, selector, or x/y coordinates; set count for double taps or holdMs for long presses, then returns the updated screen.

Instructions

Tap a target in place: ref, selector or x,y. count: 2 is a double tap; holdMs: a long press. A moving finger: swipe_screen; a system alert: answer_alert. Returns the screen after. Several matches refuse, listing refs; no match waits briefly, then refuses with the nearest labels.

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

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
refNo
readNo
countNo
holdMsNo
selectorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.1.4

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the annotations (which only declare openWorldHint=false and destructiveHint=false), it discloses the return behavior ('Returns the screen after') and two concrete failure modes: ambiguous matches refuse and list refs, while no-match waits briefly then refuses with nearest labels. That is genuinely useful context an agent cannot infer from the schema. It loses a point for not explaining what the 'read' enum controls, which directly affects what comes back.

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?

Very compact and front-loaded: target modes first, modifiers second, sibling routing third, then return and failure behavior. The telegraphic sentence fragments ('A moving finger: swipe_screen') trade readability for density but waste no words.

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 7-parameter interaction tool with no output schema, it covers the essentials: what is targeted, how to express modifiers, what is returned, and how ambiguity and misses fail. The one notable omission is the meaning of the 'read' enum values, which determines the shape of the returned screen data.

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 0%, so the description must compensate, and it partially does: it explains the target trio (ref/selector/x,y), that count:2 means double tap, and that holdMs means long press. However, the 'read' parameter (diff/full/none) is never mentioned and the nested selector fields (id, role, text, index) are left entirely to the schema, leaving real gaps at zero coverage.

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?

States the specific verb (tap) and enumerates the three ways to identify a target (ref, selector, x,y), so the agent knows exactly what the tool acts on. It also explicitly distinguishes itself from the two most confusable siblings, swipe_screen and answer_alert.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Names alternatives with the condition that selects them: a moving finger goes to swipe_screen, a system alert goes to answer_alert. That is explicit routing rather than implied usage, and the remaining siblings (read_screen, type_text, etc.) are not plausibly confusable with a tap.

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