Skip to main content
Glama
crunchtools

io.github.crunchtools/systemd

by crunchtools

journal_query_tool

Inspect systemd journal logs to diagnose system problems. Search by time window, unit, boot, priority, or regex pattern.

Instructions

Query the journal — the main 2AM troubleshooting tool.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bootNoBoot offset (0 = current boot, -1 = previous boot, ...)
unitNoRestrict to one unit (omit for the whole system journal)
linesNoNumber of log lines to return (default: 100)
sinceNoShow entries since this time (e.g. "1 hour ago", "YYYY-MM-DD HH:MM:SS")
untilNoShow entries until this time
patternNoFilter messages by regex pattern (journalctl -g)
priorityNoMinimum priority: emerg/alert/crit/err/warning/notice/info/debug or 0-7

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / since / description
      Previous value: -"Show entries since this time (e.g. \"1 hour ago\", \"2026-09-19 02:00\")"New value: +"Show entries since this time (e.g. \"1 hour ago\", \"YYYY-MM-DD HH:MM:SS\")"
  2. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden; 'Query' and 'journal' indicate a read-only log inspection, which is a key behavioral trait. However, it says nothing about permissions, output size, or runtime implications, so the disclosure is minimal.

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?

The description is a single concise sentence with no filler, front-loading the core purpose. The '2AM' quirk adds a tone of urgency but is not strictly necessary.

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?

The rich schema and presence of an output schema cover parameters and return values, leaving the description with little to explain. Still, a note about when this tool is the right choice among the many sibling tools would make the definition more complete.

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

Parameters3/5

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

Schema description coverage is 100%, so all seven parameters are already documented with defaults and examples. The description adds no parameter-level meaning, so the baseline of 3 applies.

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?

'Query the journal' is a specific verb and resource that conveys exactly what the tool does. It is implicitly distinguished from sibling unit-management tools by its focus on journal logs, though it does not explicitly name any alternative.

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?

The phrase 'the main 2AM troubleshooting tool' implies it is intended for diagnosing problems, but gives no explicit when-to-use or when-not-to-use conditions and does not compare it to sibling status/unit tools.

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