Skip to main content
Glama

double_tap

Triggers a double tap at specified screen coordinates on Android or iOS to activate zoom or selection, with optional UI or screenshot capture afterward.

Instructions

Double-tap at a specific coordinate on the device screen

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

Input Schema

NameRequiredDescriptionDefault
xYesX coordinate to double-tap (in native device resolution by default)
yYesY coordinate to double-tap (in native device resolution by default)
observeNoCapture screen state after the action. "on_change" returns the first tree that differs — catches a toast a fixed delay would miss. Default: none
platformNoTarget platform. Inferred if omitted.
device_idNoDevice ID. Omit for the connected device.
observe_delay_msNoMs to wait before observing. Default: 500
screenshot_scaleNoIf coordinates come from a scaled screenshot, provide the scale factor (e.g. 0.5). Coordinates will be auto-converted to native resolution.
observe_stabilizeNoWait for the UI to settle instead of a fixed delay. Default: false

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.1

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so the safety profile is covered. The description adds nothing beyond that — it does not mention that the double-tap executes at native resolution, that coordinate scaling is handled, or that post-action observation can be requested. It repeats the action without adding behavioral context.

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 zero filler. It is efficient, though its brevity is partly under-specification rather than pure conciseness.

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?

The tool has eight parameters including a non-trivial observation subsystem, but the schema documents all of them thoroughly and there is no output schema to explain. The one-line description is minimally adequate; it does not describe how the action interacts with the observe options or coordinate scaling, leaving the agent reliant on schema text alone.

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% with all eight parameters fully documented, including the nuanced 'observe', 'observe_stabilize', and 'screenshot_scale' semantics. The description adds no parameter meaning, so the baseline 3 applies when the schema does all the work.

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 concrete verb (double-tap) and target (a coordinate on the device screen), which implicitly distinguishes it from the single-tap siblings 'tap' and 'tap_element'. It does not explicitly contrast with those siblings, so it falls short of a 5.

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?

No when-to-use guidance, no mention of when to prefer 'tap', 'tap_element', or 'long_press' instead. The agent must infer that this is for double-tap gestures solely from the verb in the name.

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