Skip to main content
Glama

Clear app data

clear_app_data

Resets an Android app to a fresh-install state by clearing all its data. Use it to test clean app behavior or fix issues caused by existing data.

Instructions

Clear all data of an app (pm clear) — resets it to a fresh-install state.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
appIdNoApplication id (defaults to session)
serialNoDevice serial (defaults to session or the only device)
Behavior4/5

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

With no annotations provided, the description carries the full transparency burden. It clearly discloses the destructive nature ('Clear all data') and the resulting state ('fresh-install state'), indicating irreversibility. It could mention additional effects like clearing permissions or requiring the app to be stopped, but the core behavior is transparent.

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?

The description is a single, front-loaded sentence that conveys the essence without waste. The parenthetical 'pm clear' adds useful technical context, and the dash clause clarifies the outcome. Every word earns its place.

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

Completeness4/5

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

For a simple tool with two optional parameters and no output schema, the description is largely complete. It explains what happens and the end state. It could add more about when to use it (e.g., for resetting an app's state before testing), but the core semantics are sufficiently clear for an agent to invoke the tool correctly.

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 100% for both parameters (appId and serial), so the baseline is 3. The description does not add any parameter-specific meaning beyond the schema, but that is acceptable given the high schema coverage.

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

Purpose5/5

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

Clearly states the action: 'Clear all data of an app' with the specific resource 'app' and the effect 'resets it to a fresh-install state.' The mention of 'pm clear' further anchors the operation, distinguishing it from sibling tools like uninstall_app or stop_app.

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?

The description implies usage by stating it resets to fresh-install, but it does not explicitly say when to use this tool vs alternatives such as uninstall_app or clear only specific data. No exclusions or alternative references are provided, making it an implied but not fully guided usage.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dev-jackson/androidbuild-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server