Skip to main content
Glama
UniFi Agent MCP
by mikomiel

Unifi Firewall Policies

unifi_firewall_policies

Lists firewall policies, zones, ordering, and resolved selectors for UniFi Network; filter results by enabled status or source/destination zone to inspect rule coverage.

Instructions

List firewall policies, zones, ordering, and resolved selectors.

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

Input Schema

NameRequiredDescriptionDefault
enabledNo
source_zone_idNo
destination_zone_idNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. "List" implies a read-only operation, but nothing is said about pagination, result size, permission requirements, ordering guarantees despite the mention of "ordering", or what "resolved selectors" actually resolves. The term "resolved selectors" is undefined jargon an agent cannot act on.

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?

A single front-loaded sentence with no filler. It is efficient, but the terseness crosses into under-specification rather than disciplined brevity.

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

Completeness2/5

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

An output schema exists, so return values need not be described. However, with zero annotation coverage and 0% parameter documentation, the definition leaves the agent without the filter semantics or read-only/permission context needed to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and the three parameters (enabled, source_zone_id, destination_zone_id) have no descriptions, no enums, and null defaults. The description never mentions them, so it adds no meaning about whether they are conjunctive filters, whether null means "all", or what a zone_id refers to. It loosely gestures at zones but does not compensate for the coverage gap.

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 ("List") and names the resources returned: firewall policies, zones, ordering, and resolved selectors. An agent can tell this is a read/enumeration tool, though it is ambiguous whether all four things are returned together or only the policy set with references resolved. No sibling differentiation is offered, but the siblings (active_clients, config_map, trace_endpoint) are sufficiently distinct that this is not fatal.

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?

There is no guidance on when to use this tool, when not to, or what to use instead. Nothing indicates whether it should be called before a mutation, whether filters are meant to be combined, or how it relates to config_map. Usage is only implied by the word "List".

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