Skip to main content
Glama

unifi_delete_traffic_list

DestructiveIdempotent

Deletes a UniFi traffic matching list after explicit confirmation, previewing affected policies and warning about protected-network or in-use dependencies.

Instructions

Delete a traffic matching list (official DELETE); the console refuses one still in use. Always needs confirm: true; without it the tool previews, with the policies that use it. 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_delete_traffic_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteNoSite name, id or reference; optional while the console has a single site
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.1/5.0
Behavior5/5

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

Annotations already flag destructive/idempotent/closed-world, and the description goes well beyond them: a confirm flag is mandatory, an unconfirmed call is a preview that enumerates dependent policies, the console rejects lists still in use, and protected-network warnings are surfaced. That is exactly the operational context annotations cannot express.

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?

The destructive verb and the confirm requirement lead, which is the right ordering for a risky tool. The final sentence about protected networks and ports/IPv6 lists is dense and hard to parse on first read, costing a point.

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 three-parameter tool with no output schema, the description covers the safety path, the refusal condition, and the protected-network warnings an agent needs. What an unconfirmed preview actually returns is only loosely sketched, leaving a small gap.

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%, so all three parameters are already documented, including the const:true on confirm and the id-or-exact-name form of trafficList. The description largely restates those constraints rather than adding syntax or edge-case meaning, so it sits at the baseline.

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?

States a specific verb plus resource ("Delete a traffic matching list") and even names the underlying API verb, which cleanly separates it from the create/update siblings in the catalog. The added clause about the console refusing in-use lists further pins down what this operation is.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description establishes the guarded-change workflow (preview then confirm) and one failure condition, but never directs the agent to an alternative. It does not say, for example, that removing a single entry should go through unifi_update_traffic_list rather than deleting the whole list.

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