Skip to main content
Glama

unifi_update_firewall_zone

DestructiveIdempotent

Rename a custom firewall zone or replace its network list, with a preview unless confirm: true is set. System-defined zones are refused.

Instructions

Rename a custom firewall zone or set its networks (the whole list). Always needs confirm: true; without it the tool previews. System-defined zones are refused: UniFi manages them. 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": {
      "zone": "<zone>"
    },
    "name": "unifi_update_firewall_zone"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoNew name
siteNoSite name, id or reference; optional while the console has a single site
zoneYesZone name or id
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

A4.4/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, and the description goes beyond them by disclosing the preview mode when confirm is absent, the system-zone refusal, and the policy-reachability blast radius of moving a protected network between zones. It does not describe the response shape, but no output schema exists so the omission is minor.

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?

Three tight sentences, front-loaded with the verb and resource, then the guard, then the refusal rule. The confirm: true requirement is stated twice (sentence two and sentence four), which is a small redundancy but justifies itself as emphasis on the guarded path.

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

Completeness5/5

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

For a destructive, guarded mutation with no output schema, the definition covers the operation, the confirmation gate, the refusal case, and the downstream policy consequences of the protected-network scenario. Nothing an agent needs before calling is missing.

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 coverage is 100%, so the baseline is 3, and the description still adds real meaning: 'the whole list' signals that networks is a full replacement rather than an append, and it reinforces that omitting confirm yields a dry run rather than an error.

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 a specific pair of operations on a specific resource: rename a custom firewall zone or replace its network list. The word 'custom' and the note that system-defined zones are refused implicitly separate it from create/delete zone siblings and from policy-level tools.

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 clear when-to-use context (custom zones only) and an explicit exclusion (system-defined zones are refused because UniFi manages them), plus the confirm/preview condition. It does not name a sibling alternative for the cases it rules out, which keeps it short of a 5.

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