Skip to main content
Glama

shell_command

Execute ADB shell commands on Android devices for debugging, testing, and device management through the Enhanced ADB MCP Server.

Instructions

Execute an arbitrary ADB shell command. Use with caution - this gives full shell access.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commandYes
device_serialNo

Implementation Reference

  • Handler and registration for the 'shell_command' tool via @mcp.tool() decorator. Executes arbitrary ADB shell commands using the run_adb helper.
    @mcp.tool() def shell_command(command: str, device_serial: str | None = None) -> str: """ Execute an arbitrary ADB shell command. Use with caution - this gives full shell access. """ return run_adb(["shell", command], device_serial)
  • Decorator that registers the shell_command function as an MCP tool.
    @mcp.tool()

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