Critical Risk →

uninstall_package

Uninstalls the specified package from the connected Android device. Requires the package_name parameter, which is the name of the package to uninstall.

How to control uninstall_package ↓

What uninstall_package does on Ultimate Android MCP

AI agents call uninstall_package to permanently remove resources in Ultimate Android MCP — typically in cleanup and lifecycle workflows. It does its job in a single call, and there is no undo.

Critical Risk

Why uninstall_package needs a policy

Uninstalling a package permanently removes the application and its associated data from the device. This is an irreversible action that cannot be undone by the tool itself. While not as severe as wiping an entire device, unauthorized uninstallation of critical system packages or user applications could cause significant device malfunction or data loss.

From the tool's definition Tool description states it 'Uninstalls the specified package from the connected Android device' - uninstall is an irreversible operation that removes application data and cannot be undone without reinstallation.

Documented attack patterns abuse exactly the kind of access uninstall_package gives an agent:

How to control uninstall_package

PolicyLayer is an MCP gateway — it sits between your AI agents and Ultimate Android MCP, and nothing reaches the server without passing your rules. This is the rule we recommend for uninstall_package:

policy.json
{
  "version": "1",
  "default": "deny",
  "hide": [
    "uninstall_package"
  ]
}

uninstall_package disappears from the agent's tool list entirely, and any attempt to call it is denied. The rest of the server keeps working.

  1. Create a free account and register Ultimate Android MCP — nothing to install.
  2. Add this policy — paste it, or build it visually.
  3. Point your MCP client (Claude, Cursor, anything) at your gateway URL.
RESTRICT THIS TOOL →

Free to start. No card required.

Related tools and policies

Go deeper

Questions about uninstall_package

What does the uninstall_package tool do? +

Uninstalls the specified package from the connected Android device. Requires the package_name parameter, which is the name of the package to uninstall. It is categorised as a Destructive tool in the Ultimate Android MCP MCP Server, which means it can permanently delete or destroy data. Block by default and require explicit approval.

How do I enforce a policy on uninstall_package? +

Register the Ultimate Android MCP server in PolicyLayer and add a rule for uninstall_package: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Ultimate Android MCP. Nothing to install.

What risk level is uninstall_package? +

uninstall_package is a Destructive tool with critical risk. Critical-risk tools should be blocked by default and only enabled with explicit human approval.

Can I rate-limit uninstall_package? +

Yes. Add a rate_limit block to the uninstall_package rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.

How do I block uninstall_package completely? +

Set action: deny in the PolicyLayer policy for uninstall_package. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.

What MCP server provides uninstall_package? +

uninstall_package is provided by the Ultimate Android MCP server (oddlyspaced/ultimate-android-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

Enforce policy on every Ultimate Android MCP tool call.

Start from Ultimate Android MCP, add the rest of your stack, and see everything your agents can call. Then put policy on all of it.

Free to start. No card required.

35 Ultimate Android MCP tools catalogued and risk-classified — across an index of 43,000+ MCP servers.

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.