Skip to main content
Glama

unifi_wan_status

Read-onlyIdempotent

Retrieve current WAN link, gateway IP, ISP and internet latency/drop status; optionally include historical ISP latency, loss, and uptime for a time range.

Instructions

WAN state: the configured WANs, the gateway's WAN IP, ISP and link status, internet latency and drops now, and (with a Site Manager key) ISP latency, loss and uptime over a range (default 24 h).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "unifi_wan_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteNoSite name, id or reference; optional while the console has a single site
sinceNoStart of the range: an ISO 8601 timestamp (2026-10-31T08:00:00Z) or a span back from now such as 90m, 24h, 7d or 2w
untilNoEnd of the range (default now): an ISO 8601 timestamp (2026-10-31T08:00:00Z) or a span back from now such as 90m, 24h, 7d or 2w

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, non-destructive and closed-world behavior, so the bar is lower, yet the description still adds real context: historical ISP metrics are gated on a Site Manager key, and the range defaults to 24 h. It does not spell out what happens when the key is absent (fields omitted vs. error), which is the one behavioral detail an agent would still have to discover by calling.

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

Conciseness4/5

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

One dense sentence with no filler, and the primary payload (WAN state and its components) is front-loaded before the conditional historical metrics. The trailing parenthetical is slightly awkward but carries necessary information rather than padding.

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

Completeness4/5

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

With three all-optional, fully documented parameters and no output schema, the description's enumeration of returned fields does the work the missing output schema would otherwise need to do, and it flags the key prerequisite. Only the degraded behavior without a Site Manager key and the multi-WAN return shape remain unstated.

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?

Schema coverage is 100%, so the baseline is 3; the description earns an extra point by supplying the default range (24 h) that the schema does not state for 'since' and by tying the range parameters to the Site Manager-key-gated metrics. It adds no further interpretation of the site parameter, but that is already fully documented in the schema.

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 names a specific resource (WAN state) and enumerates exactly what is reported: configured WANs, gateway WAN IP, ISP and link status, current latency/drops, and historical ISP latency/loss/uptime. That is far more concrete than a tautology, and it is clearly distinguishable from unifi_vpn_status. It loses a point only because it is a noun-phrase fragment with no explicit verb and never contrasts itself with a named alternative.

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

Usage Guidelines3/5

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

Usage is implied rather than stated — an agent can infer this is the tool for checking WAN/ISP health, and the parenthetical '(with a Site Manager key)' is a useful prerequisite for the historical metrics. However, there is no explicit when-to-use/when-not-to-use guidance and no routing to alternatives for related questions such as VPN or device status.

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