Skip to main content
Glama
unifi-mcp-server

unifi-mcp-server

by PainInTheNic

Get Traffic Matching List

unifi_get_traffic_matching_list
Read-onlyIdempotent

Retrieve a specific UniFi traffic-matching list by its ID, including all entries, for firewall and ACL configuration.

Instructions

Get one traffic-matching list by ID, including its entries. 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>"
    },
    "name": "unifi_get_traffic_matching_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
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

A3.6/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, so the safety profile is fully covered and the description doesn't need to repeat it. The description's one genuine addition is that entries are included in the response, which hints at payload size/shape. It says nothing about failure modes, permissions, or site scoping, so it adds only modest behavior beyond structured fields.

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 short sentences with zero filler; the primary action is front-loaded and the ID-provenance note follows immediately. Nothing 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 two-parameter, non-destructive read with full annotation coverage, the description covers the essential: what is fetched, by what identifier, and that entries are included. The only gap is that no output schema exists, so the caller learns nothing about entry fields or list metadata, though that is a minor omission for a simple fetch-by-ID tool.

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%: both trafficMatchingListId and the optional siteId (including single-site auto-selection) are documented in-schema, so the baseline is 3. The description adds no new parameter meaning beyond reaffirming where the ID comes from; it never mentions siteId at all.

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 ('Get one traffic-matching list by ID') and adds payload scope ('including its entries'), which separates it from the bulk listing sibling. It stops short of explicitly contrasting with unifi_list_traffic_matching_lists as a browse-vs-fetch choice, but the singular 'one ... by ID' framing is clear enough to disambiguate.

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 sentence 'IDs come from unifi_list_traffic_matching_lists' implies the correct workflow prerequisite (fetch the list first to obtain an ID), which is real usage guidance. However, it states no exclusions, no error behavior for an unknown/foreign ID, and doesn't say when a caller would prefer this over the listing tool.

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