Skip to main content
Glama
unifi-mcp-server

unifi-mcp-server

by PainInTheNic

List Firewall Zones

unifi_list_firewall_zones
Read-onlyIdempotent

Lists firewall zones for a UniFi site with their member networks so you can map zone IDs to firewall policy sources and destinations.

Instructions

List the firewall zones on a site (e.g. Internal, External, Gateway, VPN, Hotspot, plus custom zones) and which networks belong to each. Zone IDs appear in firewall policies' source/destination.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of results to return (1-200, default 50)
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, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is fully covered. The description usefully discloses the shape of the result set (zones plus their member networks) and that siteId is auto-resolved on single-site consoles, but says nothing about pagination behavior or result volume beyond what the schema states. With annotations carrying the behavioral burden, this is an adequate but modest addition.

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 tightly packed sentences: the first defines the resource and its payload, the second supplies the downstream relevance. Nothing is redundant and the core purpose is front-loaded.

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 zero-required-parameter read-only list tool with no output schema, the description covers purpose, result content and downstream use well. The only soft gap is that it does not mention that results are paginated or that a raw JSON versus markdown format can be requested, though the schema already covers both.

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%, and every parameter (limit, offset, siteId, responseFormat) is documented in the schema itself, including the UUID format and defaults. The description names no parameters and adds no format or interaction detail beyond the schema, 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?

The description states a specific verb and resource ('List the firewall zones on a site'), enumerates the concrete zone types returned, and adds the scoping detail that each zone is returned with its member networks. The closing note that zone IDs feed firewall policies' source/destination makes the resource's role unambiguous against siblings like unifi_list_firewall_policies.

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?

It gives a clear contextual reason to call this tool: the zone IDs it returns are the ones used in firewall policy source/destination fields, which implies calling it before authoring or inspecting policies. It stops short of naming an explicit alternative or stating when not to use it (e.g. versus unifi_list_networks for network-to-zone mapping), so it is not a full when/when-not pairing.

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