Skip to main content
Glama

Swipe Android screen

android_swipe

Swipe between two screen coordinates with a bounded duration to perform gestures on an Android device through ADB.

Instructions

Swipe between two coordinates with a bounded duration.

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

Input Schema

NameRequiredDescriptionDefault
x1Yes
x2Yes
y1Yes
y2Yes
deviceNoADB serial. Omit when exactly one device is ready.
durationMsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

C2.6/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, openWorldHint=false, and idempotentHint=false, so the safety profile is covered structurally. The description adds only "bounded duration," which largely restates the schema's 50-5000ms bounds, and says nothing about coordinate space (device pixels vs. display size), whether the gesture blocks until completion, or what a failure looks like.

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

Conciseness3/5

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

A single short sentence with zero filler, and the key constraint (two coordinates, bounded duration) is front-loaded. But the terseness crosses into under-specification rather than economical writing, so it earns only a middling score.

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 input tool with 17% schema coverage, no output schema, and no helpful parameter documentation, the description is far too thin. An agent cannot determine coordinate units, whether the call returns anything, or how to select among multiple connected devices from this text alone.

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 17%: only `device` carries a description, while x1/y1/x2/y2 and durationMs are undocumented beyond type and range. The description does not compensate at all — it never explains that the coordinates are a start/end pair in device pixels, what the duration default of 300ms means, or how to target a specific emulator.

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 ("swipe") and scopes it to two coordinate pairs, which distinguishes it from the single-point android_tap and the key-based android_press_key without needing the schema. It does not explicitly name those siblings, so it stops short of full differentiation.

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 tool versus android_tap, android_press_key, or other input tools, and no mention of prerequisites such as an unlocked screen, a foreground app, or how to pick a device. The agent must infer the entire usage context.

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