Skip to main content
Glama

Swipe

swipe

Drag or swipe on an Android screen between two pixel coordinates to scroll lists, fling content, or perform gesture input via adb.

Instructions

Swipe/drag from a start point to an end point. Params: x1,y1 (start) and x2,y2 (end) in true device pixels — x and y are accepted aliases for x1 and y1. To SCROLL DOWN a list, swipe from a HIGH y to a LOW y (drag the content up); reverse to scroll up. A longer duration_ms gives a slower, controlled drag; a short one flings.

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": {
      "x2": "<x2>",
      "y2": "<y2>"
    },
    "name": "swipe"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNoAlias for x1 (start X).
yNoAlias for y1 (start Y).
x1NoStart X in true device pixels (alias: x).
x2YesEnd X in true device pixels.
y1NoStart Y in true device pixels (alias: y).
y2YesEnd Y in true device pixels.
serialNoTarget device serial (adb -s). Optional when exactly one device is attached.
duration_msNoSwipe duration in ms. Default 300.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already establish this is non-destructive and not open-world, so the safety bar is low. The description adds real behavioral context beyond them: direction-to-scroll mapping, the effect of duration_ms (controlled drag vs fling), and the pixel-coordinate contract. It doesn't mention what happens on failure or whether the gesture can be interrupted.

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?

Front-loaded with the action, then parameter semantics, then practical scroll guidance — every sentence carries information. Minor waste in restating the x/y alias mapping that the schema already declares verbatim.

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

Completeness4/5

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

For an 8-parameter device-input tool with no output schema, the description covers the essentials: coordinate system, required points, scroll direction, and duration behavior. It omits any mention of the optional `serial` device targeting, though the schema documents it adequately.

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 coverage is 100%, so all eight parameters are already documented, giving a baseline of 3. The description does add value on top by explaining that coordinates are in true device pixels and by giving the practical semantics of duration_ms and the y-direction, but it largely restates alias information already present in the schema.

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?

Opens with a specific verb+resource ('Swipe/drag from a start point to an end point') and adds coordinate semantics, so an agent knows exactly what operation this performs. It does not distinguish itself from the sibling `drag` tool, which appears to do something very similar, leaving ambiguity about which to pick.

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?

Provides genuinely useful implied usage guidance for scrolling: 'To SCROLL DOWN a list, swipe from a HIGH y to a LOW y... reverse to scroll up', and explains duration trade-offs (slow controlled drag vs fling). However there is no explicit when-to-use/when-not guidance relative to `drag`, `tap`, or `long_press`, which is the main ambiguity an agent faces.

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