Skip to main content
Glama

Diagnose gateway WAN & VPN health

diagnose_wan
Read-onlyIdempotent

Correlate WAN reachability evidence, latency, loss, speed tests, VPN status, and gateway logs to diagnose site connectivity issues over a chosen time window.

Instructions

Correlate WAN reachability evidence, latency, loss, speed tests, VPNs, and gateway logs.

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": "diagnose_wan"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteNo
hoursNo
includeSpeedtestNo

Output Schema

NameRequiredDescriptionDefault
wanYes
statusYes
findingsYes
warningsYes
nextStepsYes
recentLogsYes
vpnSummaryYes
requestLimitYes
controllerRequestsYes
telemetryAvailabilityYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv2.5.2
    • addedOutput schema / properties / controllerRequests
      Added value: +{
      +  "type": "integer"
      +}
    • addedOutput schema / properties / requestLimit
      Added value: +{
      +  "type": "integer"
      +}
    • addedOutput schema / properties / status
      Added value: +{}
    • addedOutput schema / properties / telemetryAvailability
      Added value: +{
      +  "type": "object"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "wan",
      -  "vpnSummary",
      -  "recentLogs",
      -  "findings",
      -  "nextSteps",
      -  "warnings"
      -]New value: +[
      +  "wan",
      +  "status",
      +  "telemetryAvailability",
      +  "controllerRequests",
      +  "requestLimit",
      +  "vpnSummary",
      +  "recentLogs",
      +  "findings",
      +  "nextSteps",
      +  "warnings"
      +]
  2. Changed1 schema field changedv2.0.0
    • addedInput schema / properties / site
      Added value: +{
      +  "type": "string"
      +}
  3. First observedv1.2.2

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already establish readOnlyHint, openWorldHint, idempotentHint, and destructiveHint=false, so safety is covered structurally. The description adds the useful detail that gateway logs and speed tests are pulled in (i.e., the call may be slow and broad), but it says nothing about latency, log depth, or cost of the correlation.

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?

A single front-loaded sentence with no filler and the key verb first. It is efficient, though arguably too terse for a multi-source diagnostic where a clause on scope or cost would earn 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?

An output schema exists, so return values need not be described, but for a three-parameter diagnostic with no schema descriptions and no usage guidance, the definition leaves the agent to guess site scoping and time window semantics. The single sentence is not enough to call the tool correctly without opening the schema.

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

Parameters3/5

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

Schema description coverage is 0%, so all three parameters (site, hours, includeSpeedtest) rely on names and defaults alone, and the description only gestures at speed tests without explaining the toggle, the lookback window, or site scoping. It does not compensate for the documentation gap, but the parameter names are largely self-explanatory.

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?

States a specific verb ("Correlate") plus the evidence classes it gathers (reachability, latency, loss, speed tests, VPNs, logs), so the agent knows this is an aggregate diagnostic rather than a single metric fetch. It never names neighbors such as get_wan_status, get_wan_ip_details, or diagnose_client, so sibling differentiation is left implicit.

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?

The word "Correlate" implies this is the tool to reach for when troubleshooting WAN/VPN problems, which is useful implied context. However, it gives no explicit when-to-use, when-not-to-use, or named alternative for a narrow stat lookup versus this multi-source sweep.

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