Skip to main content
Glama
UniFi Network API MCP Server

UniFi Network API MCP Server

by sevaepsteyn

delete_voucher

Permanently deletes a hotspot voucher by site and voucher ID, invalidating the code and disconnecting any guests currently using it.

Instructions

Delete a specific hotspot voucher.

This will invalidate the voucher code and disconnect any guests using it.

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": {
      "site_id": "<site_id>",
      "voucher_id": "<voucher_id>"
    },
    "name": "delete_voucher"
  }
}

Input Schema

NameRequiredDescriptionDefault
site_idYesSite UUID
voucher_idYesVoucher UUID

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations supplied, the description does real work by disclosing the two side effects: the code is invalidated and connected guests are disconnected. It stops short of stating irreversibility, whether an undo/restore path exists, or what permissions are required for a destructive operation.

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 short sentences with zero filler, and the destructive action is stated first with consequences following. Nothing could be removed without losing information.

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 tool with a full schema and an output schema, the description covers purpose and the key side effect. Only irreversibility and permission requirements are left implicit; everything needed to invoke it correctly is present.

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% (site_id and voucher_id both documented as UUIDs), so the schema already carries parameter meaning. The description adds no syntax, format, or scoping detail beyond it, which is the expected baseline here.

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 a specific hotspot voucher") that an agent can immediately distinguish from the create/list voucher siblings. It is clear but does not name an alternative when the agent might instead want to revoke or edit rather than delete.

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 consequence sentence (invalidate the code, disconnect guests) implicitly tells the agent to use this only when terminating guest access. There is no explicit when-to-use/when-not-to-use guidance or named alternative for less severe operations.

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