Skip to main content
Glama
safe-ssh-mcp

safe-ssh-mcp

by Areso

get_process_info

Read-only

Inspect a remote process by PID or exact name over SSH to retrieve status, limits, cgroup, OOM score, and I/O data while redacting secret-like values.

Instructions

One process by pid or name (exact, e.g. nginx): ps, status, cgroup, limits, OOM score, I/O. 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_process_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
pidNo
hostYes
nameNo
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. Addedv0.3.3

TDQS

B3.2/5.0
Behavior3/5

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

Annotations only declare readOnlyHint=true, and the description adds genuinely useful behavior: the specific facets returned and the fact that secret-looking values are redacted, which an agent could not infer elsewhere. However, it never discloses that each call opens a remote connection via SSH with host/user credentials, so the agent cannot anticipate authentication failures or latency.

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?

Two short sentences, front-loaded with the identifying verb and the identifier options, followed by the payload list and a redaction caveat. Nothing is redundant, though the compressed colon-list is slightly terse for a 9-parameter tool.

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?

An output schema exists, so return values need not be described. But given nine parameters with zero schema documentation, the description should at minimum explain the required host/user target and the mutual exclusivity of pid and name; those omissions leave meaningful setup gaps.

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 9 parameters, so the description must carry the load, yet it only explains pid and name and their exact-match semantics. The seven connection and auth parameters (host, user, port, timeout, key_path, password_env, accept_new_hostkey) are left entirely undefined, and the precedence between pid and name is unclear.

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 info) and resource (a single process) and enumerates the data returned: ps, status, cgroup, limits, OOM score, I/O. The phrase "one process by pid or name (exact)" distinguishes it from list-style siblings like get_crictl_ps or get_process_executable_files, though it does not name them.

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?

The "one process by pid or name" wording implies the tool is for single-process inspection rather than bulk listing, and "exact, e.g. nginx" warns that name matching is not a substring search. No explicit when-not-to-use or alternative is given, and the question of which identifier wins when both pid and name are supplied is unaddressed.

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