Skip to main content
Glama

Swipe

swipe

Execute a swipe gesture on an Android device by specifying start and end coordinates. Set optional duration to adjust swipe speed.

Instructions

Swipe from (x1, y1) to (x2, y2). duration (seconds) is accepted for old clients.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
x1Yes
x2Yes
y1Yes
y2Yes
deviceNo
durationNo
duration_msNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/5.0
Behavior2/5

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

No annotations exist, so the description must disclose behavior itself. It adds the legacy-seconds detail about duration, but does not explain coordinate system, swipe speed/timing defaults, or side effects of swiping on the device. For an input action that can affect UI state, this is a real gap.

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?

The text is compact and front-loaded: the action and coordinates come first, with a short clarifying note after. It earns its place with no filler, though it is terse enough that some content is missing.

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?

For a simple two-point swipe with an output schema, the core call is understandable: coords are required and duration semantics are hinted. Missing details (duration_ms default behavior, device selection, when to choose swipe vs scroll) leave moderate ambiguity for an agent without prior context.

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%, so the description must compensate; it only clarifies duration's unit/legacy status. The four coordinates are self-explanatory by naming, but device and duration_ms/'duration vs duration_ms' semantics remain undocumented.

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?

The description names the action ('Swipe') with explicit coordinates, so the tool's purpose is unambiguous and distinguishable from tap/scroll siblings. It could mention the target surface (screen) or that it is a touch gesture, but the intent is clear.

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 a swipe over the many sibling gestures (tap, long_press, scroll_*), nor when device, duration_ms, or duration should be provided. The only usage hint is that duration is for old clients, which is a compatibility note, not a selection criterion.

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