Skip to main content
Glama

router_read

Read-onlyIdempotent

Reads TP-Link router or modem settings objects, either all instances or a specific stack, returning masked passwords and keys and stack identifiers needed for approved changes.

Instructions

Read a settings object: every instance, or the one at stack (e.g. "1,2"). Each row carries its _stack, which router_change needs. Passwords and keys are masked unless TPLINK_SHOW_SECRETS=1.

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

Input Schema

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

Output Schema

NameRequiredDescriptionDefault
resultYes

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
Behavior3/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, so the safety profile is covered. The description adds genuine non-obvious behavior: secrets are masked unless TPLINK_SHOW_SECRETS=1, and each row carries a _stack field. Still no word on pagination, size of results, or error behavior for a bad object name.

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?

Three short sentences, front-loaded with the read scope, then the stack argument syntax, then the cross-tool hook and the secret-masking caveat. No filler.

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?

An output schema exists, so return values needn't be spelled out, yet the description volunteers the useful _stack row field. The remaining hole is what 'object' and 'attributes' accept, which nothing in the schema covers.

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 25% (just 'device' is documented), so the description must compensate — and it does for the most important parameter, explaining that 'stack' selects a single instance with a concrete example format "1,2". 'object' and 'attributes' remain unexplained in both places, leaving a real gap.

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 and resource ('Read a settings object') and clarifies scope: all instances versus a single instance addressed by stack. It also links to the consuming sibling router_change. It stops short of clarifying how it differs from router_objects, which is presumably how object names are discovered.

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 concrete selection guidance — omit stack to read every instance, pass a stack like "1,2" for one — and explains the downstream workflow (the row's _stack is what router_change needs). Missing explicit direction on where valid 'object' values come from.

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