Skip to main content
Glama

journal_logs

Read-only

Read and filter systemd journal entries by unit, time window, priority, boot, and regex to diagnose service and system issues.

Instructions

Read systemd journal entries, filtered by unit, time window, priority, boot and regex. Note: system-wide logs need the user to be in the adm group (they are).

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

Input Schema

NameRequiredDescriptionDefault
bootNo
grepNo
unitNo
linesNo
sinceNo1 hour ago
priorityNoinfo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered; the description adds a genuine auth prerequisite (system-wide logs require `adm` group membership). However it omits other behaviors that matter here, such as how results are truncated or ordered, whether the journal read is expensive on large windows, and failure behavior for a nonexistent unit.

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 short sentences with the capability front-loaded and the caveat second, which is good ordering. The parenthetical '(they are)' is informal filler that assumes rather than informs, though it costs little space.

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?

An output schema exists, so return-value explanation is not required, and annotations cover the read-only safety profile. Still, for a six-parameter tool with zero schema description coverage, the description leaves the `lines` limit, the default 'since' window semantics, and the regex behavior undocumented, which an agent must guess.

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 bears the burden, but it names the concepts behind five of six parameters (unit, since as 'time window', priority, boot, grep as 'regex'). It adds no format detail such as timestamp syntax for `since` or regex flavor for `grep`, and it never mentions the `lines` parameter, which caps output size.

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 systemd journal entries') and enumerates the filter dimensions (unit, time window, priority, boot, regex), which is far more specific than the name alone. It does not explicitly contrast with siblings such as service_status, but the resource is distinctive enough to be unambiguous.

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 implied by the filter list and the prerequisite note about the `adm` group, but there is no explicit when-to-use/when-not guidance or reference to an alternative tool for related needs. An agent can infer that this is the log-inspection tool, but must decide on its own when logs are the right source versus a status or process tool.

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