Skip to main content
Glama

Swipe

swipe

Simulate swipe gestures on mobile devices for UI testing by specifying a direction or start and end coordinates.

Instructions

Swipe by direction (up/down/left/right) or between two coordinate points. Direction swipes are centered on the screen.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
x1No
x2No
y1No
y2No
observeNoWhat to return after the action: 'screen' = fresh compact hierarchy, 'diff' = only what changed since last inspect, 'screenshot' = PNG, 'none' = just confirm.screen
device_idYesDevice id from list_devices (adb serial like 'emulator-5554', or an iOS simulator UDID)
directionNo
duration_msNo
Behavior2/5

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

With no annotations provided, the description carries the full burden. It adds one useful behavioral detail: 'Direction swipes are centered on the screen.' However, it omits other critical behavioral traits such as coordinate system, interaction with UI elements, or what observe returns. The disclosure is minimal for a gesture tool.

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?

The description is two short sentences that are front-loaded with the action and modes. Every sentence earns its place: the first states the core functionality, and the second adds a practical nuance. There is no filler or redundancy.

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?

Given 8 parameters, no annotations, and no output schema, this two-sentence description is insufficient. It does not explain absolute vs relative coordinates, duration semantics, or what the tool returns. The centered-screen detail is helpful, but the overall description leaves significant gaps in operational context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description clarifies the mode selection: direction enum for directional swipes and x1/y1/x2/y2 for coordinate-based swipes, which is not fully evident from the schema given only 25% schema description coverage. It also implies mutual exclusivity by saying 'or between two coordinate points.' This adds meaningful context beyond the raw parameter names.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly identifies the tool's function: performing a swipe gesture either via direction (up/down/left/right) or via coordinate points. This unambiguous verb+resource pairing distinguishes it from sibling gesture tools like tap and long_press.

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 implies usage when a swipe gesture is needed, but it does not explicitly state when to choose this tool over alternatives like tap or long_press, nor does it mention exclusions or prerequisites. The mention of two modes (direction vs coordinates) provides some internal guidance, but no external comparison.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ryanperkins/Manos-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server