Skip to main content
Glama

input_swipe

Simulates a swipe gesture between two screen coordinates over a specified duration, enabling automated touch navigation and scrolling on Android devices or emulators via ADB.

Instructions

Swipe from (x1,y1) to (x2,y2) over duration_ms.

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

Input Schema

NameRequiredDescriptionDefault
x1Yes
x2Yes
y1Yes
y2Yes
serialNo
duration_msNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are provided, so the description bears the full behavioral burden and discloses almost nothing: it does not say the action mutates device input state, what happens if no device is connected, or how the swipe is executed (steps, interpolation). It also silently omits the serial parameter entirely, which determines which device receives the gesture.

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 tight sentence, front-loaded with the action and geometry. It is efficient, though the terseness comes at the cost of the missing detail noted elsewhere rather than through deliberate economy.

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?

An output schema exists so return values need not be explained, but for a 6-parameter device-input mutation with zero schema coverage the description leaves critical gaps: coordinate semantics, the serial targeting parameter, and the connected-device precondition.

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 description coverage is 0% and the description merely restates the parameter names already present as schema titles. It adds no meaning about the coordinate space (device pixels vs. logical pixels, screen-relative origin) or the optional serial parameter, both of which are essential to invoke this correctly.

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?

States a specific verb (swipe) with an explicit coordinate range and duration, which clearly distinguishes it from a tap-style interaction. It never names its siblings or clarifies edge cases, but the action itself is unambiguous.

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 swipe versus input_tap or input_keyevent, no mention of a required connected device, and no exclusions or prerequisites. An agent must infer all of this from the sibling list.

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