Skip to main content
Glama

router_run

Destructive

Runs a specified router operation such as DHCP renewal or PPP disconnect; without confirm=true, it previews the action instead of applying it.

Instructions

Run a router operation from router_objects' list, such as ACT_DHCP_RENEW or ACT_PPP_DISCONN. 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": {
      "operation": "<operation>"
    },
    "name": "router_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
deviceNoName of a device from devices.toml (see the 'devices' command); omit for the default device.
confirmNo
operationYes

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.1/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; the description adds genuinely new behavioral context by disclosing the dry-run default ('Without confirm=true it only shows what it would do'). It does not say whether executed operations are reversible, what happens on an invalid operation, or what the response contains.

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 short sentences with zero filler, and the dry-run caveat is placed second so the primary action reads first. Nothing is repeated from the title or schema.

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 definition covers the essential safety gate (confirm) and the source of valid operation values. It leaves out return-value shape and error behavior, which are minor given there is no output schema to lean on.

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 33%, so the description must compensate — and it does for two of three parameters: 'operation' is scoped to router_objects' list with examples, and 'confirm' semantics are explained. 'device' is covered by the schema itself, so no parameter is left fully opaque.

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+resource ('Run a router operation') and anchors valid values to the sibling tool 'router_objects' list, with concrete examples (ACT_DHCP_RENEW, ACT_PPP_DISCONN). This distinguishes it from siblings like router_change or router_read, though it never explicitly contrasts with them.

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 usage context: operations must come from the router_objects list, and confirm=true is required to actually execute. It does not explicitly say when to prefer router_change or router_status instead, 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.