Skip to main content
Glama

Journal Search

journal_search

Search systemd journal logs with optional time, service, and text-query filters to diagnose Linux host issues.

Instructions

Search systemd journal logs with optional filters.

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_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
linesNo
queryNo
sinceNo
serviceNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and delivers almost nothing: read-only nature is only implied by 'search', and there is no disclosure of permissions (journal access often needs elevated group membership), result ordering, truncation behavior, or cost of a broad scan. The existence of an output schema covers return shape, but not operational behavior.

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?

One sentence, front-loaded with the verb and resource, with no filler or repetition. It is efficient, though its brevity here reflects under-specification rather than disciplined editing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with four zero-coverage parameters, no annotations, and a filter language an agent must guess at, the description is far too thin, even accounting for the output schema covering return values. An agent cannot determine which filter fields take what formats or how to scope a query safely.

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

Parameters2/5

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

Schema description coverage is 0%, so the four parameters (lines, query, since, service) are undocumented everywhere, and the description only gestures at them as 'optional filters'. Worse, 'lines' is a result-count limit rather than a filter, so the single phrase slightly mischaracterizes the parameter set and gives no syntax for 'since' or the query grammar.

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?

The description gives a specific verb ('Search') and a specific resource ('systemd journal logs'), so an agent knows exactly what data source is queried and can distinguish it from container-log or metrics siblings. It stops short of naming a differentiating sibling (e.g. docker_container_logs) or stating scope, so it is clear but not fully differentiated.

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?

The only usage signal is 'with optional filters', which tells the agent filters may be omitted but not when to reach for this tool versus docker_container_logs, service_failure_diagnostics, or service_status. No when-not-to-use, no preconditions, no mention of what a filterless call returns.

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