Skip to main content
Glama
owine

UniFi Network MCP Server

by owine

unifi_get_network

Read-only

Get a network or VLAN by its ID to view full configuration details, including IPv4/IPv6, DHCP, DNS, and feature flags.

Instructions

Get a network/VLAN by ID. Returns the list fields PLUS (live-verified) isolationEnabled, internetAccessEnabled, mdnsForwardingEnabled, cellularBackupEnabled, a full ipv4Configuration object (autoScaleEnabled, hostIpAddress, prefixLength, dhcpConfiguration with mode/ipAddressRange/leaseTimeSeconds/domainName/pingConflictDetectionEnabled/ntpServerIpAddresses), and an ipv6Configuration object (interfaceType, clientAddressAssignment, routerAdvertisement, hostIpAddress, prefixLength). NOTE: subnet/DHCP detail appears here at get-by-id but NOT in unifi_list_networks (sparse list view).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
siteIdYesSite ID
networkIdYesNetwork ID

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
nameNo
vlanIdNo
zoneIdNo
defaultNo
enabledNo
metadataNo
managementNo
dhcpGuardingNo
isolationEnabledNo
ipv4ConfigurationNo
ipv6ConfigurationNo
cellularBackupEnabledNo
internetAccessEnabledNo
mdnsForwardingEnabledNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.13.0
    • addedOutput schema / properties / ipv6Configuration
      Added value: +{}
  2. Addedv2.10.0
  3. Removedv2.9.0
  4. First observedv2.8.0

TDQS

A4.4/5.0
Behavior4/5

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

The annotations already cover read-only and non-destructive behavior, so the description need not repeat that. It adds value beyond the schema by summarizing the exact fields returned (e.g., 'live-verified' flags, ipv4Configuration, ipv6Configuration) and the contrast with the list view. This gives the agent concrete expectations about the response richness, which is useful context beyond what the output schema alone conveys.

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?

The description is a single dense paragraph, but every sentence carries important information: the core purpose, the full list of returned fields, and the critical distinction from the list tool. It is front-loaded with the primary action and then details, with no redundant fluff. The length is justified by the richness of the response it describes.

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

Completeness5/5

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

Given that the tool has only two parameters, an output schema exists, and annotations cover safety, the description is complete. It tells the agent what the tool does, what it returns, and when to choose it over a sibling. There is nothing an agent would need to know to call this tool correctly that is missing.

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?

Both parameters (siteId, networkId) have minimal schema descriptions ('Site ID', 'Network ID') with 100% coverage. The tool description does not add any additional meaning or usage context for these parameters, so it does not improve on what the schema already provides. Baseline of 3 is appropriate.

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?

The description states a specific verb+resource ('Get a network/VLAN by ID') and immediately distinguishes it from the sibling list tool by noting the extra fields returned. This makes the tool's purpose unmistakable and clearly differentiates it from unifi_list_networks.

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?

The description explicitly tells the agent when to use this tool over the list variant: 'subnet/DHCP detail appears here at get-by-id but NOT in unifi_list_networks (sparse list view).' This provides a clear decision rule for selecting the appropriate tool based on the need for detailed network configuration.

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