Skip to main content
Glama
Mobile Device Farm MCP

Mobile Device Farm MCP

adb_clear_app_data

Clears an app's data and cache on a device to reset it to a fresh install state, helping reproduce bugs and run clean-state tests.

Instructions

Clear app data and cache (reset to 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": {
      "packageName": "<packageName>"
    },
    "name": "adb_clear_app_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
deviceIdNo
packageNameYesApp Bundle ID (e.g. com.example.app)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description carries the full burden and only partially meets it: it discloses that data and cache are wiped, which is the key destructive fact. It says nothing about irreversibility, whether the app is stopped first, required permissions, per-device scoping, or what is returned.

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 compact sentence with the destructive outcome front-loaded and zero wasted words. It is efficient, though the brevity leaves behavioral gaps rather than excess verbiage.

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, annotation-less, two-parameter tool with no output schema, the definition covers the core effect but omits target-device semantics, irreversibility, and post-condition state of the app process. An agent could invoke it, but not with full confidence about side effects.

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 50%: packageName is documented in the schema while deviceId is undocumented in both schema and description. The description adds no parameter meaning at all, leaving the deviceId (target device selection) entirely unexplained, which matters when multiple devices are connected.

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?

Names a specific verb+resource (clear app data and cache) and adds a parenthetical clarifying the resulting state (reset to fresh install state). The destructive scope is clear, though it doesn't differentiate itself from siblings like adb_force_stop or adb_install, which also touch app state.

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 phrase 'reset to fresh install state' implies when to use it — when a clean slate is wanted — but there is no explicit when/when-not guidance and no mention of alternatives such as force-stopping or reinstalling. Usage is inferable rather than stated.

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