Skip to main content
Glama

adb_swipe

Swipes an Android device screen from start coordinates to end coordinates over a set duration for scripted touch gestures.

Instructions

Swipe the Android device screen from (x1,y1) to (x2,y2) over durationMs via input swipe.

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

Input Schema

NameRequiredDescriptionDefault
x1Yes
x2Yes
y1Yes
y2Yes
serialYes
timeoutMsNo
durationMsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. "via input swipe" hints at the underlying adb mechanism and implies a real UI mutation, but nothing is said about required device state, whether the gesture is interruptible, what happens on invalid coordinates, or how durationMs affects fling vs drag behavior.

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?

A single tightly written sentence with the destination coordinates ordered before the duration, so the critical geometry is front-loaded and nothing is wasted.

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

Completeness2/5

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

For a 7-parameter, 5-required mutation tool with no annotations and no output schema, the definition is thin: no failure modes, no device-state requirement, and two parameters entirely unaddressed. An agent could construct the call from the schema alone, but only by guessing at coordinate semantics and timeouts.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% across 7 parameters, yet the description only glosses x1/y1/x2/y2/durationMs and never mentions the required serial or the timeoutMs default of 15000. It also omits the coordinate space (device pixels vs density-scaled) and the units of durationMs, which are the details an agent most needs.

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?

"Swipe the Android device screen from (x1,y1) to (x2,y2)" states a specific verb and resource, making it distinguishable from adb_tap and adb_type by the gesture semantics. It does not explicitly name those siblings, so differentiation is inferred rather than stated.

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

Usage Guidelines2/5

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

No guidance on when to choose a swipe over adb_tap or repeated taps, no prerequisites (device must be connected/serial-authorized), and no note about wait time before/after the gesture. The agent must infer all usage context.

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