Skip to main content
Glama
unifi-mcp-server

unifi-mcp-server

by PainInTheNic

Revoke Guest Access

unifi_unauthorize_guest_access
DestructiveIdempotent

Revoke a guest client's network access and return them to the captive portal; only applies to clients on a guest network.

Instructions

Revoke (unauthorize) a guest client's network access. The client is kicked back to the captive portal. Only meaningful for clients on a guest network. Confirm with the user before revoking someone's access.

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_unauthorize_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)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true; the description adds the concrete consequence — the client is kicked back to the captive portal — which is exactly the outcome detail an agent needs before committing a destructive action. The user-confirmation requirement is extra safety context not encoded in the annotations.

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, action first, then effect, then precondition and safety note — no filler and nothing buried.

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 two-parameter destructive action with full schema coverage and no output schema, the description covers purpose, resulting state, applicability, and confirmation requirement. An agent has everything needed to call it correctly and cautiously.

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 both siteId (auto-resolved for single-site consoles) and clientId (UUID from unifi_list_clients) are already well documented in the schema. The description adds no parameter-level meaning, which is the expected baseline when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

A specific verb plus resource: 'Revoke (unauthorize) a guest client's network access' tells the agent exactly what changes and for whom, and the parenthetical synonym removes ambiguity about the underlying operation. It does not name the inverse sibling unifi_authorize_guest_access, so differentiation is implied by the verb rather than stated.

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?

'Only meaningful for clients on a guest network' is an explicit applicability precondition that tells the agent when not to call it. 'Confirm with the user before revoking someone's access' supplies a clear procedural gate, though no alternative tool is named for the re-authorize path.

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