Skip to main content
Glama
unifi-mcp-server

unifi-mcp-server

by PainInTheNic

List Hotspot Vouchers

unifi_list_vouchers
Read-onlyIdempotent

List guest hotspot vouchers on a site, including voucher codes, usage counts, and expiry status, to audit or manage captive-portal access codes.

Instructions

List guest hotspot vouchers on a site, including the voucher codes, usage counts, and expiry status. Vouchers are access codes guests redeem on the captive portal.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "unifi_list_vouchers"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of results to return (1-200, default 50)
filterNoOptional UniFi filter expression: property.function(args) with functions eq, ne, like, in, isNull, isNotNull and more; combinators and(...), or(...), not(...). Strings in single quotes. Examples: "state.eq('OFFLINE')", "access.type.eq('GUEST')", "name.like('Office*')". Note: which properties are filterable varies by endpoint — a 400 error means that property/function is not supported here.
offsetNoNumber of results to skip, for pagination (default 0)
siteIdNoSite ID (UUID from unifi_list_sites). Optional — when the console has exactly one site it is used automatically.
responseFormatNo'markdown' for a compact human-readable summary (default), 'json' for full raw API datamarkdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is fully covered. The description adds useful return-content detail (voucher codes, usage counts, expiry status) that no structured field provides, but says nothing about pagination behavior, result caps, or volume.

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?

Two short sentences, front-loaded with the operation and scope, with no redundant restatement of the name. The trailing sentence defining what a voucher is adds mild domain orientation but is arguably optional.

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?

For a simple read-only list tool with five fully documented optional parameters, rich annotations and no output schema, the description tells the agent what it does and roughly what it returns. Only the pagination/filtering workflow (which the schema covers) and explicit sibling routing are absent.

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 siteId, filter, limit, offset and responseFormat are already fully explained in the schema. The description adds no parameter-specific meaning beyond that, which is the baseline case for complete schemas.

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 and resource ('List guest hotspot vouchers on a site') and enumerates the returned fields (codes, usage counts, expiry status), so it is clearly distinguishable from the generate/delete voucher siblings by verb alone. It stops short of explicitly naming those siblings as alternatives.

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 read-oriented verb signals this is the inspection path versus unifi_generate_vouchers or unifi_delete_vouchers, but the description never states when to choose this tool or any prerequisite context. No exclusions or routing guidance is given.

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

Deploy Server

Other Tools