Skip to main content
Glama

unifi_delete_firewall_policy

DestructiveIdempotent

Delete a user-defined firewall policy after explicit confirmation; otherwise it previews the change and refuses system-defined or IPS auto-block policies.

Instructions

Delete a user-defined firewall policy (official DELETE). Always needs confirm: true; without it the tool previews. System-defined policies and the IPS auto-blocks are refused.

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

Input Schema

NameRequiredDescriptionDefault
siteNoSite name, id or reference; optional while the console has a single site
policyYesPolicy id or exact name
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.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 known; the description adds genuinely new behavior: the confirm gate and the fact that omitting confirm produces a preview/dry run rather than an error. It also discloses which targets are refused. It does not say what happens to traffic or dependent references once the policy is removed, which keeps it from a 5.

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, front-loaded with the action and scope, then the confirm guard, then the refusal conditions. No filler and nothing that could be cut without losing information.

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 three-parameter destructive tool with no output schema, the definition covers action, scope, the confirmation protocol, and refusal cases — enough to call it correctly. The remaining gap is downstream effect (what happens to traffic or rules referencing the deleted policy) and what the preview output looks like.

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%, so all three parameters including the const-constrained confirm flag are already documented in structured data. The description's statement that confirm must be true restates the schema rather than adding syntax or format detail, 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 states a specific verb and resource ("Delete a user-defined firewall policy") and immediately scopes it with "official DELETE," which separates it from create/update/enable siblings and from the delete tools for zones, DNS policies, and ACL rules. The qualifier "user-defined" also distinguishes it from operations on system-defined objects.

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 the context of use and gives an explicit exclusion: system-defined policies and IPS auto-blocks are refused, so the agent knows when not to call it. It stops short of naming a concrete alternative (for example, disabling a policy instead of deleting it via the enabled-toggle sibling), so routing between similar operations is left to inference.

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