Skip to main content
Glama
unifi-mcp-server

unifi-mcp-server

by PainInTheNic

Delete Network (LAN/VLAN)

unifi_delete_network
DestructiveIdempotent

Delete a LAN network or VLAN by ID, with optional force for referenced resources; verify dependencies and confirm before irreversible removal.

Instructions

Delete a LAN network / VLAN. CAUTION: irreversible — clients on it lose their network and dependent WiFi/firewall/routes may break. Check unifi_get_network_references first and confirm with the user. Set force=true to delete even while other resources still reference it. IDs come from unifi_list_networks.

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

Input Schema

NameRequiredDescriptionDefault
forceNoDelete even if other resources still reference this network (default false)
siteIdNoSite ID (UUID from unifi_list_sites). Optional — when the console has exactly one site it is used automatically.
networkIdYesNetwork ID (UUID from unifi_list_networks)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, but the description goes well beyond them by naming the concrete blast radius: clients lose connectivity and dependent WiFi/firewall/routes may break, plus irreversibility and the force override's meaning. It stops short of describing the response payload or what error surfaces when force is omitted with live references, but the safety context is substantially enriched.

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?

Four short sentences with the irreversible warning front-loaded immediately after the purpose statement, followed by the safe workflow and the escape hatch. No filler; every clause carries operational weight.

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 destructive three-parameter tool with no output schema, the description covers purpose, danger, the recommended verification step, and the force escape hatch. An agent has everything needed to invoke it responsibly without further probing.

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 the description largely restates what the schema already says — force as an override and networkId as coming from unifi_list_networks. siteId's single-site auto-resolution is documented only in the schema, not the description, so no meaning is added beyond structured fields.

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 pair ('Delete a LAN network / VLAN') that scopes the operation to networks and distinguishes it from sibling deletes such as unifi_delete_wifi, unifi_delete_firewall_policy, or unifi_delete_voucher. An agent can identify the target entity without opening the schema.

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 an explicit pre-flight sequence: call unifi_get_network_references first, then confirm with the user, and only then set force=true if references remain. It also routes the agent to unifi_list_networks as the ID source, leaving no ambiguity about where to start.

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