Skip to main content
Glama

router_logs

Read-onlyIdempotent

Retrieve and filter TP-Link router or modem system logs, newest first, by module, severity, or text/MAC to troubleshoot connectivity and device issues.

Instructions

System log, newest first. module: e.g. DHCPD, PPP, DHCPC, SYSTEM. contains: text or a MAC to look for. max_severity: 0 emerg, 3 err, 4 warn, 6 info, 7 debug (everything). Note: the router clears it on reboot.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "router_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
deviceNoName of a device from devices.toml (see the 'devices' command); omit for the default device.
moduleNo
containsNo
max_severityNo

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.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and closed-world, so the safety profile is covered. The description adds genuinely new behavior: results are newest-first, and critically that the router clears the log on reboot, which tells the agent results may be incomplete after a restart.

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?

Very compact and front-loaded – resource and ordering first, then per-parameter hints, then the reboot caveat. The telegraphic fragments ('module: e.g. ...') trade a little readability for density, but nothing 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?

An output schema exists, so return values need no explanation, and the read-only nature is covered by annotations. For a simple filtered-read tool the description supplies the essential semantics, with only 'limit' and a device-default explanation left implicit.

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 20% (just 'device'), so the description has to compensate, and it largely does: it gives module value examples (DHCPD, PPP, DHCPC, SYSTEM), explains 'contains' accepts free text or a MAC, and maps max_severity integers to syslog levels. The 'limit' parameter is left unexplained, which is the main remaining 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?

The opening clause 'System log, newest first' names the resource and its ordering, which is enough to distinguish it from mutation siblings like router_change or reboot_router. It never states an explicit verb (retrieve/list/read), but the intent is unmistakable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: the module, contains, and max_severity hints suggest you call it to search or narrow log output. There is no statement of when to prefer this over siblings such as client_history or find_client for client-related questions, and no guidance on when not to use it.

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