Skip to main content
Glama
unifi-mcp-server

unifi-mcp-server

by PainInTheNic

Update Firewall Zone

unifi_update_firewall_zone
DestructiveIdempotent

Replace a UniFi firewall zone to update its name or assigned networks. Fetch the current zone, modify the full config, and confirm changes because moving networks alters applicable firewall policies.

Instructions

Replace a firewall zone (full PUT) — e.g. change which networks belong to it. Fetch the current zone via unifi_list_firewall_zones, modify, and pass as 'config'. CAUTION: moving networks between zones changes which firewall policies apply to them; confirm with the user. IDs come from unifi_list_firewall_zones.

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

Input Schema

NameRequiredDescriptionDefault
configYesFull zone object to write. Typically name + networkIds. 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.
zoneIdYesFirewall zone ID (UUID from unifi_list_firewall_zones)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and openWorldHint=true. Beyond that, the description discloses the full-PUT replacement semantics and the real-world consequence that moving networks changes which firewall policies apply to them, plus a confirmation requirement — meaningful behavioral context not present in annotations.

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, replacement semantics front-loaded, workflow second, caution third. No filler or repetition of schema content.

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 destructive, nested-object mutation with full schema coverage, the definition supplies the workflow, the safety caution, and the replacement contract. Minor gap: it doesn't state what happens to fields dropped from 'config' on a full PUT, though 'full PUT' strongly implies replacement.

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?

Schema description coverage is 100%, so the baseline is 3; the description adds value by explaining that 'config' is the full zone object produced via a read-modify cycle and by tracing both UUIDs back to their source list tools. It leaves the omitted-field behavior of the PUT unstated.

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 the exact verb and resource ('Replace a firewall zone'), clarifies the semantics as a full PUT, and gives a concrete example ('change which networks belong to it'). This clearly separates it from unifi_create_firewall_zone and unifi_delete_firewall_zone without needing 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 Guidelines4/5

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

Prescribes the read-modify-write workflow: fetch via unifi_list_firewall_zones, modify, pass as 'config', and states IDs originate from that list tool. It also says to confirm with the user before moving networks. No explicit when-not-to-use case, but the replacement framing makes it implicit.

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