Skip to main content
Glama

android_act

Execute safety-checked Android UI and lifecycle actions (tap, type, swipe, back, launch, force-stop) and invalidate stale @eN references.

Instructions

Execute a safety-checked UI or lifecycle action and invalidate @eN refs.

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

Input Schema

NameRequiredDescriptionDefault
refNo
textNo
actionYes
packageNo
swipe_coordsNo
allow_top_barNo
allow_system_dialogNo

Output Schema

NameRequiredDescriptionDefault
okYes
errorNo
executed_actionNo
current_focus_packageNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does add two genuinely useful facts — actions are 'safety-checked' and refs are invalidated afterward — but 'safety-checked' is undefined, and it says nothing about what the safety checks block, what happens when a target is blocked by a top bar or system dialog, or how failures surface.

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?

A single front-loaded sentence with no filler — the verb leads and the side effect trails. It is efficient, though the brevity borders on under-specification for a 7-parameter tool.

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?

An output schema exists, so return values need not be explained, but for a 7-parameter, 0%-coverage action dispatcher with no annotations, the definition is far too thin. The critical per-action parameter contract — which fields are mandatory for tap versus type versus swipe versus launch — is absent and must be reverse-engineered.

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 7 parameters, so the description must compensate and largely does not. The only parameter-relevant information is the '@eN' ref format; nothing explains which of ref/text/package/swipe_coords each action requires, or what allow_top_bar and allow_system_dialog actually permit.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The verb 'Execute' is specific, but the resource is described generically as 'a UI or lifecycle action' — the actual action vocabulary (tap, type, swipe, back, launch, force_stop) lives only in the schema enum. It does distinguish itself from read-only siblings like android_assert and android_screenshot by implying state mutation, but the agent must open the schema to learn what it can actually do.

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 choose this tool over android_assert, android_snapshot, or android_screenshot, and no stated preconditions such as needing an active connection or valid @eN refs from a prior snapshot. The agent is left to infer the workflow entirely.

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