Skip to main content
Glama
unifi-mcp-server

unifi-mcp-server

by PainInTheNic

Delete Hotspot Voucher

unifi_delete_voucher
DestructiveIdempotent

Delete a UniFi hotspot voucher by ID to revoke its access code. This action is irreversible, so confirm the voucher first.

Instructions

Delete one hotspot voucher by ID, revoking the code. IDs come from unifi_list_vouchers. This cannot be undone — confirm with the user first.

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_delete_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)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is structured. The description still adds real value beyond them: the concrete consequence ('revoking the code') and the irreversibility/confirmation protocol ('This cannot be undone — confirm with the user first'), which tells the agent how to behave before calling. It does not mention downstream effects on clients currently using the voucher.

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?

Three short sentences, zero filler, with the action and scope front-loaded and the warning placed last where it is most likely to be read before execution. Every sentence carries distinct information: action, ID provenance, irreversibility.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter delete with full schema coverage, rich annotations, and no output schema, nothing an agent needs is missing: what it deletes, where the ID comes from, that the effect is irreversible, and that user confirmation is expected. Optional site resolution is handled entirely by the schema.

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% and both parameters are documented, including the optional auto-resolved siteId, so the baseline is 3. The description's mention of the ID source duplicates what the voucherId schema already says and adds no format or resolution detail beyond it.

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 and resource with explicit scope: delete ONE voucher by ID, and adds the effect (revoking the code). The singular 'one ... by ID' scoping naturally separates it from the bulk sibling unifi_delete_vouchers, so an agent can pick correctly without opening either schema.

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?

Gives the precondition for obtaining the required argument ('IDs come from unifi_list_vouchers') and a workflow instruction ('confirm with the user first'), which is the right context for a destructive delete. It stops short of naming explicit alternatives (e.g., use unifi_delete_vouchers for bulk removal), so it is clear context rather than full when/when-not guidance.

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