Skip to main content
Glama

unifi_set_wifi_enabled

DestructiveIdempotent

Enable or disable a UniFi WiFi broadcast by setting its SSID on or off. Previews the change unless confirmed, and warns when a protected network could be locked out.

Instructions

Turn a WiFi broadcast on or off (reads it, sets enabled, PUTs the whole object). Always needs confirm: true; without it the tool previews. 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>",
      "enabled": "<enabled>"
    },
    "name": "unifi_set_wifi_enabled"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteNoSite name, id or reference; optional while the console has a single site
wifiYesWiFi broadcast SSID (name) or id
confirmNoMust be true to carry out a guarded change; without it the tool only previews it
enabledYestrue broadcasts the SSID, false stops it

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=true, idempotentHint=true), it discloses the read-modify-write PUT cycle, the mandatory confirm guard with preview fallback, and a lock-out warning when the broadcast serves a protected network before or after the change. That is exactly the kind of extra behavioral context an agent needs for a destructive toggle.

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 action, then the mechanism, then the guard, then the risk warning. Dense but well ordered; the parenthetical and lock-out clause make it slightly heavy, though no sentence is wasted.

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?

Covers the mutation mechanics, confirmation requirement, and the main risk for a destructive, idempotent tool with no output schema. It could say more about what a preview returns, but the essential calling information is present.

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 meaning around confirm (preview without it) and around wifi by explaining that a broadcast linked to a protected network, directly or via a pre-shared key, triggers the lock-out warning.

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 (turn a WiFi broadcast on or off) and describes the mechanism (reads it, sets enabled, PUTs the whole object), which clearly separates it from unifi_create_wifi, unifi_update_wifi and unifi_delete_wifi.

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 clear context for use: a guarded toggle that always requires confirm: true and otherwise only previews. It does not explicitly say when to prefer unifi_update_wifi for broader SSID changes, so it stops short of full alternative routing.

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