Skip to main content
Glama
unifi-mcp-server

unifi-mcp-server

by PainInTheNic

Delete Custom Firewall Zone

unifi_delete_firewall_zone
DestructiveIdempotent

Deletes a custom UniFi firewall zone permanently. Use it to remove user-defined zones only, after confirming no firewall policies still reference the zone.

Instructions

Delete a custom firewall zone. Only custom (user-defined) zones can be deleted — system zones cannot. CAUTION: irreversible; policies referencing this zone may be affected. 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>"
    },
    "name": "unifi_delete_firewall_zone"
  }
}

Input Schema

NameRequiredDescriptionDefault
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.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is partly covered; the description still earns credit by disclosing irreversibility and the downstream risk that policies referencing the zone may be affected. It leaves one meaningful gap: whether deletion fails, cascades, or silently orphans dependent policies.

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 with zero filler: scope constraint, destructive warning, and ID provenance in ascending order of risk salience. The CAUTION marker is placed before the confirmation instruction, so the warning is front-loaded where an agent will encounter it.

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 destructive tool with rich annotations and no output schema, the description covers purpose, eligibility, risk, and ID sourcing adequately. The only missing piece an agent would want is the failure behavior when dependent policies exist.

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 coverage is 100% and both parameters are documented in the schema, including the siteId fallback for single-site consoles and the UUID pattern. The description's note that IDs come from unifi_list_firewall_zones restates schema guidance rather than adding new meaning, so the baseline 3 applies.

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 opens with a specific verb and resource ("Delete a custom firewall zone") and immediately narrows the scope by excluding system zones, which is exactly the distinction that separates this from siblings like unifi_update_firewall_zone or unifi_delete_firewall_policy.

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 states clearly when the tool applies (custom user-defined zones only) and when it does not (system zones cannot be deleted), points to unifi_list_firewall_zones as the ID source, and adds a pre-call instruction to confirm with the user. It stops short of naming explicit alternatives for modifying rather than deleting, which keeps it from a 5.

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