Skip to main content
Glama
Android Use
by JackCaow

aua_press_button

Press a single Android hardware button such as home, back, recent, enter, or volume up/down to navigate the device or submit input. Enter requires user authorization before it sends.

Instructions

Press home/back/recent/enter/volume once. Enter may submit; user must authorize it.

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": {
      "name": "<name>"
    },
    "name": "aua_press_button"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
observeNonone
wait_forNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.5.2
    • addedInput schema / $defs
      Added value: +{
      +  "Selector": {
      +    "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"
      +  },
      +  "WaitCondition": {
      +    "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

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false and openWorldHint=true, so the mutating, non-repeatable nature is covered structurally. The description adds real value by warning that Enter may submit something and requires user authorization, which is not in the annotations. It says nothing about the observation or wait side effects the tool can trigger.

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?

Two short sentences with the core action front-loaded and no filler. The second sentence is well placed as a safety caveat, though the phrasing is terse to the point of being cryptic about what 'authorize' requires.

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

Completeness2/5

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

For a 3-parameter tool with a nested WaitCondition and no output schema, the description leaves two of three parameters undocumented and never explains what the call returns or how waiting/observation interact with the press. It covers the action and its risk but not the tool's full surface.

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 carries the full burden, yet it only partially enumerates the 'name' enum and never explains the 'observe' (none/tree/screenshot/both) or 'wait_for' (selector + state + timeout) parameters. An agent cannot learn from the text that a press can also return a UI tree or screenshot or block until a condition holds.

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 ('Press') and names the concrete buttons: home/back/recent/enter/volume. It is distinguishable from siblings like aua_tap or aua_long_press, which act on screen elements rather than hardware/navigation keys. It slightly underspecifies by lumping volume_up/volume_down under 'volume'.

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?

No guidance on when to choose this over aua_tap, aua_screen_action, or aua_type_text, and no prerequisites beyond a passing note that Enter requires user authorization. The agent must infer that this is the tool for hardware/nav keys rather than screen coordinates.

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