Skip to main content
Glama
unifi-mcp-server

unifi-mcp-server

by PainInTheNic

Update WiFi Network (SSID)

unifi_update_wifi
DestructiveIdempotent

Replace an existing WiFi SSID's full configuration by fetching current JSON, modifying it, and submitting the complete config; restore real passphrase and expect client disconnects.

Instructions

Replace the configuration of an existing WiFi SSID (full PUT). Fetch the current object with unifi_get_wifi (responseFormat='json'), modify it, and pass the whole object as 'config'. NOTE: reads show the passphrase as '[redacted]', and a config still containing that placeholder is refused before anything is sent (it would otherwise become the literal new passphrase) — put the real passphrase back in securityConfiguration (ask the user for it). CAUTION: reconfiguring an SSID disconnects its connected clients — confirm with the user. IDs come from unifi_list_wifi.

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

Input Schema

NameRequiredDescriptionDefault
configYesFull WiFi broadcast object to write (fetch current via unifi_get_wifi, 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.
wifiIdYesWiFi broadcast ID (UUID from unifi_list_wifi)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, but the description adds non-obvious behavior the annotations cannot convey: reconfiguring an SSID disconnects connected clients, and any config containing the '[redacted]' placeholder is refused before transmission (which otherwise would silently set the literal passphrase). That redaction trap is exactly the kind of failure mode an agent would hit without warning.

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-loaded with the operation and replacement semantics, then labeled NOTE and CAUTION sections for the two hazards. It is dense with parentheticals and em-dashes, and the redaction warning appears in both the description and the schema, but no sentence is padding.

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?

Covers everything needed to invoke a destructive, nested-object mutation correctly: prerequisite fetch, full-replacement contract, credential redaction trap, client-disconnect consequence, and ID sourcing. No output schema exists, but the description doesn't need to explain return values for a PUT that writes back a known object.

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; the description goes slightly further by stressing that 'config' is a whole-object replacement rather than a patch, which is the key semantic that prevents accidental field loss. It largely restates the redaction rule already present in the config schema description, so the added meaning is modest.

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 WiFi SSID (full PUT)'), and the 'full PUT' qualifier distinguishes it from a partial-update sibling. It also names the companion reads (unifi_get_wifi, unifi_list_wifi) so the agent can tell which tools are prerequisites rather than substitutes.

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 read-modify-write procedure: fetch with unifi_get_wifi (responseFormat='json'), modify, pass the whole object as 'config'. It also states where IDs come from and adds a confirmation requirement ('confirm with the user') after a CAUTION, so both the when and the human-in-the-loop condition 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