Skip to main content
Glama

unifi_update_network

DestructiveIdempotent

Modify fields of a UniFi network by sending only changes; the tool previews before → after and requires confirm: true to apply, protecting clients from typos.

Instructions

Change fields of a network. Give only what changes: nested objects merge into the current ones (a nested object whose mode or type changes is replaced). The tool reads the network, merges and PUTs the whole object (the official PUT replaces it). Always needs confirm: true, since a typo can cut clients off; without it the tool previews the changed fields, before → after. 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_update_network"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoNetwork name
siteNoSite name, id or reference; optional while the console has a single site
vlanIdNoVLAN id
zoneIdNoFirewall zone id
confirmNoMust be true to carry out a guarded change; without it the tool only previews it
enabledNofalse disables the network: its clients lose it
networkYesNetwork name or id
deviceIdNoSWITCH management only: the switch that routes it
managementNoWho routes it
dhcpGuardingNoDHCP guarding (official request schema)
isolationEnabledNoIsolate the network from the others
ipv4ConfigurationNoIPv4: hostIpAddress, prefixLength, autoScaleEnabled, dhcpConfiguration {mode SERVER|RELAY, ...} (official request schema)
ipv6ConfigurationNoIPv6 configuration (official request schema)
cellularBackupEnabledNo
internetAccessEnabledNo
mdnsForwardingEnabledNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.3/5.0
Behavior5/5

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

Adds substantial behavior beyond annotations: nested objects merge, an object whose mode/type changes is replaced wholesale, the tool reads-merge-PUTs the full object, missing confirm produces a before → after preview, and touching a protected network (pi-cluster by default) can sever the MCP connection and the preview warns about it. This is exactly the destructive-operation context annotations alone cannot convey.

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?

Front-loads the partial-update rule, then the mechanism, then the safety gate — a sensible ordering with no filler. Some clauses are long and packed (parentheticals about the official PUT and nested replacement) but each carries real information.

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 16-parameter, nested-object mutation with no output schema, the description covers the three things an agent could get wrong: what to send, how merges resolve, and the confirm/protected-network safety behavior. Remaining parameter detail is adequately handled by the 81%-covered schema.

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 already 81%, so the baseline is 3; the description raises it by explaining the merge/replace rule for nested objects like ipv4Configuration and by spelling out the preview role of `confirm`. It does not add anything about site, deviceId, or the remaining scalar flags, which the schema already documents.

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 ('Change fields of a network') and immediately clarifies the partial-update semantics ('Give only what changes'). It is distinguishable from the create/delete siblings by the update framing, though it never names an alternative explicitly.

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 operational guidance: pass only changed fields, `confirm: true` is always required, and omitting it yields a preview rather than a change. It does not say when to prefer update over re-creating a network or what to do if the network is unknown, but the core usage conditions are clear.

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