Skip to main content
Glama
UniFi Network API MCP Server

UniFi Network API MCP Server

by sevaepsteyn

unauthorize_guest

Revoke guest access for a client to immediately disconnect them from the guest network.

Instructions

Revoke guest access for a client.

This will immediately disconnect the client from the guest network.

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": {
      "site_id": "<site_id>",
      "client_id": "<client_id>"
    },
    "name": "unauthorize_guest"
  }
}

Input Schema

NameRequiredDescriptionDefault
site_idYesSite UUID
client_idYesClient UUID

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden and does disclose the key side effect: the client is immediately disconnected from the guest network. It is silent on idempotency, what happens if the client is not currently authorized, required permissions, and error behavior for a destructive mutation.

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 short sentences with zero filler; the action is front-loaded and the consequence follows immediately. Nothing redundant or 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?

An output schema exists, so return values need not be explained, and both parameters are fully documented in the schema. For a simple two-parameter revocation tool the description covers action and effect, missing only failure-mode and permission context.

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% (site_id as Site UUID, client_id as Client UUID), so the schema already documents both parameters. The description adds no format, constraint, or cross-parameter meaning, so the baseline 3 applies.

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?

"Revoke guest access for a client" states a specific verb (revoke) and resource (guest access) scoped to a client, which is clearly the inverse of the authorize_guest sibling. It does not explicitly name that sibling or its counterpart, so differentiation is inferred from 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The context of use is implied by the verb and the target (a client on the guest network), but there is no explicit when-to-use, when-not-to-use, or reference to authorize_guest as the alternative. An agent must infer that this is the correct call whenever guest access must be removed.

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