Skip to main content
Glama

app_action

Destructive

Change an Android app's state by force-stopping, clearing data, uninstalling, granting or revoking permissions, or closing its window while it keeps running.

Instructions

Changes an app's state: force_stop, clear_data (also stops it), uninstall, uninstall_keep_data, grant or revoke a runtime permission, or close_window (closes its own window or hidden display; the app keeps running).

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

Input Schema

NameRequiredDescriptionDefault
actionYes
packageYes
permissionNoFor grant and revoke, such as android.permission.CAMERA.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations only declare destructiveHint=true, and the description adds real substance: it identifies which actions destroy data (clear_data, uninstall), that uninstall_keep_data preserves data, and that close_window is non-fatal to the process. It stops short of stating prerequisites such as required permissions for uninstall or grant/revoke, or what failure looks like.

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?

A single front-loaded sentence with parentheticals that each carry genuinely distinguishing information (clear_data stops the app, close_window leaves it running). No filler.

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 destructive, three-parameter tool with no output schema, the description covers actions well but omits failure modes, permission prerequisites for uninstall, and the package parameter's meaning. It is adequate but leaves meaningful gaps an agent would hit at call time.

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 only 33% – only the permission parameter is documented in the schema. The description compensates partially by spelling out the semantics of each action enum value and the grant/revoke pairing with permission, but it never clarifies that package is the Android package name or what the pattern enforces.

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 opens with a specific verb and resource ("Changes an app's state") and then enumerates all seven action values, so an agent knows exactly which state mutations are available. It is very clear on its own terms but never explicitly distinguishes itself from siblings such as launch_app or install_apk.

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?

It provides useful in-tool disambiguation between overlapping actions (clear_data also stops the app; close_window leaves it running), which helps pick the right action value. However, it gives no guidance on when to reach for this tool versus sibling tools like list_apps, install_apk, or launch_app.

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