Skip to main content
Glama

app_clear_data

Wipe an Android app's data and cache via pm clear, resetting it to a fresh-install state. Use it to fix corrupted app state or start testing from a clean slate.

Instructions

Wipe an app's data and cache (pm clear) — resets it to a fresh-install state.

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

Input Schema

NameRequiredDescriptionDefault
packageYesPackage to clear

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does disclose the critical trait — this is a destructive operation that erases data and cache and returns the app to a fresh-install state — which is the most important context for a mutation tool. However, it omits whether the operation is reversible, permission/connection requirements, and failure behavior, leaving notable gaps.

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 tight sentence with the action and its consequence front-loaded and zero filler. Nothing could be trimmed without losing meaning.

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 simple one-parameter tool whose parameter is fully documented and with no output schema to explain, the description covers the core action and outcome. Still, for a destructive operation with no annotations, it should explicitly flag irreversibility and any prerequisites to be fully sufficient.

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?

There is a single required parameter with 100% schema description coverage, so the schema already documents it and the baseline is 3. The description's 'an app's data' implicitly ties the package parameter to the target app but adds no format or example details beyond the schema.

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 gives a specific verb ('Wipe'), resource ('an app's data and cache'), the underlying mechanism ('pm clear'), and the resulting state ('fresh-install'). An agent can immediately grasp what the tool does. It does not explicitly contrast with siblings like app_stop or app_install, which keeps it from a 5.

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 explicit guidance on when to choose this over alternatives (e.g., app_stop for halting an app vs. wiping its data), nor any statement of prerequisites such as the app needing to be installed or stopped first. The reset-to-fresh-install phrasing implies intent but is not framed as usage guidance or an exclusion.

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