Skip to main content
Glama

swipe

Control Android or iOS screens by performing directional or coordinate-based touch gestures, including drag mode and optional post-action UI capture.

Instructions

Swipe on the device screen. Provide explicit coordinates or a direction (up/down/left/right) to auto-compute from screen center.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "swipe"
  }
}

Input Schema

NameRequiredDescriptionDefault
dragNoPress, move and release instead of flicking — for reordering lists and dragging items. Android only. Default: false
end_xNoEnd X coordinate in native device resolution. Required if direction is not set.
end_yNoEnd Y coordinate in native device resolution. Required if direction is not set.
observeNoCapture screen state after the action. "on_change" returns the first tree that differs — catches a toast a fixed delay would miss. Default: none
start_xNoStart X coordinate in native device resolution. Required if direction is not set.
start_yNoStart Y coordinate in native device resolution. Required if direction is not set.
platformNoTarget platform. Inferred if omitted.
device_idNoDevice ID. Omit for the connected device.
directionNoSwipe direction. Auto-computes coordinates from screen center. Overrides explicit coordinates.
duration_msNoDuration of the swipe in milliseconds. Default: 300
observe_delay_msNoMs to wait before observing. Default: 500
screenshot_scaleNoIf coordinates come from a scaled screenshot, provide the scale factor (e.g. 0.5). Coordinates will be auto-converted to native resolution.
observe_stabilizeNoWait for the UI to settle instead of a fixed delay. Default: false

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.1

TDQS

A3.6/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false and destructiveHint=false, so the agent knows this mutates UI state without being flagged destructive. The description adds nothing about consequences of a swipe (screen navigation, dismissing items, scroll position changes) or what is returned when observe is set — it mostly restates the schema's coordinate/direction mechanics.

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

Conciseness5/5

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

Two short sentences, front-loaded with the action and followed immediately by the input options. No padding, no redundant restatement.

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 a 13-parameter gesture tool with full schema documentation and no output schema, the description covers the essential invocation model. The remaining gap is behavioral: it doesn't say that swiping changes app state or how observe results come back, which is mildly important given readOnlyHint=false.

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 13 parameters each carrying its own description including defaults, enums, and the direction-overrides-coordinates precedence rule. The description adds no meaning beyond that, so the baseline of 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?

States a specific verb and resource ("Swipe on the device screen") and clarifies the two input modes, which separates it from tap/double_tap/long_press siblings by gesture type. It does not explicitly name an alternative gesture tool or say when this is preferred over them, so it stops short of 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?

The description tells the agent how to invoke it (coordinates OR direction) and implies usage for scrolling/navigation gestures, but gives no when-to-use vs when-not guidance and no mention of predecessors like get_screen_info or screenshot to obtain coordinates. Usage is inferable rather than specified.

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