Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OPENWRT_MCP_KEYNoPrivate key path~/.ssh/openwrt-agent-mcp
OPENWRT_MCP_HOSTNoRouter address192.168.1.1
OPENWRT_MCP_USERNoSSH userroot
OPENWRT_MCP_AUDITNo0 disables the JSONL audit log1
PASSWALL2_ALLOW_WRITENo1 enables passwall2_switch_node0
OPENWRT_MCP_COMMAND_TIMEOUTNoPer-command timeout (s)20
OPENWRT_MCP_CONNECT_TIMEOUTNoSSH connect timeout (s)8

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
system_infoB

Read-only: board, OpenWrt release, kernel, uptime, load, memory, overlay.

network_statusA

Read-only: interfaces, WAN status (ubus), and the routing table.

wifi_statusB

Read-only: radios, channels, tx power and associated stations.

clientsB

Read-only: DHCP leases and ARP neighbours. Identifiers masked by default.

logsA

Read-only: last N lines of logread (1..200).

ubus_listA

Read-only: list ubus objects, or methods of one allowlisted object.

ubus_callB

Read-only: call a read method on an allowlisted ubus object. State-changing methods are refused before any SSH connection.

uci_getA

Read-only: uci get for an allowlisted config key. Secrets are redacted.

service_statusC

Read-only: init scripts and key daemon processes.

passwall2_statusB

Read-only: PassWall 2 service instance and running proxy process.

passwall2_nodesA

Read-only: configured PassWall 2 nodes. Only remarks/type are returned; servers, ports, keys and UUIDs never leave the router.

passwall2_activeB

Read-only: the tcp_node and udp_node currently selected.

passwall2_switch_nodeA

WRITE (gated): switch PassWall 2 to a node index. Requires PASSWALL2_ALLOW_WRITE=1 and confirm=true. Snapshots the previous node, reloads the service, probes DNS, and restores on failure.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.5/5.0

Scored across 13 tools

Disambiguation4/5

Most tools cover clearly distinct resources: system, network, wifi, clients, logs, ubus, uci, services, and PassWall. The PassWall trio (status, nodes, active) and generic service_status could be momentarily confused, but their descriptions make the boundaries clear.

Naming Consistency4/5

All names use snake_case, with a readable resource_status or namespace_action pattern such as network_status, ubus_list, uci_get, and passwall2_switch_node. Bare names like clients and logs are minor deviations but still clear.

Tool Count5/5

13 tools is a well-scoped count for router diagnostics plus focused PassWall management. Each tool covers a distinct observability area or a clearly gated write operation.

Completeness4/5

The read-only surface is broad and covers the main diagnostic areas of an OpenWrt router, including system, network, wifi, clients, logs, ubus, uci, services, and PassWall. It intentionally lacks broader write operations such as uci_set, service restart, firewall inspection, or package management, which are minor gaps given the safe read-only design.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues