Skip to main content
Glama
unifi-mcp-server

unifi-mcp-server

by PainInTheNic

Create Network (LAN/VLAN)

unifi_create_network

Creates a new LAN network or VLAN on a UniFi site from a full network object, requiring name, VLAN ID, management type, enabled flag, and IP configuration for managed networks.

Instructions

Create a new LAN network / VLAN on a site. 'config' is the full network object; required for all: name (string), vlanId (integer), management (string), enabled (boolean). For GATEWAY/SWITCH-managed networks (management != "UNMANAGED"), ipv4Configuration (subnet + DHCP) is ALSO required — plus, for GATEWAY, isolationEnabled, internetAccessEnabled, and cellularBackupEnabled. Easiest: model it on an existing network fetched via unifi_get_network with responseFormat='json', changing name/vlanId/subnet. Returns the created network.

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

Input Schema

NameRequiredDescriptionDefault
configYesFull network object. Required: name, vlanId, management, enabled (+ ipv4Configuration and, for GATEWAY, isolationEnabled/internetAccessEnabled/cellularBackupEnabled). See unifi_get_network (json) for the full shape. A config with any value still containing "[redacted]" (how reads show credentials) is refused: put the real value in, or leave the field out.
siteIdNoSite ID (UUID from unifi_list_sites). Optional — when the console has exactly one site it is used automatically.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/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, open-world write, so the description's job is to add creation-specific behavior — and it does, by explaining the management-type-dependent required fields and that the created network is returned. It adds nothing about failure modes, permissions, or duplicate vlanId handling.

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?

Front-loaded with the operation, then the field rules, then a practical template tip — a sound order with no filler sentences. However, the required-field enumeration is a near-verbatim repeat of the schema text, spending several clauses on information the agent already receives structurally.

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 create tool with a free-form nested object and no output schema, it supplies the right scaffolding: which fields are mandatory, how requirements vary by management mode, a working template source, and what is returned. Gaps remain around validation failures and whether vlanId must be unique on the site.

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%, and the schema's own 'config' description already enumerates the required fields, the GATEWAY extras, and the '[redacted]' refusal rule. The description restates that same conditional requirement set, so it adds marginal meaning over structured data; baseline 3 applies.

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 and resource ('Create a new LAN network / VLAN on a site'), which an agent can tell apart from unifi_update_network or unifi_create_wifi by the word 'new' and the network/VLAN scope. It never explicitly names a sibling it is not, so differentiation is inferred rather than stated.

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?

Gives concrete build-up guidance (model the config on an existing network fetched via unifi_get_network with responseFormat='json', then change name/vlanId/subnet) and spells out which fields become mandatory for GATEWAY/SWITCH-managed networks. It stops short of exclusions such as 'use unifi_update_network to modify an existing network' or preconditions like permissions.

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