Skip to main content
Glama
droidpilot

droidpilot

by Mihirokte

tap_element

Taps the center of a specified element from the latest screen observation, enabling AI agents to activate Android UI controls by index while rejecting stale snapshots.

Instructions

Tap the center of an element from the latest observe.

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": {
      "index": "<index>"
    },
    "name": "tap_element"
  }
}

Input Schema

NameRequiredDescriptionDefault
indexYes[n] index from the latest observe
confirmNotrue only if the user asked for this buy/pay/send/delete action
snapshotNosnapshot id from that observe. Rejects the tap if the screen was re-read since

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does convey two real behavioral traits — the touch lands on the element's center and the element must come from the most recent observe — but it says nothing about foreground-app requirements, side effects, or failure modes; the confirm and snapshot safety semantics live only in the schema.

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 no filler. The target selection and the observe dependency are packed into one clause without redundancy.

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?

An output schema exists, so return values need not be explained, and all three parameters are documented in the schema. What remains missing is guidance on choosing this tool over its many tap siblings and any note on what happens on a stale or missing index beyond the schema's snapshot wording.

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 100%, including the confirm gate for buy/pay/send/delete actions and the snapshot staleness guard, so the schema does the heavy lifting. The description only reinforces that index refers to a position from the latest observe, adding no syntax or format detail beyond that.

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 gives a specific verb and target: it taps the center of an element identified by index from the latest observe. The 'center' detail and the 'from the latest observe' scoping make it distinguishable from coordinate-based tap, tap_text, double_tap, and long_press, though the description never names those alternatives explicitly.

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 only implied: an agent can infer it must call observe first and then reference an index. There is no statement of when to prefer this over tap_text or coordinate tap, and no exclusion conditions, so the routing decision is left to inference.

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