Skip to main content
Glama

unifi_list_firewall

Read-onlyIdempotent

List UniFi firewall rules as readable one-line entries across zones, policies, ACLs, DNS policies, and traffic lists, and show legacy rules when zone-based firewall is disabled.

Instructions

The firewall as readable one-line rules ("Internal → External: BLOCK from 192.168.1.10 to 203.0.113.1 "name""): zones with their networks, zone policies (UniFi's own tagged (system); the same rule in several zone pairs is one row listing the pairs, and duplicates says how many user-defined policies are copies), ACL rules, DNS policies and traffic matching lists. While Zone-Based Firewall is off, says so and lists the old-style rules instead, read-only. A collection whose endpoint changed (new firmware) is named under unavailable with the error; the rest are still listed.

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_firewall"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteNoSite name, id or reference; optional while the console has a single site

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 cover readOnly/idempotent/non-destructive, and the description goes well beyond them: it discloses the output shape (one-line readable rules), how system vs user-defined zone policies are tagged, that identical rules across zone pairs are collapsed into one row with a 'duplicates' count, the fallback when Zone-Based Firewall is disabled, and partial failure behavior ('unavailable with the error; the rest are still listed'). It stops short of noting sizing/pagination limits, which keeps it from a 5.

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

Conciseness3/5

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

Every clause carries real information and the essential behavior (readable rules, dedup, ZBF fallback, partial errors) comes first, but the first sentence is a heavily nested run-on with parentheticals that makes it hard to parse quickly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description must carry the return-value burden, and it does: it names each collection returned, the row format, the user-defined/system distinction, the duplicates count, and the degraded-mode and unavailable-collection cases. Nothing essential for interpreting the response is missing.

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?

Only one parameter and schema coverage is 100%, so the schema already documents the optional site selector fully. The description adds no semantics about site resolution or default behavior, so this lands 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 clear verb (list/read) and enumerates the exact resource set: zones with networks, zone policies, ACL rules, DNS policies and traffic matching lists, plus the readable one-line rule rendering. This lets an agent recognize it as the aggregate read tool and distinguish it from the create/update/delete firewall siblings without opening their schemas.

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

Usage Guidelines2/5

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

No explicit when-to-use or when-not guidance and no sibling is named as an alternative. The only usage-adjacent signal is 'read-only', which the annotations already state; an agent must infer that this is the inspection tool to call before mutating policies.

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