Skip to main content
Glama

unifi_unauthorize_guest

Idempotent

Revoke a guest client’s authorization and disconnect it from the UniFi network; protected networks require confirm: true, otherwise the action is previewed.

Instructions

Revoke a guest client's authorization and disconnect it (official UNAUTHORIZE_GUEST_ACCESS). 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_unauthorize_guest"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteNoSite name, id or reference; optional while the console has a single site
clientYesClient name, IP, MAC or id
confirmNoMust be true to carry out a guarded change; without it the tool only previews it

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations, it discloses the actual side effect (disconnect), the guarded-change preview protocol, the protected-network default (pi-cluster), and the ambiguity outcome where candidates are returned and nothing changes. These are precisely the behavioral facts an agent cannot derive from readOnlyHint/idempotentHint alone.

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, front-loaded with the action, then the confirmation guard, then the failure mode. Nothing is redundant and each sentence carries distinct information.

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 three-parameter mutation with no output schema, the description covers the action, the safety gate, the default protected network, and the ambiguous-input return behavior. An agent has everything needed to call it safely without a dry run.

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 is 3, but the description adds real semantics: confirm acts as a guarded-change gate with preview fallback, and an ambiguous client value yields candidates rather than a mutation. It does not elaborate on site or client format, which the schema already covers.

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 ('Revoke a guest client's authorization') and names the concrete side effect ('disconnect it'), plus an explicit official operation name. This is instantly distinguishable from the sibling unifi_authorize_guest, which does the inverse.

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 states the operative condition clearly: a client on a protected network requires confirm:true, and without it the tool only previews. That gives explicit when/when-not behavior, though it never names the alternative tool (unifi_authorize_guest) or explains when a plain block would be preferred.

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