Skip to main content
Glama

uninstall_app

Remove apps from Android devices by specifying the package name, ensuring easy and precise app management on connected devices.

Instructions

Uninstall an app from the connected Android device

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
package_nameYes

Implementation Reference

  • The main handler function for the 'uninstall_app' tool. It executes the uninstallation using the 'adb uninstall' command on the specified package name. The @mcp.tool() decorator also registers this function as an MCP tool.
    @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