Skip to main content
Glama

swipe

Destructive

Drag one finger in a straight line between two screen points and release for precise gestures like row actions, sliders, and edge gestures. Verify the result with describe_ui or screenshot.

Instructions

Drag one finger in a straight line from one point to another (screen points), then release. Use it for precise gestures such as row actions, sliders or edge swipes; to scroll content use scroll, and to scroll until an element appears use tap_element with scrollDirection. A shorter duration makes a faster drag. Doesn't check the result; verify with describe_ui or screenshot.

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": {
      "fromX": "<fromX>",
      "fromY": "<fromY>",
      "toX": "<toX>",
      "toY": "<toY>"
    },
    "name": "swipe"
  }
}

Input Schema

NameRequiredDescriptionDefault
toXYesEnd, points from left
toYYesEnd, points from top
fromXYesStart, points from left
fromYYesStart, points from top
deviceNoDevice UDID or name substring. Defaults to the select_device choice, then IOS_DEVICE_MCP_DEVICE, else the single USB-connected device.
durationNoSeconds (default 0.3)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.2.2
    • addedInput schema / properties / fromX / description
      Added value: +"Start, points from left"
    • addedInput schema / properties / fromY / description
      Added value: +"Start, points from top"
    • addedInput schema / properties / toX / description
      Added value: +"End, points from left"
    • addedInput schema / properties / toY / description
      Added value: +"End, points from top"
  2. First observedv0.1.0

TDQS

A4.7/5.0
Behavior4/5

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

The annotations already declare destructiveHint=true and readOnlyHint=false, so the description adds value by stating 'Doesn't check the result; verify with describe_ui or screenshot' and 'A shorter duration makes a faster drag.' It does not detail what could be destroyed or error conditions, but the verification note is a meaningful behavioral addition beyond the 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 three efficient sentences: definition first, usage guidance second, and behavioral caveat third. Every sentence carries useful information with no wasted wording.

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

Completeness5/5

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

Given the tool's complexity (six parameters, four required), the presence of annotations, and no output schema, the description is complete enough. It covers purpose, alternatives, duration semantics, and the need to verify results, leaving no critical gap for an agent to call it correctly.

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?

Schema coverage is 100%, so the schema already documents all six parameters. The description adds meaning beyond the schema by clarifying that 'A shorter duration makes a faster drag' and that coordinates are 'screen points,' which helps interpret the duration and from/to parameters.

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 states a specific verb and resource ('Drag one finger in a straight line... then release') and distinguishes it from scrolling and tap_element alternatives. An agent can identify the exact gesture and its scope without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly names when to use it ('precise gestures such as row actions, sliders or edge swipes') and when to use alternatives ('to scroll content use scroll, and to scroll until an element appears use tap_element with scrollDirection'). No inference is required.

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