Skip to main content
Glama
UniFi Network API MCP Server

UniFi Network API MCP Server

by sevaepsteyn

authorize_guest

Authorize a client for guest portal access and optionally set time, data usage, upload, or download limits to control network access.

Instructions

Authorize guest access for a client.

This allows a client to access the network through the guest portal. You can optionally set limits on time, data usage, and bandwidth.

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": "authorize_guest"
  }
}

Input Schema

NameRequiredDescriptionDefault
site_idYesSite UUID
client_idYesClient UUID
time_limit_minutesNoTime limit in minutes (1-1000000)
data_usage_limit_mbNoData usage limit in MB (1-1048576)
upload_rate_limit_kbpsNoUpload rate limit in Kbps (2-100000)
download_rate_limit_kbpsNoDownload rate limit in Kbps (2-100000)

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose the meaningful behavioral effect (the client is granted network access through the guest portal) and that limits are optional, but it omits required permissions, whether re-authorizing an already-authorized client is idempotent or resets limits, and how to revoke access.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences with the action and effect front-loaded; nothing is buried. The third sentence largely restates optional schema fields, so it earns less than a perfect score.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present and all six parameters documented in the schema, the description need not explain return values, and it covers the core effect adequately. It falls short on operational context an agent would want for a state-changing, unannotated tool: required permissions and the revocation counterpart.

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%, with units and valid ranges documented per parameter, so the baseline is 3. The description only names the three optional dimensions (time, data usage, bandwidth) as a group and adds no semantics beyond the schema, notably not explaining the separate upload vs. download rate limits.

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?

States a specific verb+resource ('Authorize guest access for a client') and immediately defines the effect: the client gains network access through the guest portal. The sibling 'unauthorize_guest' makes the direction of the operation unambiguous, but the description never explicitly contrasts the two.

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?

Usage is implied rather than stated: the tool is for granting guest-portal network access, and optional limits are mentioned. There is no explicit when-to-use vs. when-not guidance, no note that the guest portal must be enabled, and no pointer to 'unauthorize_guest' for the reverse action.

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