Skip to main content
Glama

double_tap

Destructive

Perform a double tap at given screen coordinates in points to trigger gestures like zooming or selecting a word; obtain coordinates from describe_ui or a screenshot.

Instructions

Double-tap at screen coordinates in points, as given by describe_ui or a default screenshot. Use it for gestures such as zooming or selecting a word; use tap for a single tap. Doesn't check that anything was hit.

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
xYesPoints from left
yYesPoints from top
deviceNoDevice UDID or name substring. Defaults to the select_device choice, then IOS_DEVICE_MCP_DEVICE, else the single USB-connected device.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

The caveat 'Doesn't check that anything was hit' adds real value beyond the annotations: it tells the agent the gesture fires blindly at raw coordinates with no element validation, which pairs meaningfully with destructiveHint=true. It does not mention timing/interval behavior or what a call returns, but the annotations already flag the mutation risk.

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?

Three short sentences, front-loaded with the action and coordinate space, then usage, then the caveat. Every clause carries information; nothing is redundant.

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 3-parameter gesture tool with no output schema, the description covers targeting, coordinate origin, sibling selection, and the no-hit-check caveat. Only minor gaps remain (double-tap timing and success/failure signaling), which are of low importance for this tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, and the description goes further by specifying the coordinate space is 'points' sourced from describe_ui or a screenshot — important context the schema's 'Points from left/top' alone does not convey. The device parameter's fallback chain is fully documented in the schema, so no further description burden remains.

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 a specific verb and resource ('Double-tap at screen coordinates in points') and explicitly contrasts with the sibling 'tap' for a single tap. An agent can distinguish this from tap, long_press, and tap_element without opening any schema.

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

Usage Guidelines4/5

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

Gives a concrete use case ('gestures such as zooming or selecting a word') and names the alternative ('use tap for a single tap'), plus where coordinates should come from (describe_ui or a default screenshot). It stops short of full exclusions (e.g., element-targeted taps belong to tap_element, long presses to long_press), so it is clear but not exhaustive.

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