Skip to main content
Glama
unifi-mcp-server

unifi-mcp-server

by PainInTheNic

Update Network (LAN/VLAN)

unifi_update_network
DestructiveIdempotent

Replace an existing LAN network or VLAN configuration with a full object update. Fetch current settings, modify needed fields, and submit the complete config to apply changes.

Instructions

Replace the configuration of an existing LAN network / VLAN (full PUT). Fetch the current object with unifi_get_network (responseFormat='json'), change what you need, and pass the whole object as 'config'. CAUTION: changing subnet/VLAN/DHCP can disconnect every client on this network — confirm with the user first. 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>",
      "config": "<config>"
    },
    "name": "unifi_update_network"
  }
}

Input Schema

NameRequiredDescriptionDefault
configYesFull network object to write (fetch current via unifi_get_network, then modify). A config with any value still containing "[redacted]" (how reads show credentials) is refused: put the real value in, or leave the field out.
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.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, but they do not say what is at risk; the description adds that subnet/VLAN/DHCP changes can disconnect every client, which is exactly the operational consequence an agent needs. The full-replacement semantics and the '[redacted]' refusal rule also add substance, though the latter is largely duplicated from the schema.

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, each doing distinct work: operation semantics first, then the workflow, then the risk warning, then the ID provenance. Nothing is redundant and the risk is front-loaded with a CAUTION marker rather than buried.

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 full-replacement mutation with a nested free-form object and no output schema, the description supplies the workflow, the identifier sources, the confirmation requirement, and the blast radius. There is no meaningful gap an agent would need filled before calling it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning by explaining how to construct 'config' (whole object from a prior read, not a patch) and where networkId originates. It does not, however, describe the internal fields of the nested network object, which is where an agent is most likely to err.

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 ('replace the configuration of an existing LAN network / VLAN') and immediately clarifies the semantics with '(full PUT)', which separates it from a partial-update or create operation. The mention of fetching via unifi_get_network and enumerating IDs from unifi_list_networks further distinguishes it from unifi_create_network and the get/list siblings.

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 three-step recipe (fetch with unifi_get_network using responseFormat='json', modify, pass the whole object as 'config') and names the sibling that supplies IDs. It also states the condition requiring user confirmation before proceeding, so both the normal path and the caution path are spelled out.

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