Skip to main content
Glama
unifi-mcp-server

unifi-mcp-server

by PainInTheNic

List Traffic Matching Lists

unifi_list_traffic_matching_lists
Read-onlyIdempotent

List reusable traffic-matching lists on a UniFi site to find named IPv4, IPv6, or port lists that firewall policies reference instead of inline addresses.

Instructions

List reusable traffic-matching lists on a site — named IP-address or port lists (type IPV4_ADDRESSES / IPV6_ADDRESSES / PORTS) that firewall policies reference instead of inlining addresses. Use unifi_get_traffic_matching_list for one list's entries.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "unifi_list_traffic_matching_lists"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of results to return (1-200, default 50)
filterNoOptional UniFi filter expression: property.function(args) with functions eq, ne, like, in, isNull, isNotNull and more; combinators and(...), or(...), not(...). Strings in single quotes. Examples: "state.eq('OFFLINE')", "access.type.eq('GUEST')", "name.like('Office*')". Note: which properties are filterable varies by endpoint — a 400 error means that property/function is not supported here.
offsetNoNumber of results to skip, for pagination (default 0)
siteIdNoSite ID (UUID from unifi_list_sites). Optional — when the console has exactly one site it is used automatically.
responseFormatNo'markdown' for a compact human-readable summary (default), 'json' for full raw API datamarkdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is fully covered by structured data. The description adds genuine domain context — what these lists are and how firewall policies reference them — but says nothing about result volume, pagination behavior, or how filtering behaves on failure. With annotations carrying the behavioral burden, this is adequate rather than rich.

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?

Two sentences, front-loaded with the resource definition and ending with the sibling hand-off. Nothing is repeated from the schema and no sentence could be removed without losing information.

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 read-only list tool with fully documented parameters and annotations, the description supplies the conceptual context an agent needs to recognize when this endpoint is relevant. There is no output schema, but the description doesn't need to describe return values; the only mild gap is that it doesn't hint at result volume or pagination expectations.

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 limit, offset, filter, siteId and responseFormat are all self-documenting, including the format caveat about unsupported filter properties. The description adds no parameter-level meaning beyond the phrase 'on a site', which only loosely gestures at siteId, so the baseline of 3 applies.

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?

Uses a specific verb (List) and resource (reusable traffic-matching lists) and then defines the resource in domain terms: named IP-address or port lists of type IPV4_ADDRESSES / IPV6_ADDRESSES / PORTS that firewall policies reference instead of inlining addresses. That definition lets an agent separate this from unifi_list_firewall_policies and other list_* siblings without opening a schema.

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?

Explicitly routes the single-item case to unifi_get_traffic_matching_list 'for one list's entries', which is a clear alternative-and-condition statement. It stops short of stating exclusions or prerequisites (e.g. that filters may be unsupported on this endpoint), so it falls just below the top band.

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