Skip to main content
Glama

system_log

Read-onlyIdempotent

Fetches the most recent OpenWrt system log lines, optionally filtered by case-insensitive text, to help diagnose router issues without SSH access.

Instructions

The last lines lines of the system log (1-1000, default 100). With contains, only the lines containing that text (case-insensitive), searched in the last 1000.

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

Input Schema

NameRequiredDescriptionDefault
linesNo
containsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so safety is settled. The description adds two genuinely non-obvious traits: the 1-1000 line ceiling with a default of 100, and the fact that `contains` only searches within the last 1000 lines rather than the whole log, which materially bounds what a negative search result means.

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?

Two tight sentences with no filler; the default and range are front-loaded alongside the parameter they belong to. The opening is an elliptical noun phrase rather than a full clause, and the trailing "searched in the last 1000" is compressed to the point of ambiguity, but nothing is wasted.

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 two-parameter read tool with an output schema and full annotation coverage, most of the burden is lifted, and the description covers both parameters and the search window. It leaves open what happens when the log is shorter than `lines`, whether `lines` and `contains` combine, and whether very large values are truncated, which are the details an agent would most likely guess wrong.

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 description coverage is 0%, so the description must carry the parameters and it largely does: `lines` gets a range (1-1000) and default (100), and `contains` is documented as case-insensitive with a stated search window. It is docked one point because the interaction between the two is left ambiguous — it does not say whether `contains` filters within `lines` or scans the last 1000 independently.

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?

Names the specific resource (the system log) and the exact slice returned (the last `lines` lines), which is enough for an agent to recognize a tail-read tool. It lacks an explicit verb ("Returns"/"Reads") and never contrasts itself with log-adjacent siblings, so it stops short of a 5.

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: an agent can infer this is the tool for inspecting recent system log output, and the `contains` clause hints at searching rather than dumping. There is no explicit when-to-use, when-not-to-use, or comparison to reading other diagnostics such as pending_changes or firewall_config.

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