unifi_update_traffic_list
Rename a UniFi traffic matching list or replace all its items, with a preview of affected policies and required confirmation before applying changes.
Instructions
Rename a traffic matching list or replace its items (the whole list). Every policy using it changes with it. Always needs confirm: true; without it the tool previews the change and the policies that use the list. A change that adds or removes an address in a protected network's subnet (UNIFI_MCP_PROTECTED_NETWORKS, pi-cluster by default), or a ports/IPv6 list used by a policy that reaches one, warns in its preview.
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": {
"trafficList": "<trafficList>"
},
"name": "unifi_update_traffic_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New name | |
| site | No | Site name, id or reference; optional while the console has a single site | |
| items | No | Official items: IPv4/IPv6 lists take {type: IP_ADDRESS|SUBNET, value} or {type: IP_ADDRESS_RANGE, start, stop}; PORTS lists take {type: PORT_NUMBER, value} or {type: PORT_NUMBER_RANGE, start, stop} | |
| confirm | No | Must be true to carry out a guarded change; without it the tool only previews it | |
| trafficList | Yes | Traffic matching list id or exact name |