Skip to main content
Glama

set_wifi

Destructive

Change Wi-Fi network name, password, hidden status, or on/off state on a TP-Link router. Preview the plan first, then apply with confirm=true, since devices drop and must reconnect.

Instructions

Change a Wi-Fi network (index from wifi_networks): name, password, on/off, hidden. Devices on it drop and must reconnect, with the new password if it changed. Without confirm=true it only shows the plan.

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_index": "<network_index>"
    },
    "name": "set_wifi"
  }
}

Input Schema

NameRequiredDescriptionDefault
ssidNo
deviceNoName of a device from devices.toml (see the 'devices' command); omit for the default device.
hiddenNo
confirmNo
enabledNo
passwordNo
network_indexYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.4.0
    • addedInput schema / properties / device
      Added value: +{
      +  "default": "",
      +  "description": "Name of a device from devices.toml (see the 'devices' command); omit for the default device.",
      +  "title": "Device",
      +  "type": "string"
      +}
  2. First observedv0.2.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is covered; the description still adds real value by disclosing the disruption (devices drop and must reconnect, with the new password if changed) and the dry-run gate. It stops short of noting reversibility or that a wrong password may strand clients indefinitely.

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?

Two sentences, front-loaded with the action and the index source, followed by the impact and the dry-run rule. No filler and nothing that needs reordering.

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 7-parameter destructive mutation with no output schema, it covers the essentials: index provenance, affected fields, client disruption, and the confirm gate. Missing are details of what the plan output looks like and the scope of the device parameter, but nothing that would cause a wrong invocation.

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 only 14%, so the description must compensate, and it largely does: it names ssid (as 'name'), password, enabled (as 'on/off'), hidden, confirm (plan vs apply), and where network_index comes from. The device parameter's meaning lives in the schema, and the description's field labels do not exactly match parameter names, leaving a small mapping burden.

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 (change a Wi-Fi network) and enumerates the mutable fields: name, password, on/off, hidden. It also points at the sibling wifi_networks as the source of the required index, so an agent can tell it apart from the read-only listing tool.

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 a clear precondition (network_index comes from wifi_networks) and an explicit mode rule: without confirm=true it only shows the plan. It does not spell out when not to use it or contrast with other mutation siblings like set_static_ip, but the usage context is unambiguous.

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