Skip to main content
Glama
crunchtools

io.github.crunchtools/systemd

by crunchtools

Journal Query Tool

journal_query_tool

Query systemd journal logs to diagnose system issues by filtering entries via boot, unit, time range, 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", "2026-09-19 02:00")
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. First observedv0.1.0

TDQS

A3.6/5.0
Behavior2/5

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

There are no annotations, so the description carries the full behavioral burden. It only says 'Query' and does not explicitly state that this is a read-only operation, whether it can scan the whole system journal, or any resource/impact caveats. This is a notable gap for a diagnostic tool.

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 short sentence with the core action front-loaded. The '2AM' phrasing is informal but compact and quickly conveys the troubleshooting role.

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?

Parameter syntax and return shape are fully covered by the input and output schemas. The remaining gap is that the description does not provide behavioral guardrails or read-only assurance, which matters because there are no annotations.

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?

Input schema coverage is 100% with each of the 7 optional parameters having a type, default, and description. The description adds no parameter-level detail, but none is needed; the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific action and resource: 'Query the journal', and identifies it as the main troubleshooting tool. None of the sibling tools query logs, so an agent can immediately distinguish this from unit/job operations.

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

Usage Guidelines4/5

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

'The main 2AM troubleshooting tool' gives a clear context: use it when diagnosing problems via logs. It does not name exclusions or alternatives, but no other journal/log sibling exists, so the guidance is adequate.

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