Skip to main content
Glama

force_stop_app

Force stop Android apps to resolve unresponsiveness, crashes, or testing scenarios by terminating their processes immediately.

Instructions

Force stop an app

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
package_nameYes
device_serialNo

Implementation Reference

  • Handler function for the 'force_stop_app' tool. Uses the @mcp.tool() decorator which also handles registration in FastMCP. Executes ADB shell command to force-stop the specified app package.
    @mcp.tool() def force_stop_app(package_name: str, device_serial: str | None = None) -> str: """Force stop an app""" return run_adb(["shell", "am", "force-stop", package_name], device_serial)

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/rahulkr/r_adb_mcp_server'

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