Skip to main content
Glama

unifi_delete_acl_rule

DestructiveIdempotent

Deletes a user-defined UniFi ACL rule by ID or exact name. Requires confirm: true to apply the change; without it the call only previews, and built-in UniFi rules are refused.

Instructions

Delete a user-defined ACL rule (official DELETE). Always needs confirm: true; without it the tool previews. Rules UniFi made 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": {
      "aclRule": "<aclRule>"
    },
    "name": "unifi_delete_acl_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteNoSite name, id or reference; optional while the console has a single site
aclRuleYesACL rule 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/5.0
Behavior4/5

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

Annotations already flag destructive=true and idempotent=true, but the description adds real value beyond them: the confirm gate produces a dry-run preview rather than an error, and system-owned rules are rejected. Those are non-obvious behaviors an agent could not get from the structured fields alone.

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?

Two short sentences, front-loaded with the action and its qualifier, then the guardrail. No redundant or filler wording; every clause carries distinct 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 3-parameter destructive tool with no output schema, the description covers the key risks: confirmation gating, preview fallback, and refusal of built-in rules. Minor omissions remain, such as what happens to entities referencing the deleted rule and whether the site parameter matters in multi-site consoles.

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 (site, aclRule, confirm) are already documented including the const-true constraint on confirm. The description restates the confirm behavior but adds nothing about aclRule accepting an id or exact name, nor about the optional site parameter — 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?

States a specific verb and resource ("Delete a user-defined ACL rule") and adds the qualifier "official DELETE," which distinguishes this from a disable/update workaround. The scope restriction ("Rules UniFi made are refused") further narrows the target set so an agent can tell it apart from unifi_update_acl_rule.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Useful invocation guidance is present: confirm: true is required and the call degrades to a preview otherwise. However, there is no explicit statement of when to delete versus when to disable or update the rule instead, so the choice against siblings like unifi_update_acl_rule is only implied.

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