Skip to main content
Glama

Robot Actions — Remote Device Control

Device gesture path

device_gesture_path

Replay a freeform stroke as ONE continuous touch — the polyline lands exactly as given, so use it for curves, arcs, signatures, unlock patterns, or any gesture a straight device_swipe cannot express. points is an ordered list of {x, y}; the first is touch-down, the last is lift. Minimum 2 points. Waypoints are sent AS GIVEN and not densified — the polyline you pass IS the gesture, so pass enough points to describe the curve. Prefers the HID touchscreen and falls back to injected MotionEvents. Coordinates are PHYSICAL pixels — same as device_page_source bounds. The iOS counterpart is ios_gesture_path.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
udidYesDevice serial number (UDID)
pointsYesOrdered waypoints of the stroke (first = touch-down, last = lift)
durationMsNoTotal stroke time in ms, split evenly across segments (default 400)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only declare the safety profile (readOnly/destructive/idempotent/openWorld). The description goes well beyond: it discloses the backend behavior (prefers HID touchscreen, falls back to injected MotionEvents), the densification semantics (waypoints sent AS GIVEN, not densified, so the polyline IS the gesture), and the coordinate space (physical pixels matching device_page_source bounds). These are exactly the traits annotations cannot express.

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?

Purpose and the device_swipe contrast are front-loaded, followed by point semantics, the densification caveat, backend behavior, and coordinate space. Each sentence carries distinct, non-redundant information; none restates the name, title, or annotations.

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 an action tool with no output schema, the description supplies everything needed to invoke correctly: what the gesture means, point ordering and density requirements, coordinate space, and the execution backend with its fallback. Nothing an agent needs to call this successfully 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 schema already documents udid, points, and durationMs, making the baseline 3. The description nonetheless adds meaning beyond it: the ordering convention (first = touch-down, last = lift), the minimum of 2 points, and the physical-pixel coordinate clarification that sharpens the schema's vaguer 'device tap-coord space'.

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 (Replay) and resource (freeform stroke as one continuous touch) and explicitly positions itself against the sibling device_swipe for gestures 'a straight device_swipe cannot express'. It also names its iOS counterpart ios_gesture_path, so an agent can distinguish it from every sibling without opening a 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 criteria ('curves, arcs, signatures, unlock patterns, or any gesture a straight device_swipe cannot express') and names the alternative tool it supersedes. The selection condition between this and device_swipe is fully spelled out, leaving nothing to inference.

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