Skip to main content
Glama

unifi_update_traffic_list

DestructiveIdempotent

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

NameRequiredDescriptionDefault
nameNoNew name
siteNoSite name, id or reference; optional while the console has a single site
itemsNoOfficial 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}
confirmNoMust be true to carry out a guarded change; without it the tool only previews it
trafficListYesTraffic matching list id or exact name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the destructiveHint/idempotentHint annotations, the description discloses cascading effects ('every policy using it changes with it'), the confirm-based preview mechanism, and a protected-network warning path with the specific environment variable and default. This is exactly the extra behavioral context annotations cannot convey.

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?

Four sentences, front-loaded with the action and followed by the cascade, the confirm gate, and the warning path — a sensible order with no filler. The final sentence is dense and slightly run-on, stacking two separate warning conditions.

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 destructive, cascading mutation with no output schema, the description covers impact scope, the confirm requirement, preview behavior, and warning conditions. The remaining gap is the missing name/items combination semantics (e.g., whether a rename-only call without items is valid), which an agent must infer.

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 100%, so the baseline is 3, but the description adds real meaning: items replaces the entire list rather than merging, and confirm triggers a preview mode naming affected policies. It does not clarify whether name and items may be supplied together or what happens if neither is given, given that only trafficList is required.

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?

The description names two specific verbs and the exact resource: rename a traffic matching list, or replace its items wholesale. An agent can immediately distinguish this from unifi_create_traffic_list and unifi_delete_traffic_list, which operate on list lifecycle rather than mutation.

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?

It states the condition for use (renaming or replacing the whole list) and the mandatory confirm:true gate, and it explains what happens when the gate is absent (preview only). It never names a sibling alternative such as delete-then-create, so it falls short of explicit when-not guidance, but the mutation context is unambiguous.

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