Skip to main content
Glama

create_network

Destructive

Set up a new network or VLAN segment on a UniFi gateway by specifying subnet, VLAN ID, and optional DHCP range. Requires confirmation to apply routing changes immediately.

Instructions

Create a new network/VLAN segment on the gateway (corporate by default).

Mutating operation: applied immediately and persisted on the UniFi console. Provide subnet in CIDR form and an optional VLAN id to tag the segment; enable DHCP by supplying both dhcp_start and dhcp_stop. Requires confirm=true because routing/VLAN/DHCP changes can disrupt connectivity. Inspect with get_networks; reverse with delete_network.

Args: name: Network name (e.g. "IoT"). subnet: Subnet in CIDR form (e.g. "192.168.50.1/24"); omit for unrouted. vlan: VLAN id (1-4094) for a tagged segment; omit for untagged. purpose: Segment type — "corporate", "guest", or "wan". Defaults to "corporate". domain_name: DNS domain name advertised to clients (e.g. "example.local"). dhcp_start: DHCP pool start IP; supply with dhcp_stop to enable DHCP. dhcp_stop: DHCP pool end IP; supply with dhcp_start to enable DHCP. dhcp_lease_time: DHCP lease duration in seconds (default 86400). site: Site to operate on. Defaults to "default". device: Optional console name to target a specific UniFi device; omit for default. confirm: Safety gate: must be True to create. Defaults to False.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesNetwork name (e.g. "IoT").
siteNoSite to operate on. Defaults to "default".default
vlanNoVLAN id (1-4094) for a tagged segment; omit for untagged.
deviceNoOptional console name to target a specific UniFi device; omit for default.
subnetNoSubnet in CIDR form (e.g. "192.168.50.1/24"); omit for unrouted.
confirmNoSafety gate: must be True to create. Defaults to False.
purposeNoSegment type — "corporate", "guest", or "wan". Defaults to "corporate".corporate
dhcp_stopNoDHCP pool end IP; supply with dhcp_start to enable DHCP.
dhcp_startNoDHCP pool start IP; supply with dhcp_stop to enable DHCP.
domain_nameNoDNS domain name advertised to clients (e.g. "example.local").
dhcp_lease_timeNoDHCP lease duration in seconds (default 86400).
Install Server

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the destructiveHint annotation, the description discloses that the change is applied immediately and persisted, that confirm=true is required, and that routing/VLAN/DHCP changes can disrupt connectivity. This is meaningful additional behavioral context.

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?

Well front-loaded with purpose and mutation warning, and the flow from high-level guidance to Args is logical. The Args list is somewhat redundant with the 100%-covered schema, so it is not maximally concise, but it is organized and readable.

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?

For an 11-parameter destructive tool with no output schema, the description covers defaults, optionality, enabling conditions, safety gate, and related inspect/delete operations. Nothing needed to call it correctly 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 the baseline applies. The description's Args section largely repeats the schema descriptions; the only extra value is grouping interdependent params (subnet/VLAN/DHCP) in the prose, which is marginal.

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?

Opens with a specific verb and resource — 'Create a new network/VLAN segment on the gateway' — and adds the default purpose. This clearly distinguishes the operation from update_network/delete_network without needing to open the 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?

States lifecycle alternatives explicitly: 'Inspect with get_networks; reverse with delete_network.' It also gives concrete creation conditions — CIDR subnet, optional VLAN, DHCP requires both dhcp_start and dhcp_stop, and confirm=true is mandatory for this disruptive mutation.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mikeholownych/unifi-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server