Skip to main content
Glama

ui_double_tap

Double-tap screen coordinates or the first element matching a selector to zoom images or PDF previews, handling slow phones where separate taps may register individually.

Instructions

Double-tap by coordinates or on the first element matching a selector (e.g. zoom in an image or PDF preview). Without the on-phone server a slow phone may see two single taps.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xNoX coordinate (with y).
yNoY coordinate (with x).
ridNoResource id (full or after '/').
descNoExact content description (accessibility label).
textNoExact text.
timeoutNoSeconds to wait for the element.
label_reNoRegex on text or description.
desc_containsNoSubstring of the content description.
text_containsNoCase-insensitive substring of the text.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It discloses a meaningful caveat—without the on-phone server a slow phone may interpret the action as two single taps—but it does not describe side effects, permissions, or response behavior.

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?

The description is two sentences, front-loads the primary action and targeting modes, and adds a relevant limitation without unnecessary detail. Every sentence contributes.

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 9-parameter optional UI action with full schema coverage and no output schema, the description is mostly complete: it explains the two targeting approaches and first-match behavior. A minor gap is that it does not clarify how the selector parameters interact or which takes precedence.

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%, so the per-parameter schema already documents all nine parameters. The description only adds that coordinates or a first-match selector may be used, without clarifying precedence or combinations among rid, desc, text, label_re, desc_contains, and text_contains.

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 states a specific action (double-tap) and two targeting modes: coordinates or the first element matching a selector. It adds a concrete example (zoom in an image or PDF preview), though it does not explicitly distinguish itself from the sibling ui_tap.

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 implied through the zoom example and the coordinate/selector targeting methods, but there is no explicit guidance on when to choose this over ui_tap or how to choose among the many optional selector parameters. The caveat about slow phones is useful context but not a when-to-use rule.

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

Deploy Server

Other Tools