Skip to main content
Glama
unifi-mcp-server

unifi-mcp-server

by PainInTheNic

Update ACL Rule

unifi_update_acl_rule
DestructiveIdempotent

Replace an existing UniFi ACL rule by fetching its current configuration, modifying it, and writing the full updated rule via PUT; confirm switching-level access impact before applying.

Instructions

Replace an ACL rule (full PUT). Fetch the current rule via unifi_get_acl_rule, modify, and pass as 'config'. CAUTION: 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>",
      "config": "<config>"
    },
    "name": "unifi_update_acl_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
configYesFull ACL rule object to write (fetch current via unifi_get_acl_rule, then modify). A config with any value still containing "[redacted]" (how reads show credentials) is refused: put the real value in, or leave the field out.
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.4/5.0
Behavior5/5

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

Beyond the destructiveHint annotation, the description discloses that this is a full replacement and that it changes switching-level access, which is a critical domain-specific impact. It also tells the agent to confirm with the user, adding appropriate operational caution.

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 four short sentences with no wasted wording. It is front-loaded with the core replace/full-PUT behavior, followed by workflow, caution, and ID source.

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 destructive nested-config update, it covers the essential invocation workflow, safety caution, and ID source, with the schema handling parameter details. It does not describe the response shape, though that is a minor gap given the annotations and schema richness.

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 the schema already documents aclRuleId, siteId, and config in detail, including the redacted-value refusal. The description reinforces the config workflow and ID source but adds little beyond the schema.

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 states a specific verb and resource: 'Replace an ACL rule (full PUT).' It clearly distinguishes replacement from creation or deletion, and 'full PUT' adds important scope beyond the tool name.

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 clear usage context: fetch the current rule via unifi_get_acl_rule, modify it, and pass it as config; IDs come from unifi_list_acl_rules. It also warns to confirm with the user. It does not explicitly state when not to use this tool versus create/delete siblings, so it falls just short of full exclusion 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