Skip to main content
Glama

unifi_create_vouchers

Generate hotspot guest portal vouchers and return their codes. Set voucher name and access duration to issue guest WiFi credentials.

Instructions

Generate hotspot (guest portal) vouchers (official POST /hotspot/vouchers) and return their codes.

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": {
      "name": "<name>",
      "timeLimitMinutes": "<timeLimitMinutes>"
    },
    "name": "unifi_create_vouchers"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesVoucher name (a note shared by the batch)
siteNoSite name, id or reference; optional while the console has a single site
countNoHow many (default 1)
rxRateLimitKbpsNo
txRateLimitKbpsNo
timeLimitMinutesYesHow long a voucher grants access once used
authorizedGuestLimitNoGuests per voucher (absent: unlimited)
dataUsageLimitMBytesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false, destructiveHint=false, and openWorldHint=false, so the safety profile is covered; the description adds that this hits the official POST /hotspot/vouchers endpoint and that codes are returned. It does not disclose that non-idempotent means repeat calls mint duplicate voucher batches, nor that created vouchers persist until explicitly deleted.

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?

A single front-loaded sentence with no filler; the endpoint parenthetical earns its place as provenance. It is however compressed to the point that the returned values and batch behavior are the only operational hints.

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 output schema, the description does state the key outcome (voucher codes), which is the minimum needed. It omits side effects and lifecycle facts (duplicates on repeat calls, cleanup via the delete sibling) that matter for a non-idempotent creator.

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 63% and required fields name/timeLimitMinutes are already documented there. The description adds only the 'batch' framing that contextualizes count and the shared name note; rate limits, dataUsageLimitMBytes, and authorizedGuestLimit semantics are left entirely to the schema.

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 ('Generate') and resource ('hotspot (guest portal) vouchers'), plus the returned artifact ('their codes') and a concrete API endpoint. It doesn't explicitly distinguish itself from the sibling unifi_delete_vouchers or explain the difference from unifi_authorize_guest, so it stops short of a 5.

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?

The description implies the use case (guest portal access) but gives no explicit when-to-use, when-not-to-use, or alternative routing — not even a pointer to unifi_delete_vouchers for cleanup or to unifi_authorize_guest for the other guest-access path. An agent must infer everything about selection from the tool name.

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