Skip to main content
Glama
unifi-mcp-server

unifi-mcp-server

by PainInTheNic

Get ACL Rule Ordering

unifi_get_acl_rule_ordering
Read-onlyIdempotent

Retrieve the current evaluation order of user-defined ACL rules as ordered rule IDs before reordering them, so you can verify rule priority and prepare changes.

Instructions

Get the current evaluation order of user-defined ACL rules (an ordered list of rule IDs). Use this before unifi_reorder_acl_rules.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "unifi_get_acl_rule_ordering"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, so the safety profile is covered. The description adds useful context that the result is a pure ordering of rule IDs for user-defined rules only (not evaluated policies or predefined rules), but it says nothing about behavior when no rules exist or whether ordering reflects system-resolved order.

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, zero redundancy, with the definition of the return value front-loaded before the sequencing hint. Nothing could be removed 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 read-only, single-optional-parameter tool with no output schema, the description supplies the return shape (ordered rule IDs) and the sequencing reason, which is most of what an agent needs. Minor gaps remain around empty-list behavior and whether the order is authoritative for evaluation, but these are not blocking.

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 description coverage is 100%, and the single siteId parameter is fully documented in the schema, including its optionality and single-site fallback. The description contributes no parameter meaning beyond that, which is the indicated baseline when the schema carries the burden.

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 ('Get') and a precise resource ('the current evaluation order of user-defined ACL rules'), and even specifies the return shape as an ordered list of rule IDs. The 'user-defined' scoping distinguishes it from a plain rule listing or single-rule fetch, so an agent can differentiate it from siblings like unifi_get_acl_rule and unifi_list_acl_rules.

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?

Explicitly prescribes the workflow: 'Use this before unifi_reorder_acl_rules,' naming the exact tool that consumes this output. It gives a clear when-to-use condition but does not state any when-not condition or say whether other read paths (e.g. listing rules) suffice.

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