Skip to main content
Glama

unifi_authorize_guest

Authorize a guest client on a UniFi network and optionally set time, data, and rate limits. Protected networks require confirmation; without it, preview the change first.

Instructions

Authorize a guest client (official AUTHORIZE_GUEST_ACCESS). Replaces any active authorization and resets its counters. Limits are optional; without minutes the site's default applies. A client on a protected network (pi-cluster by default) needs confirm: true; without it the tool previews. An ambiguous name returns the candidates and changes nothing.

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": {
      "client": "<client>"
    },
    "name": "unifi_authorize_guest"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteNoSite name, id or reference; optional while the console has a single site
clientYesClient name, IP, MAC or id
rxKbpsNoDownload rate limit in kbit/s
txKbpsNoUpload rate limit in kbit/s
confirmNoMust be true to carry out a guarded change; without it the tool only previews it
minutesNoHow long the guest stays authorized
dataLimitMbNoData usage limit in megabytes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.4/5.0
Behavior4/5

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

Beyond the annotations, it discloses several non-obvious behaviors: prior authorization is replaced and counters reset, omitted minutes falls back to a site default, guarded changes preview unless confirm is set, and ambiguous names are non-mutating. The "replaces any active authorization" disclosure sits in mild tension with destructiveHint=false, but since the effect is an overwrite of a revocable grant rather than irreversible data loss, it reads as added context rather than a contradiction.

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?

Four short sentences, each carrying distinct information: identity, overwrite/reset semantics, optional limits with default behavior, the confirm guard, and ambiguity handling. The most decision-critical facts (what it authorizes, the confirm guard) come early and nothing is padded.

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?

With seven parameters and no output schema, the description covers the mutation semantics, the destructive-replace behavior, the guard flag, and error-ish paths (ambiguous name). The one gap is that it does not describe what a preview response contains or how the candidate list for an ambiguous name is shaped, which would matter for the two non-executing outcomes.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline would be 3, but the description adds real semantics on top: it explains that the two rate limits and the data limit are optional, and that omitting minutes triggers the site's default rather than an unbounded grant. It does not add units or interaction rules for rxKbps/txKbps beyond what the schema already states.

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 a specific verb and resource ("Authorize a guest client") and anchors it to the official API operation AUTHORIZE_GUEST_ACCESS, so there is no ambiguity about what the call does. It is trivially distinguishable from the sibling unifi_unauthorize_guest, which is the inverse operation.

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 concrete conditions rather than vague hints: limits are optional, omitting minutes falls back to the site default, a client on a protected network requires confirm: true, and an ambiguous name yields candidates without changing anything. What it does not do is name the counterpart tool (unifi_unauthorize_guest) as the way to revoke access, so the when-to-use guidance is clear but not fully routed.

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