Skip to main content
Glama

install_app

Install APK applications on connected Android devices by specifying the app file path.

Instructions

Install an App APK on the connected Android device

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
app_pathYes

Implementation Reference

  • Handler function for the 'install_app' tool. Installs an APK file on the connected Android device using the 'adb install' command. The @mcp.tool() decorator registers this function as an MCP tool, defining its schema implicitly via the function signature (app_path: str) -> str.
    @mcp.tool() def install_app(app_path: str) -> str: """Install an App APK on the connected Android device""" result = subprocess.run(["adb", "install", app_path], capture_output=True, text=True) if result.returncode != 0: raise RuntimeError(f"Error installing App: {result.stderr}") return f"App '{app_path}' has been installed 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