Skip to main content
Glama
unifi-mcp-server

unifi-mcp-server

by PainInTheNic

Delete Hotspot Vouchers (bulk)

unifi_delete_vouchers
DestructiveIdempotent

Delete hotspot vouchers in bulk using a required filter, such as expired.eq(true) or a batch name, so only matching vouchers are removed. Confirm first; deletion is irreversible.

Instructions

Delete every hotspot voucher matching a filter, in one call. A filter is REQUIRED so this can't wipe all vouchers by accident — e.g. "expired.eq(true)" to clear expired ones, or "name.eq('Weekend guests')" for a batch. CAUTION: irreversible; confirm with the user. To delete a single voucher by ID, use unifi_delete_voucher instead.

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": {
      "filter": "<filter>"
    },
    "name": "unifi_delete_vouchers"
  }
}

Input Schema

NameRequiredDescriptionDefault
filterYesUniFi filter selecting which vouchers to delete, e.g. "expired.eq(true)". Required.
siteIdNoSite ID (UUID from unifi_list_sites). Optional — when the console has exactly one site it is used automatically.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=true, so the core safety profile is covered. The description adds genuinely new behavioral context beyond that: the required filter acts as a guard against deleting all vouchers, the operation is irreversible, and the agent should confirm with the user. It doesn't state what is returned or whether a zero-match filter errors, which keeps it below a 5.

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, front-loaded with the action, then the safety guard, then the sibling routing. Every sentence carries information; there is no filler.

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 two-parameter destructive bulk operation with no output schema, the description covers action, guardrail, irreversibility, and the correct alternative tool. The only meaningful omission is return behavior (e.g., how many vouchers were deleted, or whether an empty match is a no-op), which an agent might want to know for verification.

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% and the filter property already documents the UniFi filter syntax and its required status. The description restates that filter is required and illustrates two example expressions, but adds only marginal meaning beyond the schema (mainly the safety rationale), so the baseline 3 applies.

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?

Opens with a specific verb+resource+scope: "Delete every hotspot voucher matching a filter, in one call." That distinguishes it immediately from the single-voucher sibling unifi_delete_voucher, which is also named explicitly later.

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

Usage Guidelines5/5

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

Gives the selecting condition (bulk-match by filter) and names the alternative for the other case ("To delete a single voucher by ID, use unifi_delete_voucher instead"), plus concrete filter examples showing intended usage patterns.

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