Skip to main content
Glama
unifi-mcp-server

unifi-mcp-server

by PainInTheNic

Delete ACL Rule

unifi_delete_acl_rule
DestructiveIdempotent

Permanently deletes an ACL rule by ID, altering switching-level access control. Use rule IDs from the ACL rule list and confirm with the user, since removal cannot be undone.

Instructions

Delete an ACL rule. CAUTION: irreversible and changes switching-level access; confirm with the user. IDs come from unifi_list_acl_rules.

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": {
      "aclRuleId": "<aclRuleId>"
    },
    "name": "unifi_delete_acl_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteIdNoSite ID (UUID from unifi_list_sites). Optional — when the console has exactly one site it is used automatically.
aclRuleIdYesACL rule ID (UUID from unifi_list_acl_rules)

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 openWorldHint=true, so the bar is lower, yet the description adds real context: irreversibility and that the change affects switching-level access. It does not explain side effects such as whether removing a rule shifts the ordering of remaining rules, which is meaningful for an ordered ACL list.

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, all load-bearing: the action, the caution with impact scope, and the ID source. The warning is front-loaded rather than buried.

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 annotations and no output schema, the description covers action, risk, and ID provenance adequately. The main omission is the effect on rule ordering or dependencies, which matters given the sibling reorder/get-ordering tools.

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 both aclRuleId and the optional siteId (including single-site auto-resolution) are already documented in the schema. The description only echoes the ID provenance that the schema itself states, adding no new parameter meaning; 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 an ACL rule'), which is immediately distinguishable from the create/get/update/list ACL siblings. The final sentence also identifies the sibling that supplies the required identifier, reinforcing scope.

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 activation context: irreversible deletion, confirm with the user, and obtain IDs from unifi_list_acl_rules. It doesn't explicitly exclude alternatives (e.g., 'to modify rather than remove, use unifi_update_acl_rule'), so it stops short of full when/when-not guidance.

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