Skip to main content
Glama
android-adb-mcp

android-adb-mcp

by Bzcasper

adb_swipe

Perform a swipe gesture on an Android device screen by specifying start and end coordinates, with optional duration and target device serial.

Instructions

Perform a swipe gesture on the Android device screen

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

Input Schema

NameRequiredDescriptionDefault
x1YesStart X
x2YesEnd X
y1YesStart Y
y2YesEnd Y
deviceNoDevice serial (optional)
durationNoDuration in ms (default 300)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure and says little beyond the gesture itself. It does not state the coordinate system or units, whether the swipe is interpolated with intermediate move events, whether it blocks until the gesture finishes, or what permissions or device state are required.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no filler or repetition, so it is easy to scan. It is concise to the point of under-specification, however, and leaves no room for the behavioral and parameter context the tool needs.

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 six-parameter device-mutation tool with no annotations and no output schema, the definition leaves too much out. It does not say how the screen coordinates relate to actual pixels, how the optional device serial selects a target when several devices are connected, or what the tool returns.

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 description coverage is 100%, and each parameter carries a short explanation, so the baseline score of 3 applies. The description adds no extra meaning about the coordinate space or how duration affects the gesture, so it does not exceed that baseline.

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 and resource: a swipe gesture on the Android device screen. It is immediately clear what the tool does, but it offers no differentiation from siblings such as adb_tap or adb_shell, which could also produce on-screen movement.

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?

There is no guidance on when to choose this over adb_tap for simple presses, or over adb_shell for scripted input. Nor does it say when a swipe is inappropriate, such as on a locked device or when a longer press is required.

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