Skip to main content
Glama

unifi_create_firewall_zone

Destructive

Create a custom UniFi firewall zone to group networks, such as moving IoT out of Internal; changes involving protected networks require confirm: true.

Instructions

Create a custom firewall zone (official POST /firewall/zones), e.g. to move IoT out of Internal. Easy, unless it takes a protected network. Moving a protected network (UNIFI_MCP_PROTECTED_NETWORKS, pi-cluster by default) into or out of a zone changes which policies reach it, so it needs confirm: true.

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

Input Schema

NameRequiredDescriptionDefault
nameYesZone name
siteNoSite name, id or reference; optional while the console has a single site
confirmNoMust be true to carry out a guarded change; without it the tool only previews it
networksNoNetworks (names or ids) in the zone; a network can be in one zone only

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already flag destructiveHint=true, readOnlyHint=false, so mutation risk is declared. The description adds real value beyond that by naming the protected-network guard, the environment variable that defines it, and the fact that omission of confirm yields a preview-only call. It still says nothing about what happens on conflicting network membership or duplicate zone names, but the guard-rail disclosure is substantive.

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?

Two sentences, front-loaded with the action and endpoint reference, then the guard condition. The aside "Easy, unless it takes a protected network" is slightly chatty but does set up the constraint that follows, so it mostly earns its place.

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 4-parameter mutation tool with annotations and no output schema, the definition covers purpose, the protected-network risk, and the preview behavior of omitting confirm. It omits idempotency behavior on duplicate zone names and what a successful call returns, which are the only notable gaps.

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

Parameters4/5

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

With 100% schema coverage the baseline is 3; the description goes further by explaining why confirm exists (protected networks change which policies reach them) and by clarifying the blast radius of the networks parameter in policy terms. The name/site parameters gain nothing, keeping it from a 5.

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?

Specific verb+resource: "Create a custom firewall zone (official POST /firewall/zones)", plus a concrete use case ("move IoT out of Internal") that makes the effect tangible. It does not explicitly contrast with unifi_update_firewall_zone, so sibling differentiation is implied rather than stated.

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?

Gives a clear scenario for use (segmenting IoT) and a conditional rule: when a protected network is involved, confirm: true is required. It lacks explicit guidance on when to create a new zone versus update or delete an existing one, so it stops short of full alternative routing.

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