Skip to main content
Glama
jsebgiraldo

OpenWRT SSH MCP Server

by jsebgiraldo

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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"],
            }
  • 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": [],
        },
    ),
  • 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()
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the tool retrieves status information, implying a read-only operation, but doesn't specify if it requires authentication, has rate limits, or details the return format. For a tool with zero annotation coverage, this is a significant gap in transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that directly states the tool's function without any fluff. It's appropriately sized and front-loaded, making it easy to understand quickly. Every word earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the lack of annotations and output schema, the description is incomplete. It doesn't explain the return values (e.g., format of status data), error conditions, or dependencies. For a tool that retrieves system status, more context is needed to ensure the agent can use it effectively.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 0 parameters with 100% coverage, meaning no parameters are documented in the schema. The description doesn't need to add parameter details since there are none, so it appropriately focuses on the tool's purpose. This meets the baseline for zero parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose with a specific verb ('Get') and resource ('WiFi status'), including what information it retrieves ('connected clients and signal strength'). It distinguishes itself from siblings like 'openwrt_get_system_info' by focusing specifically on WiFi. However, it doesn't explicitly differentiate from all siblings, such as 'openwrt_get_firewall_rules', though the specificity is sufficient for clarity.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites, context, or exclusions, such as whether it's for real-time monitoring or configuration checks. With many sibling tools available, this lack of usage context leaves the agent without clear direction.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/jsebgiraldo/openwrt_ssh_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server