Skip to main content
Glama
unifi-mcp-server

unifi-mcp-server

by PainInTheNic

Get Network References

unifi_get_network_references
Read-onlyIdempotent

Lists clients, devices, WiFi SSIDs, routes, NAT rules, and SD-WAN dependencies for a LAN network or VLAN so you can assess impact before deleting or reconfiguring it.

Instructions

List what depends on a LAN network/VLAN — clients, devices, WiFi SSIDs, static/OSPF routes, NAT rules, SD-WAN. Check this BEFORE deleting or heavily reconfiguring a network to see what would break. IDs come from unifi_list_networks.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "networkId": "<networkId>"
    },
    "name": "unifi_get_network_references"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteIdNoSite ID (UUID from unifi_list_sites). Optional — when the console has exactly one site it is used automatically.
networkIdYesNetwork ID (UUID from unifi_list_networks)
responseFormatNo'markdown' for a compact human-readable summary (default), 'json' for full raw API datamarkdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so safety is covered; the description adds value by disclosing the breadth of the result set (openWorld-ish dependency scan across routes, NAT, SD-WAN) and framing it as a pre-mutation impact check. It does not describe result volume or ordering, which is a minor remaining gap.

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?

Two sentences with no filler: the first defines the output scope, the second gives the decision rule and the ID source. Front-loaded and every clause earns its place.

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?

For a read-only, three-parameter tool with no output schema, the description does the important work of naming what comes back by category, which is the main thing an agent needs before calling. It stops short of describing response shape or how dependencies are grouped, but that is a small omission given the annotations and full schema coverage.

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 100%, so all three parameters (siteId, networkId, responseFormat) are already documented in-schema. The description's "IDs come from unifi_list_networks" restates the networkId description rather than adding new meaning, so the baseline 3 applies.

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

Purpose5/5

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

"List what depends on a LAN network/VLAN" gives a specific verb and resource, then enumerates the exact dependency categories (clients, devices, WiFi SSIDs, static/OSPF routes, NAT rules, SD-WAN). This clearly separates it from unifi_get_network (single-network detail) and unifi_list_networks (enumeration) without needing to open any schema.

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

Usage Guidelines5/5

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

Explicitly states the trigger condition: "Check this BEFORE deleting or heavily reconfiguring a network to see what would break." It also closes the ID-provenance loop with "IDs come from unifi_list_networks," so an agent knows both when to call it and where the required argument comes from.

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

Deploy Server

Other Tools