Skip to main content
Glama
droidpilot

droidpilot

by Mihirokte

swipe

Drag a finger between screen coordinates to scroll, fling, or precisely move sliders and reorder items; adjust duration for quick flings versus controlled drags.

Instructions

Drag one finger from (x1,y1) to (x2,y2). Short duration = fling, long = precise drag (sliders, reorder).

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

Input Schema

NameRequiredDescriptionDefault
x1Yesx in screenshot space
x2Yesx in screenshot space
y1Yesy in screenshot space
y2Yesy in screenshot space
duration_msNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses the duration-to-behavior mapping (fling vs precise drag), which is real behavioral insight, but says nothing about whether the device must be connected, whether the gesture interrupts app state, or whether the swipe is guaranteed to complete.

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 sentences, front-loaded with the mechanical action, then the duration nuance. No filler or redundancy.

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?

An output schema exists, so return values need not be explained, and the schema covers coordinate units. What remains is adequate for a gesture primitive; only preconditions and failure behavior are absent.

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 coverage is 80%, so the schema already documents coordinates as screenshot-space values. The description adds meaning only for duration_ms (short vs long semantics), which the schema leaves as a bare default of 300; that is a modest but genuine addition, so the baseline 3 holds.

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 verb (drag) and resource (one finger from point to point), with exact coordinate semantics. It implicitly separates itself from tap/long_press by being a continuous drag, though it never names a sibling like scroll or gesture to sharpen the boundary.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

"Short duration = fling, long = precise drag (sliders, reorder)" gives concrete when-to-use context for the duration choice, with two example scenarios. It stops short of naming alternatives such as scroll or gesture for cases where this tool is the wrong pick.

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