Skip to main content
Glama

logs

Read the last N OpenWrt system log entries (1–200, default 40) to inspect recent router events and diagnose issues.

Instructions

Read-only: last N lines of logread (1..200).

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": "logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
linesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden; it does disclose that the operation is read-only and caps the retrieval at 1..200 lines, which are useful behavioral traits. It does not state the output form (raw text lines vs structured), whether privileges are needed to run logread, or what happens when fewer lines than requested exist.

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?

A single short sentence fragment with the safety qualifier front-loaded and zero filler. It is efficient, though extremely terse relative to what an agent might need.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple one-parameter read tool with no output schema, the essentials are mostly present (resource, scope, bound, read-only nature). The unstated default of 40 and the unstated return format leave modest gaps.

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

Parameters5/5

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

Schema coverage is 0%, so the description must define the single parameter, and it does: N is the count of trailing log lines, bounded to 1..200. Wait—reconsidering: it repeats the min/max already in the schema and omits the default of 40, so it adds only partial meaning.

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 names a concrete resource (logread) and a concrete scope (last N lines), so an agent can tell this returns recent system log output. It is not a tautology of the name 'logs'.

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: 'last N lines' hints at inspecting recent log events, and 'Read-only' signals a safe inspection call. There is no explicit when-to-use, no prerequisites, and no exclusion or alternative routing (e.g., versus ubus_call or service_status).

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