Skip to main content
Glama

toggle_wifi

Control WiFi connectivity on Android devices for testing, development, or troubleshooting scenarios. Turn WiFi on or off to manage network conditions during app testing, debugging, or device configuration workflows.

Instructions

Enable or disable WiFi

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
enableYes
device_serialNo

Implementation Reference

  • The toggle_wifi tool handler, decorated with @mcp.tool() for registration. Executes ADB shell command to enable or disable WiFi on the Android device.
    @mcp.tool() def toggle_wifi(enable: bool, device_serial: str | None = None) -> str: """Enable or disable WiFi""" state = "enable" if enable else "disable" return run_adb(["shell", "svc", "wifi", state], 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