Skip to main content
Glama
mobile-next

Mobile Next MCP Server

Official
by mobile-next

Clear App Data

mobile_clear_app_data
Destructive

Clear an app's cache, documents, preferences, and databases and stop it so its next launch starts fresh; the app stays installed. Works on Android devices/emulators and iOS simulators.

Instructions

Clear an app's data, such as its cache, documents, preferences and databases, and stop the app, so the next launch starts as if freshly installed. The app stays installed. Supported on Android devices and emulators and on iOS simulators, not on real iOS devices.

Input Schema

NameRequiredDescriptionDefault
deviceYesThe device identifier to use. Use mobile_list_available_devices to find which devices are available to you.
packageNameYesThe package name (Android) or bundle id (iOS) of the app to clear

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.15

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, and the description goes well beyond that: it names exactly what is destroyed, notes the app is stopped as a side effect, and confirms the app binary remains installed. The platform restriction is a behavioral constraint an agent could not infer from structured fields.

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?

Three sentences, each carrying distinct load: what is cleared, what state results, and where it is supported. The most important consequence (data loss plus fresh-install state) is front-loaded.

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

Completeness5/5

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

For a two-parameter destructive tool with full schema coverage and no output schema, the description covers effect, side effects, persistence of the app, and platform limits. Nothing an agent needs before invoking it is missing.

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% and both parameters are documented in the schema, including how to discover device identifiers. The description adds no additional parameter-level semantics, so the baseline of 3 applies.

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?

Specific verb (clear) plus resource (app data) with the exact data categories enumerated (cache, documents, preferences, databases) and the resulting state (stopped, fresh-install on next launch). It also distinguishes itself from mobile_uninstall_app by stating the app stays installed.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

States the effect clearly enough to route between this and mobile_uninstall_app, and gives an explicit platform eligibility rule (Android devices/emulators, iOS simulators, not real iOS devices). It never names the sibling alternative explicitly, so it stops short of full when/when-not guidance.

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