Skip to main content
Glama

Robot Actions — Remote Device Control

ios_drag_hid

Drag-and-drop via the direct input path (no automation session needed): press-and-HOLD at from, move to to as one continuous contact, then release. Unlike ios_swipe_hid it holds at BOTH ends — holdStartMs lets the app pick the item up, holdEndMs lets the drop/snap register (a bare swipe often fails to grab or to land the drop). Use for reordering, sliders, and canvas drag-and-drop (jigsaw pieces, cards). Pass norm=true to give from/to/waypoints as 0..1 fractions (pixelInScreenshot ÷ screenshotSize — precise, matches the frontend). Single-contact only. Returns "no HID available" on iOS 17.x / no-tunnel.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesDrop point (screen points, or 0..1 fraction if norm=true)
fromYesGrab point (screen points, or 0..1 fraction if norm=true)
normNoIf true, x/y (and path points) are 0..1 FRACTIONS of the screen — pass `pixelInScreenshot ÷ screenshotSize` directly (scale-free, matches the frontend, avoids point-guessing). Default false = iOS screen points.
udidYesiOS device UDID
holdEndMsNoSettle dwell at the drop before release, ms (default 250)
waypointsNoOptional intermediate points for a curved/steered drag (same space as from/to)
durationMsNoTotal travel time, ms (default 500)
holdStartMsNoGrab dwell before moving, ms (default 250)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It covers the HID direct input path, single-contact constraint, hold timing purpose, and the 'no HID available' error on iOS 17.x/no-tunnel. These are valuable traits not inferable from the schema alone.

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 dense but well-organized: behavior first, contrast with sibling second, use cases third, coordinate guidance fourth, then constraints and failure mode. Every sentence earns its place without filler or redundant restating.

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?

For a gesture tool with a fully documented schema and no output schema, this description covers the essential context: gesture sequence, timing rationale, coordinate space, single-contact constraint, and known error case. Nothing needed to invoke 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%, so the baseline is 3. The description adds behavioral meaning to holdStartMs and holdEndMs beyond their schema descriptions, and reinforces the norm=true coordinate formula, helping the agent compute values correctly even though the schema already mentions it.

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?

The description opens with a specific verb and resource: 'Drag-and-drop via the direct input path'. It then spells out the full gesture sequence (press-and-hold, move, release), clearly distinguishing it from ios_swipe_hid by noting it holds at both ends. An agent can unambiguously tell this tool from its closest sibling.

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?

It explicitly contrasts with ios_swipe_hid, explaining why a bare swipe often fails to grab or drop, and gives concrete use cases: reordering, sliders, and canvas drag-and-drop. This is clear when-to-use guidance with a named alternative and failure mode context.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources