Skip to main content
Glama

clear_app_data

Destructive

Clears an app's data on Android or iOS: use cache mode to remove temporary files while keeping logins and databases, or all mode to reset the app to a fresh install state.

Instructions

Clear app data. Mode "cache" clears only temporary files (preserves storage, databases, login). Mode "all" returns app to fresh install state.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "clear_app_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoWhat to clear. "cache": only temporary files and cache (preserves storage, databases, login). "all": everything — app returns to fresh install state. Default: cachecache
observeNoCapture screenshot after action. Default: none
packageNoApp package name (Android, e.g. com.example.app) or bundle ID (iOS). Optional — defaults to the app currently in the foreground.
platformNoTarget platform. Inferred if omitted.
device_idNoDevice ID. Omit for the connected device.
observe_delay_msNoMs to wait before observing. Default: 500

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.1

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already flag destructive=true and readOnly=false, but the description adds the crucial detail the annotations cannot convey: what survives cache mode (storage, databases, login) versus the full reset in all mode. It stops short of stating irreversibility or whether the app must be relaunched.

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?

Two tight sentences, with the destructive distinction front-loaded. The mode wording partially duplicates the mode parameter's schema description, a minor cost justified by it being the key risk-bearing choice.

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?

With six optional parameters fully documented in the schema, annotations covering the safety profile, and no output schema, the description supplies what matters most: the consequence of each mode. Only post-clear behavior (relaunch needed, state of running process) is unaddressed.

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% and the mode enum already documents both values, so the description's mode explanation largely restates the schema. Baseline 3 applies since the schema carries the parameter burden.

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?

"Clear app data" is a specific verb+resource pair, and the two mode descriptions make the operation's scope concrete. It does not name the nearby alternatives (uninstall_app, kill_app), so differentiation from those siblings is left to inference.

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 mode explanations implicitly tell an agent which variant to pick (cache for cleanup, all for reset), but there is no explicit statement of when to prefer this over uninstall_app or kill_app, nor any prerequisite such as stopping the app first.

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