Skip to main content
Glama
safe-ssh-mcp

safe-ssh-mcp

by Areso

get_systemd_unit_definition

Read-only

Retrieve a systemd unit's definition over SSH, including its unit file, drop-ins, ExecStart, User, Environment, and output destination; secret-like values are redacted.

Instructions

How one unit is run (systemctl cat daemon): its unit file and drop-ins, with ExecStart=, User=, Environment= and where its output goes. 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": {
      "daemon": "<daemon>",
      "host": "<host>",
      "user": "<user>"
    },
    "name": "get_systemd_unit_definition"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostYes
portNo
userYes
daemonYes
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. Addedv0.3.3

TDQS

A3.5/5.0
Behavior4/5

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

Beyond readOnlyHint=true, the description discloses genuinely useful behavior: drop-in files are merged in, key directives (ExecStart=, User=, Environment=, output destination) are surfaced, and secret-looking values are redacted. The redaction note is important since it tells the agent returned values may be masked. It does not mention that the call reaches the host over SSH, which the schema implies.

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?

Two tight sentences, front-loaded with the resource and the systemctl analogue, then the notable behavioral details. No filler or redundancy.

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 return-value side is covered by the output schema and the description adds the relevant redaction caveat, but for an 8-parameter remote-execution tool the credential and connection parameters go entirely unexplained. Adequate for understanding what comes back, incomplete for understanding what must be supplied.

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 8 parameters, so the description carries the full burden and mostly fails it: it says nothing about host, user, port, key_path, password_env, accept_new_hostkey, or timeout. Only 'daemon' is loosely implied by 'one unit'. An agent gets no auth or connection guidance for the SSH-style parameters.

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+resource: returns how one systemd unit is run, i.e. its unit file and drop-ins, with a parenthetical equating it to 'systemctl cat daemon'. That clearly separates it from list/status siblings, though it never names which sibling to use for status vs. definition.

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

Usage Guidelines3/5

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

Usage is only implied by the framing 'how one unit is run' versus listing or status tools; there is no explicit 'use this when you need the file contents rather than current state' or any exclusion. An agent can infer the intent but is given no routing guidance.

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