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
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Network name | |
| site | No | Site name, id or reference; optional while the console has a single site | |
| vlanId | Yes | VLAN id | |
| zoneId | No | Firewall zone id | |
| enabled | No | false disables the network: its clients lose it | |
| deviceId | No | SWITCH management only: the switch that routes it | |
| management | Yes | Who routes it | |
| dhcpGuarding | No | DHCP guarding (official request schema) | |
| isolationEnabled | No | Isolate the network from the others | |
| ipv4Configuration | No | IPv4: hostIpAddress, prefixLength, autoScaleEnabled, dhcpConfiguration {mode SERVER|RELAY, ...} (official request schema) | |
| ipv6Configuration | No | IPv6 configuration (official request schema) | |
| cellularBackupEnabled | No | ||
| internetAccessEnabled | No | ||
| mdnsForwardingEnabled | No |