Skip to main content
Glama
unifi-mcp-server

unifi-mcp-server

by PainInTheNic

Authorize Guest Access

unifi_authorize_guest_access

Authorize a guest client for hotspot or captive-portal access, with optional time, data, or bandwidth limits to control usage.

Instructions

Authorize a client for guest network access (hotspot/captive-portal networks), optionally with time, data, or bandwidth limits. Only meaningful for clients on a guest network. NOTE: re-authorizing an already-authorized guest cancels the existing authorization, restarts the expiry clock, and resets traffic counters — do not retry this call casually.

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": {
      "clientId": "<clientId>"
    },
    "name": "unifi_authorize_guest_access"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteIdNoSite ID (UUID from unifi_list_sites). Optional — when the console has exactly one site it is used automatically.
clientIdYesClient ID (UUID from unifi_list_clients)
rxRateLimitKbpsNoDownload rate limit in Kbps (omit for unlimited)
txRateLimitKbpsNoUpload rate limit in Kbps (omit for unlimited)
timeLimitMinutesNoMinutes until access expires (omit for no time limit)
dataUsageLimitMBytesNoData cap in megabytes (omit for unlimited)

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?

Beyond the annotations (readOnlyHint=false, idempotentHint=false, destructiveHint=false), it discloses the important non-obvious side effect: re-authorizing cancels the existing authorization, restarts the expiry clock, and resets traffic counters. That is exactly the nuance idempotentHint=false hints at but does not explain; what is missing is any indication of what the call returns or whether it can fail on non-guest clients.

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 tight sentences: capability first, then the operational warning in an explicit NOTE. Every clause carries information and nothing repeats the schema or annotations.

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 6-parameter mutation with no output schema, the description covers purpose, applicability, and the main hazard. It leaves the return payload and failure modes for non-guest clients unstated, but nothing critical to invoking it correctly is missing.

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 every parameter — rx/tx rate limits, time limit, data usage cap, siteId, clientId — is already fully documented with units and omit-for-unlimited semantics. The description only summarizes that limits exist, adding no syntax or interaction detail beyond the schema, which is the expected baseline here.

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 first sentence gives a specific verb (authorize), a specific resource (a client), the applicable network context (guest/hotspot/captive portal), and the optional limit dimensions. An agent immediately understands this is a write operation granting access, not a generic config change.

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 clearly states the precondition that makes the tool meaningful — the client must be on a guest network — and warns against casual retries. It stops short of naming unifi_unauthorize_guest_access as the way to revoke access, so the agent has to infer the inverse operation from the sibling name alone.

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