Skip to main content
Glama
unifi-mcp-server

unifi-mcp-server

by PainInTheNic

Reorder ACL Rules

unifi_reorder_acl_rules
DestructiveIdempotent

Reorder user-defined UniFi ACL rules by supplying all rule IDs in the desired evaluation order to control which rule takes precedence.

Instructions

Set the evaluation order of user-defined ACL rules. Pass every user-defined ACL rule ID in the desired order (see unifi_get_acl_rule_ordering for the current order). CAUTION: order determines which rule wins; 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": {
      "orderedAclRuleIds": "<orderedAclRuleIds>"
    },
    "name": "unifi_reorder_acl_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteIdNoSite ID (UUID from unifi_list_sites). Optional — when the console has exactly one site it is used automatically.
orderedAclRuleIdsYesUser-defined ACL rule IDs in the desired evaluation order

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.7/5.0
Behavior4/5

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

The annotations already flag destructiveHint=true, idempotentHint=true and readOnlyHint=false, but the description adds the consequence that order decides which rule wins and the non-obvious requirement to supply the complete rule set rather than a partial one. That is real behavioral context beyond the annotations, though it does not say what happens if an ID is omitted or which rules are affected by a partial 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 tight sentences, front-loaded with the action, then the prerequisite, then the warning; nothing is wasted and the caution is placed where it will be read before invocation.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, two-parameter reordering tool with no output schema, the definition covers the source of IDs, the current-order lookup, and the confirmation requirement, which is enough for an agent to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so both parameters are documented, but the description still adds meaning by stressing that orderedAclRuleIds must contain every user-defined rule ID and that those IDs originate from unifi_list_acl_rules. It does not explain how siteId falls back to the single-site default, but the schema covers that.

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 ("Set the evaluation order of user-defined ACL rules") and scopes it to user-defined rules, which separates it from unifi_reorder_firewall_policies and from the CRUD siblings like 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 Guidelines5/5

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

It states the prerequisite clearly: pass every user-defined rule ID, take the current order from unifi_get_acl_rule_ordering, and get IDs from unifi_list_acl_rules. It also adds an explicit caution to confirm with the user, so the when-and-how is spelled out without inference.

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