Skip to main content
Glama
unifi-mcp-server

unifi-mcp-server

by PainInTheNic

Get Hotspot Voucher Details

unifi_get_voucher
Read-onlyIdempotent

Retrieve a hotspot voucher by ID to view its code, label, usage counts, time limit, and expiry status; use voucher IDs returned by the voucher list tool.

Instructions

Get one hotspot voucher by ID: its code, label, usage counts, time limit, and expiry status. IDs come from unifi_list_vouchers.

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": {
      "voucherId": "<voucherId>"
    },
    "name": "unifi_get_voucher"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteIdNoSite ID (UUID from unifi_list_sites). Optional — when the console has exactly one site it is used automatically.
voucherIdYesVoucher ID (UUID from unifi_list_vouchers)
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

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=true, so safety is covered. With no output schema, the description adds real value by previewing the returned fields (code, label, usage counts, time limit, expiry status), which lets the agent judge whether calling it answers the question. It does not say what happens for an unknown or expired voucher ID.

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

Conciseness5/5

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

Two sentences, zero filler. The core purpose and returned data come first, and the ID-provenance hint is placed last where it belongs.

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 single-object read tool with full schema coverage and complete annotations, the description supplies purpose, provenance and return-field preview. The only omission is error behavior (not-found or expired voucher), which is minor for this complexity level.

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%, so voucherId, siteId and responseFormat are already documented including the UUID provenance and the single-site auto-selection rule. The description's only parameter-adjacent content repeats the voucherId source already in the schema, adding no new syntax or format meaning.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Get') and resource ('one hotspot voucher by ID') and enumerates what comes back: code, label, usage counts, time limit, expiry status. The singular scope plus the pointer to unifi_list_vouchers separates it cleanly from the sibling list tool.

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

Usage Guidelines4/5

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

'IDs come from unifi_list_vouchers' tells the agent the prerequisite step and implies the list-vs-get split. It stops short of explicitly saying 'use unifi_list_vouchers instead when you don't already have an ID', so no hard exclusion is stated.

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