Skip to main content
Glama

long_press

Destructive

Press and hold at specific screen coordinates, then release to trigger context menus or other hold gestures; use swipe for dragging and verify results with UI inspection or screenshots.

Instructions

Press and hold at screen coordinates in points, then release. Use it for context menus and other hold gestures; use swipe to drag. Doesn't check that anything was hit; verify with describe_ui or screenshot.

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

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.
durationNoSeconds (default 1)

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?

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is carried structurally; the description adds genuinely new context by admitting it 'doesn't check that anything was hit' and prescribing verification via describe_ui or screenshot. It does not explain why the call is destructive or what a hold gesture might trigger, which keeps it short of a 5.

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, then the disambiguation, then the caveat. Every sentence carries distinct information and nothing is repeated from the schema.

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 blind coordinate gesture with no output schema, the definition supplies the action, the sibling routing, and the verification path, which is close to sufficient. The one gap is that the destructive classification is left unexplained, so an agent gets no warning about what a long press might commit.

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 coordinate units ('Points from left'/'Points from top') and the duration default, so the schema already carries full parameter meaning. The description only repeats the 'in points' unit and adds no syntax, range, or device-selection detail beyond what is structured.

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 concrete verb and resource — 'Press and hold at screen coordinates in points, then release' — which is precise enough to distinguish it from tap, double_tap and swipe 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 Guidelines5/5

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

Gives explicit when-to-use ('context menus and other hold gestures') and names the alternative for the adjacent case ('use swipe to drag'), plus a follow-up recommendation to verify with describe_ui or screenshot. An agent can pick this tool over its siblings on the description alone.

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