Skip to main content
Glama
safe-ssh-mcp

safe-ssh-mcp

by Areso

get_journalctl_disk_usage

Read-only

Check how much disk space the systemd journal occupies on a remote host over SSH. Use it to monitor journal storage and detect excessive log growth.

Instructions

Disk space the systemd journal takes (journalctl --disk-usage).

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

Input Schema

NameRequiredDescriptionDefault
hostYes
portNo
userYes
timeoutNo
key_pathNo
password_envNo
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.3.0

TDQS

C2.4/5.0
Behavior2/5

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

readOnlyHint=true already covers the safety profile, so the bar is lower, but the description adds nothing about the SSH connection model implied by the parameters, whether elevated privileges are needed to read the journal, or whether the call can be slow on large journals. The parenthetical command name is the only behavioral hint.

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

Conciseness3/5

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

A single front-loaded sentence with no filler, which is structurally clean. However, its brevity crosses into under-specification for a tool with seven parameters and an SSH authentication surface.

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?

An output schema exists, so return values need not be explained, but the connection/authentication parameters and the environment requirement (systemd journal on the target host) are left entirely undocumented. For a remote-execution tool this leaves the agent guessing about how to construct a valid call.

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

Parameters1/5

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

Seven parameters with 0% schema description coverage, and the description says nothing about any of them — not host, user, port, key_path, password_env, timeout, or accept_new_hostkey. An agent gets no explanation of how credentials are supplied or what the timeout governs.

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 resource (systemd journal disk space) and even names the underlying command (journalctl --disk-usage), which distinguishes it from the generic get_disk_usage and from get_service_logs_from_journalctl. The verb is implied rather than written, but an agent can tell what it measures without opening the schema.

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 choose this over get_disk_usage or get_disk_free, and no mention of prerequisites such as systemd/journalctl being present or the host needing to be reachable. The agent must infer the selection rule entirely from the tool name.

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