Skip to main content
Glama

create_acl_rule

Create a new ACL rule for intra-VLAN and inter-network L3 traffic filtering on a UniFi site. Specify type, action, and filters; missing required fields are caught locally before sending.

Instructions

Create a new ACL rule on a site.

host: console name, ID, or composite ID (MAC:numericId format). site: site name or ID. Validated locally before the request (a missing field raises ValueError naming it): type — the discriminator the controller validates first (verified live: an empty body is rejected with Missing $.type value; observed value: 'MAC'). The remaining fields are type-specific and enforced by the controller. rule: for a MAC-type rule the live object also carries: name (str), action, enabled (bool), sourceFilter, networkIdFilter. Read an existing rule with get_acl_rule to see the exact shape for the type you want. Note: ACL rules are for intra-VLAN/inter-network L3 filtering. For zone-based perimeter firewall rules, use create_firewall_policy instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hostYes
ruleYes
siteYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Install Server

TDQS

A4.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden. It reveals local validation details, the exact controller error for an empty body, and that field validation is type-specific. It is strong but does not mention permissions, idempotency, or duplicate-rule behavior.

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?

The description is dense yet well-organized, front-loading the purpose, then parameter semantics, then routing guidance. Every sentence adds value—no filler or repetition.

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 tool with a nested object and zero schema descriptions, this covers all critical aspects: required parameters, validation behavior, type-specific shape, and alternatives. The output schema likely covers return values, so nothing essential is missing.

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

Parameters5/5

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

Schema description coverage is 0%, yet the description compensates thoroughly. It defines host and site formats, notes the 'type' discriminator, and enumerates MAC-type rule fields (name, action, enabled, sourceFilter, networkIdFilter). This gives an agent enough to construct a valid call.

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 'Create a new ACL rule on a site,' using a specific verb, object, and target. It further distinguishes ACL rules from zone-based perimeter firewall rules, clearly separating this tool from create_firewall_policy.

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?

Explicitly states when to use this tool (intra-VLAN/inter-network L3 filtering) and when not to, directing to create_firewall_policy for zone-based rules. Also advises reading an existing rule with get_acl_rule to learn the exact shape, giving the agent a concrete next step.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/swkstudios/unifi-fabric-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server