Skip to main content
Glama
Mobile Device Farm MCP

Mobile Device Farm MCP

adb_swipe

Simulate a swipe gesture on Android screens using start and end coordinates, plus optional duration and device ID, to automate UI testing and navigation.

Instructions

Simulate a swipe gesture on Android 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
deviceIdNo
durationNoDuration in ms

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/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 disclosure burden, yet it says nothing about coordinate origin and bounds, whether the call blocks until the gesture completes, the default 500ms duration, or how the target device is selected. It also does not describe what the tool returns or whether it errors on out-of-bounds coordinates.

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 zero wasted words, though the brevity borders on under-specification given the tool's interaction complexity.

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?

With six parameters, no annotations, and no output schema, the description should explain coordinate system, device targeting, and interaction semantics. None of that is present, leaving the agent with only a one-line restatement of the tool name's intent.

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 83%, so the schema already documents x1/y1/x2/y2 and the duration default of 500ms. The description adds nothing about coordinate frames or the undocumented deviceId parameter, so baseline 3 applies.

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 names a specific verb and resource ('Simulate a swipe gesture on Android screen'), which is unambiguous and distinguishable from siblings like adb_tap or adb_input_text by the word 'swipe'. It does not explicitly contrast itself with alternatives, but the purpose is clear.

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 use this versus adb_tap, adb_input_text, or adb_shell, and no prerequisites are stated. The only usage signal is the implied 'gesture' semantics, which the agent must infer.

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