Skip to main content
Glama

swipe

Simulate a touch-and-drag or scroll gesture between two coordinates on Android devices to navigate screens, move lists, or perform drag actions via ADB.

Instructions

Swipe/scroll between two points.

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
x1Yesstart x
x2Yesend x
y1Yesstart y
y2Yesend y
duration_msNoGesture duration, default 300 (>=800 = drag)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.1/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 reveals nothing beyond the action name: no coordinate space, no note that a long duration turns the gesture into a drag, no side effects on screen content, and no error behavior for invalid points.

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 five-word fragment with zero waste and the action front-loaded, though the 'Swipe/scroll' slash construction is slightly ambiguous and there is no structure beyond a single clause.

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 coordinate-based input gesture with no annotations and no output schema, the definition omits essentials an agent needs: what coordinate system/origin applies, whether a device must be selected first, and what the call returns or affects. The schema covers parameters but the description covers none of the surrounding context.

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%, with x1/y1/x2/y2 and duration_ms all documented in the schema, including the '>=800 = drag' hint. The description adds no meaning beyond that, so the 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 action (swipe/scroll) and the resource it operates on (a path between two points), which is enough to know it performs a touch gesture. It does not differentiate from siblings such as scroll_to or long_press, so it stays below a 5.

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

Usage Guidelines3/5

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

Usage is only implied by the word 'swipe/scroll'; there is no statement of when to prefer this over scroll_to (element-based scrolling) or long_press, and no preconditions such as an active device connection.

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