Skip to main content
Glama

unifi_delete_vouchers

DestructiveIdempotent

Delete UniFi hotspot vouchers by IDs, exact name, or expired status, with all filters required to match. Requires confirm: true; otherwise previews the vouchers that would be removed.

Instructions

Delete every hotspot voucher a filter matches (official bulk DELETE): by ids, exact name and/or expired; several criteria must all match. Always needs confirm: true; without it the tool lists what would go.

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_delete_vouchers"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsNoVoucher ids
nameNoExact voucher name
siteNoSite name, id or reference; optional while the console has a single site
confirmNoMust be true to carry out a guarded change; without it the tool only previews it
expiredNotrue: expired vouchers; false: unexpired ones

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, so the safety class is covered. The description adds genuinely new behavior: the confirm:true guard and the fact that omitting it downgrades the call to a read-only preview listing what would be deleted, plus the AND-combination rule across filters. That is substantive context beyond the annotations.

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 tight sentences with no filler; the filter criteria come first, followed by the confirm guard and its preview fallback. Every clause carries information an agent needs.

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 a destructive bulk operation with no output schema and zero required parameters, the description covers the guard and the filter semantics well. It omits the critical case of calling with no filter at all (all five parameters are optional), and it does not explain scope limiting via site, which leaves a real risk gap.

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 every parameter is already documented, giving a baseline of 3. The description adds one meaningful semantic the schema lacks, namely that multiple criteria are conjunctive ('several criteria must all match'), but it says nothing about the site parameter or which filter combinations are valid.

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 ('Delete every hotspot voucher a filter matches') and labels itself the 'official bulk DELETE', which implicitly separates it from the singular unifi_delete_voucher sibling. It does not name that sibling, so an agent must infer the bulk-vs-single distinction rather than being told it.

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 implied through the filter description (ids, exact name, expired) and the hard 'Always needs confirm: true' precondition, which tells the agent how to invoke it safely. However, there is no explicit statement of when to choose this over unifi_delete_voucher or what to do if no criterion is supplied.

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