Skip to main content
Glama
UniFi Network API MCP Server

UniFi Network API MCP Server

by sevaepsteyn

vouchers

Lists all hotspot access codes for a UniFi site by site ID so you can review guest credentials.

Instructions

List all hotspot vouchers for a site.

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>"
    },
    "name": "vouchers"
  }
}

Input Schema

NameRequiredDescriptionDefault
site_idYesSite UUID

Output Schema

NameRequiredDescriptionDefault
vouchersYes
totalCountYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it discloses almost nothing: it does not say whether "all" can be a very large result set, whether pagination or limits apply, whether expired/redeemed vouchers are included, or what permissions are needed. Only the bare read-and-return intent is conveyed.

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?

One short, front-loaded sentence with no wasted words. It is not padded, though its brevity reflects under-specification rather than disciplined trimming.

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?

For a simple one-parameter read tool with an output schema (so return values need not be explained), the description is minimally adequate. It still leaves the agent guessing about result volume, pagination, and voucher state coverage, which matter for a "list all" operation.

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 coverage is 100% and there is a single required site_id documented as "Site UUID", so the schema already does the work. "For a site" merely restates that parameter and adds no format, constraint, or edge-case guidance beyond it.

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?

"List all hotspot vouchers for a site" names a specific verb (List), a specific resource (hotspot vouchers), and a scope (per site). The verb distinguishes it implicitly from create_vouchers and delete_voucher, though it never names those siblings to make the contrast explicit.

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 only implied: the word "List" signals a read-only retrieval keyed on a site, which is enough for an agent to pick it against create_vouchers/delete_voucher. There is no statement of when to prefer it, no mention of any filtering alternative, and no caveats about result size or pagination.

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