uninstall_app
Remove Android apps from devices by specifying package names, enabling developers to manage app installations during testing and development workflows.
Instructions
Uninstall an app
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"package_name": "<package_name>"
},
"name": "uninstall_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package_name | Yes | ||
| device_serial | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- src/adb_mcp_server/server.py:680-683 (handler)The main handler function for the 'uninstall_app' MCP tool. It is decorated with @mcp.tool() which handles both registration and schema definition via type hints. Executes ADB uninstall command on the specified package.
@mcp.tool() def uninstall_app(package_name: str, device_serial: str | None = None) -> str: """Uninstall an app""" return run_adb(["uninstall", package_name], device_serial)