Skip to main content
Glama

router_change

Destructive

Modify TP-Link router or modem settings via set, add, or delete actions. Preview proposed changes first, then apply them only after confirmation.

Instructions

Change any setting the web UI can change. action: "set" (stack = the row's _stack; omit for single objects), "add" (parent_stack = the parent row's _stack, e.g. "1" for LAN_DHCP_STATIC_ADDR under LAN 1) or "delete". Read the object first so attribute names match. Without confirm=true it only shows what it would do.

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": {
      "action": "<action>",
      "object": "<object>"
    },
    "name": "router_change"
  }
}

Input Schema

NameRequiredDescriptionDefault
stackNo
actionYes
deviceNoName of a device from devices.toml (see the 'devices' command); omit for the default device.
objectYes
confirmNo
attributesNo
parent_stackNo

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

A3.9/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, and the description adds a genuinely non-obvious behavior: without confirm=true it is a dry run that only shows what it would do. It also warns that attribute names must match the existing object. It does not explain what a delete actually removes, whether changes are reversible, or what errors look like.

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?

The high-level purpose is front-loaded, followed by a compact per-action breakdown and the confirm caveat. It is dense but every clause carries information; the only weakness is the run-on parenthetical for 'add' that slightly obscures the action list.

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 mutation tool with no output schema, the description covers the dry-run safety valve, the read-before-write prerequisite, and per-action stack handling. It still leaves open what the dry-run/confirm responses look like and whether delete is reversible, but nothing critical to calling it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 14% (only 'device' is described in-schema), so the description carries most of the burden and does explain stack, parent_stack, action and confirm semantics with an example. However, the required 'object' parameter is never explained — valid object names are only hinted at via the LAN_DHCP_STATIC_ADDR example, and 'attributes' is only indirectly referenced.

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?

The description opens with a specific verb+scope: 'Change any setting the web UI can change', and enumerates the three action modes (set/add/delete). It is clearly distinguishable from read-oriented siblings like router_read or router_objects, though it never names a sibling 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?

It states which action to pick and when: 'set' for a row's own _stack, omit stack for single objects, 'add' with parent_stack for child rows under a parent (with a concrete LAN_DHCP_STATIC_ADDR example), and 'delete'. It also gives a prerequisite ('Read the object first so attribute names match') but does not name router_read/router_objects as the tool to use for that step.

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