Skip to main content
Glama

Clear App Data

app_clear_data
DestructiveIdempotent

Clears all stored data for an installed Android app, like the system's Clear storage action, to reset app state for testing or troubleshooting. Specify package and optional device.

Instructions

Clear all data for an installed app (equivalent to clearing storage in settings)

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

Input Schema

NameRequiredDescriptionDefault
deviceIdNoTarget device serial
packageNameYesApplication package name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the safety profile is covered. The description's added value is the scope of destruction — all app data, not just caches — conveyed through the settings analogy. It stops short of stating that the loss is irreversible or whether the app must be stopped first.

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 sentence with zero padding, and the core action is front-loaded before the clarifying analogy. Its brevity is efficient, though it leaves little room for the cautions an irreversible operation warrants.

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 two-parameter tool with strong annotations, the essentials are covered. However, given destructiveHint=true and no output schema, the description should state irreversibility or post-clear side effects (e.g., app is force-stopped, data cannot be recovered) to be fully adequate for an agent deciding whether to call it.

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 coverage is 100%, with both packageName and deviceId documented in the schema. The description adds no format, default-device behavior, or package-name syntax beyond what the schema already provides, so the baseline of 3 applies.

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 ("clear all data for an installed app") and adds an analogy to a familiar settings action, which makes the effect immediately intelligible. It does not explicitly distinguish itself from nearby tools such as app_stop or logcat_clear, so sibling differentiation is left implicit.

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 when-to-use or when-not-to-use guidance, and no mention of alternatives (e.g., app_stop for merely halting a process) or prerequisites such as the app being installed. The settings-clear analogy hints at intent but does not route the agent between options.

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