Skip to main content
Glama
szoran53
by szoran53

Get Journal Logs

get_journal_logs
Read-only

Fetch systemd journal logs with optional filters for unit, time range, line count, and priority. Use it to troubleshoot services or review system events.

Instructions

Fetch systemd journal logs with optional filters. unit: service name, since/until: time range (e.g. "1 hour ago"), lines: count, priority: 0-7 or emerg/alert/crit/err/warning/notice/info/debug.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
unitNoService unit name (e.g. nginx, ssh)
linesNoMax lines to return
sinceNoStart time (e.g. "1 hour ago", "2026-03-27 08:00")
untilNoEnd time
priorityNoLog priority filter (err, warning, info, debug, etc.)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds useful filter semantics (priority scale, relative time formats), but omits permission requirements, default line behavior, and truncation effects that would matter for a journal reader.

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 compact sentence that front-loads the core action and then lists filters in schema order. Slightly dense with colon-delimited clauses, but no sentence 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?

All five parameters are documented in the schema and filters are explained, but with no output schema the description should ideally say what the returned log entries look like. Combined with the missing sibling routing and permission caveats, it is adequate but not 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 coverage is 100%, so the baseline is 3. The description does marginally enrich the priority parameter by enumerating the full 0-7 / emerg-to-debug scale, which the schema only abbreviates as 'err, warning, info, debug, etc.' That said, it adds no new meaning for unit, lines, since, or until.

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 (Fetch) and resource (systemd journal logs) with scope qualification (optional filters). However, it never distinguishes itself from close siblings like search_logs and tail_file, leaving the agent to infer which log-retrieval tool applies.

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

Usage Guidelines2/5

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

No guidance on when to use this over search_logs or tail_file, and no mention of prerequisites such as needing elevated privileges to read journal data. The agent must guess based on tool names alone.

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