Skip to main content
Glama

unifi_create_traffic_list

Creates a UniFi traffic matching list of IPv4 addresses, IPv6 addresses, or ports so firewall policies can match specific addresses or port ranges.

Instructions

Create a traffic matching list (official POST /traffic-matching-lists) of IPv4 addresses, IPv6 addresses or ports, for firewall policies to match on. Easy: a new list is used by nothing yet.

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>",
      "type": "<type>",
      "items": "<items>"
    },
    "name": "unifi_create_traffic_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesList name
siteNoSite name, id or reference; optional while the console has a single site
typeYesWhat it holds
itemsYesOfficial 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}

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare non-read-only, non-idempotent, non-destructive. The description adds real value beyond them by noting the endpoint is the official POST route and that 'a new list is used by nothing yet', telling the agent the operation is isolated and won't retroactively alter existing policy behavior. It still omits permission requirements, duplicate-name handling, and the response shape.

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?

Two short sentences with the core action front-loaded and the endpoint parenthetical kept brief. The trailing 'Easy:' clause is a slightly informal framing but still conveys a useful fact rather than padding.

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 4-parameter create tool with full schema coverage and no output schema, the description covers purpose, domain, and the key safety fact. Remaining gaps (return value, name uniqueness, default site behavior) are minor and partly addressed by the schema's optional-site note.

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 description coverage is 100%, so type, site, name, and even the per-item object shapes are already documented in the schema. The description restates the value categories (IPv4/IPv6/ports) that the enum already conveys, adding no syntax or constraint detail beyond structured fields.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Create a traffic matching list'), names the underlying endpoint, and specifies what it holds (IPv4, IPv6, ports) and who consumes it (firewall policies). It does not explicitly contrast with unifi_update_traffic_list or unifi_delete_traffic_list, but the 'new list' framing makes creation unambiguous.

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?

Usage is implied by 'for firewall policies to match on', which gives the agent a reason to call it, but there is no explicit when-to-use vs. when-not guidance and no named alternative such as updating an existing list instead of creating a duplicate.

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