Skip to main content
Glama
unifi-mcp-server

unifi-mcp-server

by PainInTheNic

Update Traffic Matching List

unifi_update_traffic_matching_list
DestructiveIdempotent

Replace a traffic-matching list by fetching its current config, modifying it, and submitting the full object. Firewall policies using the list will adopt the new entries, so confirm changes first.

Instructions

Replace a traffic-matching list (full PUT). Fetch the current list via unifi_get_traffic_matching_list, modify, and pass as 'config'. CAUTION: firewall policies referencing this list will use the new entries; confirm with the user. IDs come from unifi_list_traffic_matching_lists.

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

Input Schema

NameRequiredDescriptionDefault
configYesFull traffic-matching-list object to write (fetch current first, then modify). 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.
trafficMatchingListIdYesTraffic matching list ID (UUID from unifi_list_traffic_matching_lists)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and openWorldHint=true, so the description's job is to add blast-radius detail, and it does: downstream firewall policies immediately consume the new entries and the user should be consulted first. It does not state what a failed or partial PUT does to the existing list, which is the remaining behavioral gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short sentences: semantics first, then the workflow, then the risk warning, then ID sourcing. No filler, and the destructive consequence is not buried at the end of a long paragraph.

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 nested-object mutation with no output schema, the description covers entry construction, ID provenance, and user-confirmation duty, which is most of what an agent needs. It stops short of saying what the call returns or how to verify the replacement took effect, a modest gap given no output schema exists.

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 coverage is 100% and the schema's own 'config' description already tells the agent to fetch-then-modify and warns about '[redacted]' values, so the description's config guidance largely restates structured data. The required 'siteId' auto-selection behavior is documented only in the schema, not the description. Baseline 3 is appropriate here.

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?

"Replace a traffic-matching list (full PUT)" names a specific verb (replace), resource, and semantic mode (full PUT vs partial patch), which cleanly separates it from the create/update siblings. The two follow-up clauses naming unifi_get_traffic_matching_list and unifi_list_traffic_matching_lists further pin down its role in the workflow.

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?

It gives an explicit read-modify-write procedure: fetch the current list via unifi_get_traffic_matching_list, modify it, pass it as 'config', with IDs sourced from unifi_list_traffic_matching_lists. It also states a when-to-pause condition (confirm with the user because referencing firewall policies will pick up the new entries), leaving little to inference.

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