Skip to main content
Glama

iphone_drag

Touch and hold an item on a connected iPhone, then move and drop it to rearrange home-screen icons, reorder list rows, drag text/files/photos, or adjust sliders precisely.

Instructions

Touch and hold an item, move it and drop it: rearrange home-screen icons, reorder list rows, drag text, files or photos, move a slider precisely.

Unlike iphone_swipe, the finger first rests on the start point, so iOS picks the item up instead of
scrolling. Look again afterwards: whether the item moved depends on the app.

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": {
      "x1": "<x1>",
      "y1": "<y1>",
      "x2": "<x2>",
      "y2": "<y2>"
    },
    "name": "iphone_drag"
  }
}

Input Schema

NameRequiredDescriptionDefault
x1YesStart x in iOS points (where the finger touches and holds).
x2YesEnd x in iOS points (where the item is dropped).
y1YesStart y in iOS points.
y2YesEnd y in iOS points.
duration_msNoDuration of the movement in milliseconds (100–10000).
hold_secondsNoHow long to hold before moving (0.1–5 s); iOS needs about 0.5 s to pick an item up.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.3.0

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only declare the generic profile (not read-only, not destructive, open-world, not idempotent); the description adds the mechanism that determines success (the pre-move hold lets iOS pick the item up) and, crucially, warns that the outcome is app-dependent and must be verified afterwards ('Look again'). That non-determinism warning is behavior an agent cannot infer from the annotations.

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?

Two short paragraphs, zero filler. The action and its use cases come first, then the swipe contrast and the verification caveat, which is the right order for an agent deciding whether to call it.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present and full schema coverage, the description need not explain returns; it spends its space on the two things structured fields can't convey: why this differs from swipe and that the effect must be confirmed. Nothing needed to call it correctly is missing.

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% and every coordinate plus duration_ms and hold_seconds is already documented, so the baseline would be 3. The description still adds conceptual linkage: the start point is 'where the finger touches and holds', which explains why hold_seconds exists and defaults to 0.6, matching the schema note that iOS needs about 0.5 s to pick up.

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 sequence (touch, hold, move, drop) and immediately enumerates the resources it applies to: home-screen icons, list rows, text, files, photos, sliders. An agent can distinguish this from tap/swipe/press_button siblings 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 an explicit alternative and the condition that selects it: unlike iphone_swipe, the finger rests on the start point so iOS picks up the item rather than scrolling. The when-to-use (reorder/move item) versus when-to-use-swipe (scroll) boundary is unambiguous.

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