Skip to main content
Glama

reboot_device

Restart Android devices in normal, bootloader, or recovery modes for development, testing, and debugging workflows.

Instructions

Reboot the device. mode: 'normal', 'bootloader', 'recovery'

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNonormal
device_serialNo

Implementation Reference

  • The handler function for the 'reboot_device' tool. Decorated with @mcp.tool() which handles registration in FastMCP. Executes ADB reboot commands based on the mode: normal, bootloader, or recovery. Returns the output from run_adb or an error message for invalid mode.
    def reboot_device(mode: str = "normal", device_serial: str | None = None) -> str: """ Reboot the device. mode: 'normal', 'bootloader', 'recovery' """ if mode == "normal": return run_adb(["reboot"], device_serial) elif mode in ["bootloader", "recovery"]: return run_adb(["reboot", mode], device_serial) return "Invalid mode. Use: normal, bootloader, recovery"

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