Skip to main content
Glama
unifi-mcp-server

unifi-mcp-server

by PainInTheNic

List ACL Rules

unifi_list_acl_rules
Read-onlyIdempotent

List layer-2/switch ACL rules for a site with names, actions, and enabled states; filter switching-level access controls separately from zone firewall policies.

Instructions

List layer-2/switch ACL rules on a site with name, action, and enabled state. These are switching-level ACLs, separate from zone firewall policies. Filter example: "action.eq('BLOCK')".

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_list_acl_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of results to return (1-200, default 50)
filterNoOptional UniFi filter expression: property.function(args) with functions eq, ne, like, in, isNull, isNotNull and more; combinators and(...), or(...), not(...). Strings in single quotes. Examples: "state.eq('OFFLINE')", "access.type.eq('GUEST')", "name.like('Office*')". Note: which properties are filterable varies by endpoint — a 400 error means that property/function is not supported here.
offsetNoNumber of results to skip, for pagination (default 0)
siteIdNoSite ID (UUID from unifi_list_sites). Optional — when the console has exactly one site it is used automatically.
responseFormatNo'markdown' for a compact human-readable summary (default), 'json' for full raw API datamarkdown

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 readOnly, idempotent, non-destructive, open-world behavior, so the bar is lower. The description adds genuine value by naming the fields present in each result (name, action, enabled state), which matters because there is no output schema, and by clarifying the resource layer being queried.

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, zero filler: scope first, sibling distinction second, filter example last. Nothing is repeated and nothing needs to be re-read.

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, zero-required-parameter list tool with full schema coverage and annotations, the essentials are covered: what it lists, what comes back, how to filter, and how it differs from firewall policy listing. Only minor gaps remain, such as noting whether results are paginated by default or truncated at the limit.

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%, so limit, offset, siteId, responseFormat, and filter are all fully documented in the schema. The description's filter example ("action.eq('BLOCK')") is topical but repeats the syntax the schema already teaches; no additional parameter meaning is added beyond 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 uses a specific verb and resource ("List layer-2/switch ACL rules on a site") and immediately scopes the resource by naming the fields returned (name, action, enabled state). It explicitly separates itself from zone firewall policies, which maps to the sibling unifi_list_firewall_policies.

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 gives a clear exclusion — these are switching-level ACLs, not zone firewall policies — which routes an agent away from the wrong list tool. It does not explicitly mention unifi_get_acl_rule for single-rule lookup or the create/update siblings, but the list-vs-detail distinction is inferable from the name and purpose.

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