Skip to main content
Glama

unifi_delete_network

DestructiveIdempotent

Delete a UniFi network by name or ID with confirmation; without confirm it previews the change, and in-use or protected networks are blocked or flagged.

Instructions

Delete a network (official DELETE). Always needs confirm: true; without it the tool previews. The console refuses a network still in use. Changing or disabling a protected network (pi-cluster by default) can cut unifi-mcp off; its preview says so.

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": {
      "network": "<network>"
    },
    "name": "unifi_delete_network"
  }
}

Input Schema

NameRequiredDescriptionDefault
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
networkYesNetwork name or id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the destructiveHint/idempotentHint annotations by disclosing the two-phase preview-then-execute gate, server-side refusal for in-use networks, and the self-lockout risk when deleting a protected network such as pi-cluster. These are exactly the operational risks an agent needs before calling a destructive tool.

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

Conciseness4/5

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

Four short sentences leading with the action, then the guardrail, then the failure mode, then the hazard. Dense and front-loaded; only "its preview says so" is slightly oblique.

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 3-parameter destructive tool with full schema coverage, no output schema and rich annotations, the description covers the guard mechanism, server refusal, and the highest-severity side effect. Nothing an agent must know to invoke it safely is missing.

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 site, confirm and network are already documented, putting the baseline at 3. The description restates the confirm preview behavior rather than adding new syntax or format detail, and its "Changing or disabling" phrasing describes an update-style action rather than this delete, which muddies rather than clarifies.

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 ("Delete a network") and pins the underlying API semantics with "(official DELETE)". The verb alone separates it cleanly from the unifi_create_network and unifi_update_network siblings.

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 concrete context for use: confirm: true is always required, an absent confirm yields a preview, and the console rejects networks still in use. It stops short of naming an alternative (e.g. disable/update instead of delete) for the in-use or protected-network case, so no explicit exclusions.

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