Skip to main content
Glama

swipe

Move one touch from a start point to an end point over a set duration, using coordinates or element references from the same screenshot or element observation.

Instructions

Move one touch from start to end over a specified duration. Both endpoints must come from the same take_screenshot or list_elements observation.

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": {
      "start": "<start>",
      "end": "<end>"
    },
    "name": "swipe"
  }
}

Input Schema

NameRequiredDescriptionDefault
endYes
startYes
device_idNo
timeout_msNo
duration_msNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, idempotentHint=false, destructiveHint=false. The description adds genuine value beyond that by disclosing the gesture is a single touch with a duration and, critically, that both endpoints must be drawn from one observation. It does not say what happens on a cross-observation mismatch (error vs. silent failure), nor how duration affects fling/inertia behavior.

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, both earning their place: the first states the action, the second states the hard precondition. The precondition is not buried and there is no filler or restatement of the tool name.

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 5-parameter, 0%-coverage input schema with no output schema, the description covers the single most important invariant but omits device targeting, timeout behavior, and coordinate-space semantics. An agent could call it correctly on the common path but would be guessing on several optional parameters.

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% across 5 parameters, so the description must compensate and largely does not. It clarifies duration ('over a specified duration') and the provenance of snapshot_id/observation_id, but says nothing about device_id, timeout_ms, coordinate_space, the ref-vs-x/y alternative, or the valid numeric ranges, leaving most parameters to be reverse-engineered from the raw schema.

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 gives a concrete verb and resource: 'Move one touch from start to end over a specified duration', which unambiguously describes a swipe gesture. It does not, however, distinguish itself from the sibling 'drag' or 'scroll', so an agent comparing gestures must infer the boundary between them.

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 second sentence imposes a real usage constraint (both endpoints must come from the same take_screenshot or list_elements observation), which is useful selection guidance. But there is no explicit statement of when to prefer swipe over drag, scroll, long_press, or pinch, so the when-to-use rule is only implied.

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