Skip to main content
Glama
owine

UniFi Network MCP Server

by owine

Get network

unifi_get_network
Read-only

Retrieve a network or VLAN by ID to view subnet, DHCP, IPv4/IPv6 settings, and feature flags like isolation and internet access.

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 — which may contain empty-string entries), and an ipv6Configuration object when IPv6 is configured (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

NameRequiredDescriptionDefault
siteIdYesSite ID
networkIdYesNetwork ID

Output 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. Changed4 schema fields changedv2.15.0
    • addedInput schema / properties / networkId / pattern
      Added value: +"^[A-Za-z0-9_-]{1,64}$"
    • addedInput schema / properties / siteId / pattern
      Added value: +"^[A-Za-z0-9_-]{1,64}$"
    • changedOutput schema / additionalProperties
      Previous value: -falseNew value: +{}
    • addedOutput schema / properties / metadata / properties / configurable
      Added value: +{
      +  "type": "boolean"
      +}
  2. Changed1 schema field changedv2.13.0
    • addedOutput schema / properties / ipv6Configuration
      Added value: +{}
  3. Addedv2.10.0
  4. Removedv2.9.0
  5. First observedv2.8.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare a safe read (readOnlyHint=true, destructiveHint=false), and the description adds real behavioral context: 'live-verified' field reliability, the empty-string caveat in ntpServerIpAddresses, and the conditional presence of ipv6Configuration. It does not disclose auth needs or rate limits, keeping it below a 5.

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

Conciseness3/5

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

The purpose is correctly front-loaded in the first four words, but the rest is a long comma-chained enumeration of return fields that the output schema already covers. It is information-dense rather than padded with filler, yet the field lists strain readability.

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 an output schema present, enumerating return fields is largely redundant, so the description's real contribution is the list-vs-get sparseness distinction and the empty-string caveat, both genuinely useful. For a 2-param read tool with full annotations and an output schema, nothing critical 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?

Schema description coverage is 100%, so both parameters (siteId, networkId) are already documented in the schema. The description adds only 'by ID', which maps to networkId but contributes no new syntax or format meaning beyond the existing pattern constraint.

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?

States a specific verb and resource ('Get a network/VLAN by ID') and explicitly names the sibling it differs from (unifi_list_networks), so an agent can distinguish it without opening schemas.

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

Usage Guidelines4/5

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

The NOTE establishes a clear selection rule: this tool carries subnet/DHCP detail that the sparse list view lacks. It effectively tells the agent when to prefer this over unifi_list_networks, though it stops short of an explicit 'use this when you need full detail' phrasing or any prerequisites.

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