openwrt_get_wifi_status
Retrieve WiFi status details including connected clients and signal strength from OpenWRT routers via SSH for network monitoring and management.
Instructions
Get WiFi status including connected clients and signal strength
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- openwrt_ssh_mcp/tools.py:130-156 (handler)The actual implementation of the get_wifi_status method that executes 'ubus call network.wireless status' command on the OpenWRT router and returns the parsed WiFi status information including connected clients and signal strength.async def get_wifi_status() -> dict[str, Any]: """ Get WiFi status and connected clients. Returns: dict: WiFi status information """ command = "ubus call network.wireless status" result = await OpenWRTTools.execute_command(command) if result["success"]: try: wifi_data = json.loads(result["output"]) return { "success": True, "wifi_status": wifi_data, } except json.JSONDecodeError: return { "success": True, "wifi_status": result["output"], } else: return { "success": False, "error": result["error"], }
- openwrt_ssh_mcp/server.py:88-96 (schema)Tool schema definition that registers openwrt_get_wifi_status with its name, description, and input schema (no parameters required).Tool( name="openwrt_get_wifi_status", description="Get WiFi status including connected clients and signal strength", inputSchema={ "type": "object", "properties": {}, "required": [], }, ),
- openwrt_ssh_mcp/server.py:313-314 (registration)Router registration that maps the tool name 'openwrt_get_wifi_status' to its handler method OpenWRTTools.get_wifi_status().elif name == "openwrt_get_wifi_status": result = await OpenWRTTools.get_wifi_status()