Skip to main content
Glama
safe-ssh-mcp

safe-ssh-mcp

by Areso

get_journal_errors

Read-only

Retrieve recent systemd journal warnings and errors from all units and the kernel to identify which service is at fault before deeper diagnostics. Secret-like values are redacted.

Instructions

Recent journal warnings and errors from all units and the kernel. Call first when you don't know which service is at fault. Values that look like secrets are redacted.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "host": "<host>",
      "user": "<user>"
    },
    "name": "get_journal_errors"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostYes
portNo
userYes
linesNo
sinceNo
timeoutNo
key_pathNo
password_envNo
current_boot_onlyNo
accept_new_hostkeyNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.4.0
    • removedInput schema / properties / password
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null
      -}
    • addedInput schema / properties / password_env
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
  2. Changed1 schema field changedv0.3.3
    • changedInput schema / properties / timeout / default
      Previous value: -20New value: +60
  3. Addedv0.2.0

TDQS

A3.5/5.0
Behavior3/5

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

readOnlyHint already declares this a safe read. The description adds a genuinely useful disclosure — 'Values that look like secrets are redacted' — which affects how the agent should interpret results. However, it says nothing about the fact that this reads a remote host's journal, that journal access may need elevated privileges, or about host-key acceptance behavior, all of which matter for a tool that opens an SSH connection.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, each doing distinct work: what it returns, when to call it, and a caveat about redaction. Purpose is front-loaded and there is no filler.

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 output schema exists, so return-value explanation is not needed, and the purpose/usage framing is solid. But for a 10-parameter remote-execution tool with zero schema coverage, the description leaves connection, authentication, time-window, and volume semantics entirely undocumented.

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% across 10 parameters, so the description is the only place meaning can come from — and it provides none. Nothing explains what 'lines' bounds, what format 'since' accepts, what 'current_boot_only' does, or that 'password_env' names an environment variable rather than a password. The agent must infer all connection and filtering semantics from parameter names alone.

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 states a specific resource and scope: 'Recent journal warnings and errors from all units and the kernel.' The 'all units and the kernel' phrasing implicitly separates it from kernel-only siblings like get_dmesg and per-container siblings like get_crictl_logs or get_docker_logs, but no sibling is named explicitly, so it falls short of a 5.

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?

It gives real triage guidance with 'Call first when you don't know which service is at fault,' which tells the agent to reach for this before narrower log tools. What's missing is any negative guidance (e.g., when to prefer get_dmesg or a service-specific log tool) or prerequisite note about needing journal access.

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