Skip to main content
Glama

swipe

Perform a swipe gesture on an Android screen from one coordinate to another, with a configurable duration in milliseconds.

Instructions

Swipe between two absolute screen coordinates with a bounded duration.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
x1Yes
x2Yes
y1Yes
y2Yes
duration_msNo
device_serialNoADB serial such as emulator-5554, a USB serial, or host:port. If omitted, the active device is used; a sole ready device is selected automatically.
Behavior2/5

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

The description adds minimal behavioral context beyond the annotations. It mentions 'absolute screen coordinates' and 'bounded duration,' but these are somewhat redundant with the schema's min/max values. It does not disclose side effects, error behavior, or device selection implications, which is a gap given the sparse annotations.

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 a single concise sentence that front-loads the action and includes essential scope ('absolute screen coordinates' and 'bounded duration') without unnecessary filler.

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

Completeness3/5

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

The description is adequate for a simple gesture tool but lacks details about return values, error conditions, or device prerequisites. Given no output schema and minimal annotations, it could be more complete, but it does cover the core action.

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?

The description adds meaning by clarifying that coordinates are absolute and that the duration is bounded, which helps interpret the x1/y1/x2/y2 and duration_ms parameters. However, it does not explain the start/end relationship or units, and schema coverage is low, so it only partially compensates.

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 states the tool's function: swiping between two absolute screen coordinates with a duration. It uses a specific verb ('swipe') and resource ('screen coordinates'), distinguishing it from siblings like tap or type_text.

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?

The description provides no guidance on when to use this tool versus alternatives like tap or type_text, nor does it mention any exclusions or prerequisites. Usage is only implied by the verb itself.

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/francbonet/Adb-MCP-Server'

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