Skip to main content
Glama
UniFi Network API MCP Server

UniFi Network API MCP Server

by sevaepsteyn

create_vouchers

Create one or more hotspot vouchers that let guests access the network with a code, with configurable time, data, and guest limits.

Instructions

Create one or more hotspot vouchers.

Vouchers allow guests to access the network by entering a code. Each voucher can be used by multiple guests up to the authorized limit.

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

Input Schema

NameRequiredDescriptionDefault
nameYesVoucher note/description
countNoNumber of vouchers to create (1-1000)
site_idYesSite UUID
time_limit_minutesYesTime limit per voucher in minutes (1-1000000)
data_usage_limit_mbNoData usage limit in MB (1-1048576)
authorized_guest_limitNoNumber of guests per voucher (min 1)
upload_rate_limit_kbpsNoUpload rate limit in Kbps (2-100000)
download_rate_limit_kbpsNoDownload rate limit in Kbps (2-100000)

Output Schema

NameRequiredDescriptionDefault
vouchersYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full disclosure burden and falls well short: it does not say the call mutates state, that generated codes are returned, whether creation is reversible, what permissions are needed, or any limits beyond the schema's count range. The one genuinely useful behavioral detail is that a voucher can be reused by multiple guests up to the authorized limit, which explains consumption semantics rather than the call itself.

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, action front-loaded in the first, with the explanatory context after. Nothing is redundant, though the middle two sentences are domain background rather than invocation-relevant content.

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 an 8-parameter mutation with no annotations, the description is minimally viable. An output schema exists so return values need not be explained, but the definition still omits authorization expectations and the fact that a batch creation produces multiple credentials, which an agent would want before calling it.

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 parameter documentation is already handled and the baseline is 3. The description adds a small amount of meaning by linking the 'multiple guests' concept to the authorized_guest_limit parameter and clarifying that creation is batched, but gives no guidance on interacting parameters such as combining time_limit_minutes with data_usage_limit_mb.

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?

The description uses a specific verb plus resource ('Create one or more hotspot vouchers') and makes the batch nature explicit ('one or more'). It is clearly distinguishable from sibling names like vouchers and delete_voucher, though it does not state that distinction itself.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance, no mention of prerequisites such as a valid site_id or authorization requirements, and no pointer to alternatives (e.g. vouchers for listing existing ones). The single sentence about guests entering a code describes what a voucher is, not when to call this tool.

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