Skip to main content
Glama
Android Use
by JackCaow

aua_swipe

Perform a single swipe in a specified direction on an Android device to reveal or navigate UI content, optionally within a display-pixel region and with observation for next-step context.

Instructions

Perform one swipe. Direction is finger motion: up usually reveals later rows. Use display-pixel region if needed, observe for next-step context. No automatic retries.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "aua_swipe"
  }
}

Input Schema

NameRequiredDescriptionDefault
regionNo
observeNonone
durationNo
wait_forNo
directionNoup
observation_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.5.2
    • addedInput schema / $defs / Selector
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "class_name": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Class Name"
      +    },
      +    "clickable": {
      +      "anyOf": [
      +        {
      +          "type": "boolean"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Clickable"
      +    },
      +    "description": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Description"
      +    },
      +    "description_contains": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Description Contains"
      +    },
      +    "enabled": {
      +      "anyOf": [
      +        {
      +          "type": "boolean"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Enabled"
      +    },
      +    "focused": {
      +      "anyOf": [
      +        {
      +          "type": "boolean"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Focused"
      +    },
      +    "index": {
      +      "anyOf": [
      +        {
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Index"
      +    },
      +    "package": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Package"
      +    },
      +    "resource_id": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Resource Id"
      +    },
      +    "text": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Text"
      +    },
      +    "text_contains": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Text Contains"
      +    }
      +  },
      +  "title": "Selector",
      +  "type": "object"
      +}
    • addedInput schema / $defs / WaitCondition
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "selector": {
      +      "$ref": "#/$defs/Selector"
      +    },
      +    "state": {
      +      "default": "visible",
      +      "enum": [
      +        "visible",
      +        "gone"
      +      ],
      +      "title": "State",
      +      "type": "string"
      +    },
      +    "timeout_seconds": {
      +      "default": 5,
      +      "maximum": 20,
      +      "minimum": 0,
      +      "title": "Timeout Seconds",
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "selector"
      +  ],
      +  "title": "WaitCondition",
      +  "type": "object"
      +}
    • addedInput schema / properties / wait_for
      Added value: +{
      +  "anyOf": [
      +    {
      +      "$ref": "#/$defs/WaitCondition"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
  2. First observedv0.2.1

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnly=false, idempotent=false, openWorld=true, so the mutation framing is covered. The description adds genuine value with 'No automatic retries,' warning the agent it must handle failure itself, and with the observe hint. It says nothing about duration limits, wait_for timing, or the 2s cap, which are behavioral traits the agent should know.

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?

Four short sentences, action first, with no filler. The telegraphic phrasing ('observe for next-step context') is slightly compressed but each sentence carries information.

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 6-parameter gesture tool with no output schema and a complex nested wait_for/selector structure, the description covers the core action and one or two parameters but leaves the majority of the schema unexplained. An agent could call it correctly for a basic swipe but would be guessing on wait_for and observation_id.

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?

Schema description coverage is 0%, so the description must compensate, and it only partly does: direction ('finger motion, up reveals later rows'), region ('display-pixel region'), and observe ('for next-step context') get meaning. duration, wait_for, observation_id, and the nested Selector fields remain entirely 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?

States a specific verb and resource: 'Perform one swipe,' and clarifies the direction parameter's semantics as finger motion. It stops short of naming siblings like aua_drag or aua_scroll_until, so an agent still has to infer why it would pick this over those.

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?

'Up usually reveals later rows' and 'use display-pixel region if needed' give implied usage context, but there is no explicit when-to-use/when-not guidance against the many sibling gesture tools (aua_drag, aua_scroll_until, aua_tap). 'No automatic retries' hints at a caller responsibility but not at when the tool is appropriate.

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