Skip to main content
Glama
unifi-mcp-server

unifi-mcp-server

by PainInTheNic

Create Custom Firewall Zone

unifi_create_firewall_zone

Create a custom firewall zone that groups selected UniFi networks using a name and network UUIDs, then returns the created zone for firewall or ACL configuration.

Instructions

Create a custom firewall zone grouping one or more networks. 'config' requires name (string) and networkIds (array of network UUIDs from unifi_list_networks). Returns the created zone.

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": {
      "config": "<config>"
    },
    "name": "unifi_create_firewall_zone"
  }
}

Input Schema

NameRequiredDescriptionDefault
configYesZone object. Required: name (string), networkIds (array of network UUIDs). A config with any value still containing "[redacted]" (how reads show credentials) is refused: put the real value in, or leave the field out.
siteIdNoSite ID (UUID from unifi_list_sites). Optional — when the console has exactly one site it is used automatically.

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 readOnly=false, destructive=false, openWorld=true and idempotent=false, so the safety profile is covered externally. The description adds that the call returns the created zone and that network IDs must be sourced from unifi_list_networks, but it omits consequences of the non-idempotent hint (duplicate zones), permission requirements, and the redaction guard that the schema mentions.

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?

Three short sentences: what it does, what the payload needs, and what comes back. Nothing is padded and the core action 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 two-parameter create tool with no output schema, stating the return value and the ID provenance is close to sufficient. The main remaining gap is that non-idempotent creation and duplicate handling go unmentioned, though the schema covers the payload details and siteId defaulting.

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 both config and siteId are already documented, including the redaction rule and single-site default. The description repeats the required name/networkIds fields and adds only the pointer to unifi_list_networks as the source of UUIDs, a small but genuine increment over the schema.

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?

The description leads with a specific verb+resource ('Create a custom firewall zone') and states the scope ('grouping one or more networks'), which separates it from the list/update/delete zone siblings. It does not explicitly name an alternative, but the operation and target object are unambiguous.

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?

Usage is only implied: an agent can infer this is for provisioning a new zone that groups networks. The one piece of real guidance is the prerequisite that networkIds come from unifi_list_networks, which is useful, but there is no stated when-not-to-use case (e.g. existing zone vs. update_firewall_zone) and no note that creation is not idempotent.

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