Skip to main content
Glama
safe-ssh-mcp

safe-ssh-mcp

by Areso

get_open_files

Read-only

Lists open files for remote processes by PID, name, or path over SSH, and finds deleted files still consuming disk space when du cannot explain a full disk.

Instructions

Open files of processes, like lsof, by pid, name or path. deleted_only=True: deleted files still taking space, when du cannot explain a full disk.

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

Input Schema

NameRequiredDescriptionDefault
pidNo
hostYes
nameNo
pathNo
portNo
userYes
linesNo
timeoutNo
key_pathNo
deleted_onlyNo
password_envNo
accept_new_hostkeyNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered. The description adds real value by explaining what deleted_only actually surfaces (deleted-but-still-open files holding disk space), but it omits notable behavior: the tool operates against a remote host over SSH, and the lines parameter implies output truncation that is never mentioned.

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 core purpose and then the special-case flag. Efficient with no filler, though the second clause is telegraphic enough to be slightly cryptic on first read.

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 12-parameter tool with an output schema, the description covers only one flag and three filters. The whole connection/authentication surface and the output-size controls are unexplained, which is a meaningful gap for an agent that must supply host and user as required arguments.

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 12 parameters, so the description carries the full burden and does not meet it. It explains deleted_only and gestures at pid/name/path, but leaves host, user, port, key_path, password_env, accept_new_hostkey, lines, and timeout entirely undocumented anywhere.

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 ("Open files of processes") and anchors it with a well-known analogue ("like lsof"), then names the three filter axes: pid, name, path. That is enough to distinguish it from siblings like get_list_of_files, but it never explicitly says how it differs from those file-listing tools.

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 deleted_only clause gives a concrete diagnostic scenario ("when du cannot explain a full disk"), which is genuine when-to-use guidance. However, there is no guidance on when to prefer get_list_of_files or get_process_executable_files instead, and no note on prerequisites such as SSH access to the target host.

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