Skip to main content
Glama
pmboxbiz

mcp-ssh-live

by pmboxbiz

ssh_persistent_status

Check whether a remote persistent process is still running, view its last stdout and stderr log lines, and retrieve its exit code.

Instructions

Check the status of a persistent job started by ssh_run_persistent. Returns whether the process is still running, the last lines of its stdout and stderr logs, and the exit code (if it finished).

You need the PID and the log paths returned by ssh_run_persistent. Example: ssh_persistent_status(pid=12345, out_log='/tmp/mcp-persistent/abc123/out.log', err_log='/tmp/mcp-persistent/abc123/err.log')

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pidYesThe remote PID returned by ``ssh_run_persistent``.
out_logYesPath to the stdout log file on the remote.
err_logYesPath to the stderr log file on the remote.
hostNoHost alias. Defaults to the default host.
tail_linesNoHow many lines to return from each log. Default 50.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Without annotations, the description carries the full burden. It accurately describes the return values (running status, logs, exit code) and does not mention any destructive side effects. It is transparent about what the tool provides.

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?

The description is two sentences plus an example, all relevant. No wasted words, and the example concretizes usage.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the output schema exists, the description still covers key return info. It also explains input dependencies and references the sibling. It is complete for the tool's purpose.

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

Parameters3/5

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

Schema coverage is 100%, so baseline is 3. The description adds value by emphasizing the required parameters and showing example values, but doesn't expand on optional parameters beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool checks the status of a persistent job from ssh_run_persistent, specifying it returns running status, log lines, and exit code. It distinguishes itself from siblings by referencing the specific parent tool.

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?

The description explains that the PID and log paths from ssh_run_persistent are needed, and provides an example. While it doesn't explicitly state when not to use it, the context is clear that it's for checking persistent jobs.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pmboxbiz/mcp-ssh-live'

If you have feedback or need assistance with the MCP directory API, please join our Discord server