Skip to main content
Glama

unifi_create_network

Creates a UniFi network with a name, VLAN ID, and management mode, plus optional gateway, DHCP, IPv4/IPv6, isolation, and backup settings.

Instructions

Create a network (official POST /networks). Takes the official Create or update Network request: GATEWAY networks also need cellularBackupEnabled, internetAccessEnabled, isolationEnabled and ipv4Configuration.

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": {
      "name": "<name>",
      "management": "<management>",
      "vlanId": "<vlanId>"
    },
    "name": "unifi_create_network"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesNetwork name
siteNoSite name, id or reference; optional while the console has a single site
vlanIdYesVLAN id
zoneIdNoFirewall zone id
enabledNofalse disables the network: its clients lose it
deviceIdNoSWITCH management only: the switch that routes it
managementYesWho routes it
dhcpGuardingNoDHCP guarding (official request schema)
isolationEnabledNoIsolate the network from the others
ipv4ConfigurationNoIPv4: hostIpAddress, prefixLength, autoScaleEnabled, dhcpConfiguration {mode SERVER|RELAY, ...} (official request schema)
ipv6ConfigurationNoIPv6 configuration (official request schema)
cellularBackupEnabledNo
internetAccessEnabledNo
mdnsForwardingEnabledNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, non-destructive, non-idempotent, closed-world write, so the safety profile is covered. The description adds useful behavioral context in the form of mode-dependent required fields, but does not say what side effects creation has (e.g. impact on routing, DHCP, or existing clients) or what the success response returns. No contradiction with destructiveHint=false, since creation is not framed as destructive.

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?

Two sentences, front-loaded with the verb+resource before the conditional detail, and no filler. The parenthetical quoting of the official request name is slightly clunky but earns its place by anchoring the definition to the upstream API.

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

Completeness3/5

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

For a 14-parameter create tool with nested objects and no output schema, the definition covers the most error-prone part (mode-dependent required fields) but defers to an unspecified 'official request schema' for the nested ipv4Configuration/dhcpGuarding/ipv6Configuration shapes without saying where to find it. An agent could still construct a GATEWAY call incorrectly.

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 79%, so most parameters are documented inline, but the description contributes meaning the schema does not: the schema lists cellularBackupEnabled, internetAccessEnabled, isolationEnabled and ipv4Configuration as plain optional fields, while the description makes them conditionally required for GATEWAY networks. That is genuine semantic value beyond the schema. It could still say more about the opaque open objects (dhcpGuarding, ipv6Configuration) that the schema leaves as additionalProperties.

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 verb and resource ('Create a network') and pins it to the official endpoint ('POST /networks'), so its identity is unmistakable. It does not explicitly contrast with the sibling unifi_update_network or unifi_create_wifi, but the create-vs-update distinction is implied by the naming.

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?

It supplies a real conditional rule — GATEWAY-management networks additionally require cellularBackupEnabled, internetAccessEnabled, isolationEnabled and ipv4Configuration — which tells the agent when more input is needed. It gives no explicit when-to-use/when-not guidance relative to unifi_update_network, and says nothing about preconditions such as site availability or whether the VLAN/zone must already exist.

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