Skip to main content
Glama

uninstall_app

Remove apps from Android devices by specifying their package names. This tool helps manage device storage and performance by uninstalling unwanted applications.

Instructions

Uninstall an app from the connected Android device

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
package_nameYes

Implementation Reference

  • The handler function for the 'uninstall_app' tool. It takes a package_name string parameter and uses the 'adb uninstall' command to remove the app from the connected Android device, returning a success message or raising an error.
    @mcp.tool() def uninstall_app(package_name: str) -> str: """Uninstall an app from the connected Android device""" result = subprocess.run(["adb", "uninstall", package_name], capture_output=True, text=True) if result.returncode != 0: raise RuntimeError(f"Error uninstalling app '{package_name}': {result.stderr}") return f"App '{package_name}' has been uninstalled successfully."

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/vs4vijay/espresso-mcp'

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