Skip to main content
Glama

unifi_delete_firewall_zone

DestructiveIdempotent

Delete a custom UniFi firewall zone with confirmation; previews changes by default, refuses system-defined zones, and protects guarded networks.

Instructions

Delete a custom firewall zone (official DELETE). Always needs confirm: true; without it the tool previews. System-defined zones are refused. 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_delete_firewall_zone"
  }
}

Input Schema

NameRequiredDescriptionDefault
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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4/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, so the safety profile is covered. The description adds real context beyond that: the confirm guard produces a preview rather than a silent no-op, and system-defined zones are refused. The closing sentence about protected networks is relevant but muddled, since it describes moving a network rather than deleting a zone while repeating the same confirm requirement.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The destructive scope and guard are front-loaded, but the confirm: true requirement is stated twice and the final sentence introduces a scenario (moving a protected network) that does not match the delete-zone operation, adding length without clear payoff.

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, three-parameter tool with full schema coverage and no output schema, the definition covers the guard, the refusal case, and a side-effect warning. The only weakness is the imprecise protected-network sentence, which leaves the agent unsure how it applies to zone deletion.

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 confirm and zone are already documented, including the preview semantics. The description restates the confirm behavior but adds no syntax or format detail for zone or site, so the baseline of 3 is appropriate.

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 ('Delete a custom firewall zone') and immediately scopes it to custom zones as opposed to system-defined ones, which is the key distinction from sibling zone tools like unifi_update_firewall_zone.

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 clearly establishes when the call will proceed (confirm: true) and when it will only preview, and it rules out system-defined zones explicitly. It stops short of routing to alternatives such as updating a zone instead of deleting it, but the context is clear.

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