Skip to main content
Glama

unifi_update_wifi

DestructiveIdempotent

Update a UniFi WiFi broadcast by changing only specified fields; preview before/after edits and require confirm:true to apply changes safely.

Instructions

Change fields of a WiFi broadcast. Give only what changes: nested objects merge into the current ones (one whose type changes is replaced). The tool reads the broadcast, 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; a passphrase change shows only as "changed". A broadcast that serves a protected network (pi-cluster by default), directly or through a pre-shared key, before or after the change, carries a lock-out warning.

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": {
      "wifi": "<wifi>"
    },
    "name": "unifi_update_wifi"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoSSID
siteNoSite name, id or reference; optional while the console has a single site
typeNo
wifiYesWiFi broadcast SSID (name) or id
confirmNoMust be true to carry out a guarded change; without it the tool only previews it
enabledNo
networkNoWhich network the SSID puts clients on: NATIVE (the default network) or SPECIFIC
hideNameNo
mloEnabledNo
uapsdEnabledNo
arpProxyEnabledNoSTANDARD only (required there)
channel2gLockedTo6No
advertiseDeviceNameNoSTANDARD only (required there)
bandSteeringEnabledNo
bssTransitionEnabledNoSTANDARD only (required there)
hotspotConfigurationNoHotspot (captive portal, Passpoint) (official request schema)
clientFilteringPolicyNoMAC filtering (official request schema)
dtimPeriod2gLockedTo3No
securityConfigurationNoSecurity: {type OPEN|WPA2_PERSONAL|WPA3_PERSONAL|WPA2_WPA3_PERSONAL|WPA2_ENTERPRISE|..., passphrase (8-63), pmfMode, presharedKeys, ...}. The passphrase is never shown back. (official request schema)
clientIsolationEnabledNo
mdnsProxyConfigurationNomDNS proxy (official request schema)
broadcastingDeviceFilterNoWhich APs broadcast it (official request schema)
multicastFilteringPolicyNoMulticast filtering (official request schema)
broadcastingFrequenciesGHzNoSTANDARD only (required there): bands to broadcast on
dnsAssistanceConfigurationNoDNS assistance (official request schema)
blackoutScheduleConfigurationNoBlackout schedule (official request schema)
basicDataRateKbpsByFrequencyGHzNoMinimum data rates (official request schema)
handoffSuggestionsConfigurationNoHandoff suggestions (official request schema)
dtimPeriodByFrequencyGHzOverrideNoDTIM periods (official request schema)
multicastToUnicastConversionEnabledNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.2/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the read-merge-PUT mechanism and that the official PUT replaces the whole object, the required confirm:true gate, the preview (before → after) behavior when confirm is omitted, the masking of passphrase changes, and a lock-out warning for broadcasts serving a protected network. That last item is real operational risk context an agent could not infer from destructiveHint alone.

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?

Dense but front-loaded: the partial-update rule comes first, then the mechanism, then the confirm gate, then the safety warning. Every sentence carries operational information, though the read-merge-PUT explanation is phrased twice (nested merge and whole-object PUT) and could be tightened.

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 destructive, idempotent 30-parameter mutation with no output schema, it covers the essentials: partial-update semantics, the confirm gate, preview output shape, and a lock-out safety warning. Only minor gaps remain, such as what a successful confirmed call returns and whether required STANDARD-only fields must be resupplied on a partial update.

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 67%, and the description compensates for the gap by explaining the semantics that apply across all 30 parameters: nested objects merge into existing ones, an object whose type changes is replaced wholesale, and only changed fields need be supplied. It also flags that passphrases are never echoed back, complementing the securityConfiguration schema note, though it says nothing about the site or type parameters specifically.

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 WiFi broadcast", immediately signaling a partial-update mutation on a WiFi broadcast object. It is clearly distinguishable from create/delete/list siblings by the verb alone, though it never names an alternative such as unifi_set_wifi_enabled for the narrow enable/disable case.

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?

"Give only what changes" plus the merge/replace rule tells the agent exactly how to call it for partial updates, which is the main usage decision for a 30-param tool. It does not state exclusions or point to a sibling (e.g. use unifi_set_wifi_enabled for a toggle), so it stops short of full routing guidance.

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