Skip to main content
Glama
ssh-remote-mcp
by wcbup

Check Remote Background Job Status and Logs

ssh_bg_status
Read-onlyIdempotent

Check a background job's live status, exit code, and tail or incremental logs by job ID; omit the ID to list all tracked jobs.

Instructions

Check live running status, exit code, and tail/incremental logs of a background job by job_id. Omit job_id to list all tracked background jobs.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ssh_bg_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idNoJob ID returned by ssh_bg_start. Omit to list all tracked jobs.
targetNoOptional target filter when listing jobs (ignored if job_id is given)
max_bytesNoMaximum log bytes to return (default: 65536)
tail_linesNoLines to return from end of log when byte_offset is omitted (default: 200)
byte_offsetNoRead incrementally starting from this byte offset (pass previous nextByteOffset)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and openWorld, so safety is covered. The description adds real behavioral context: it returns live status plus exit code, supports tailing versus incremental byte-offset reads, and ties job_id back to ssh_bg_start. It does not say whether tracking survives reconnects or how truncation past max_bytes is signalled, leaving a modest gap.

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 sentences, zero waste, with the primary inspection behavior front-loaded and the list-all fallback second. Nothing is repeated from the schema.

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

Completeness4/5

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

With five optional parameters and no output schema, the description does a good job naming what comes back (status, exit code, logs) and how to page logs incrementally. Minor gaps remain around return structure and error conditions, but nothing an agent needs to invoke it correctly is missing.

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 description coverage is 100%, so every parameter is already documented, including the tail_lines/byte_offset relationship and max_bytes default. The description's 'tail/incremental logs' phrasing reinforces that relationship but adds no format, unit, or edge-case detail beyond the schema; baseline 3 applies.

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?

The description names a specific verb+resource ('Check live running status, exit code, and tail/incremental logs of a background job') and covers both operating modes via job_id. It implicitly separates itself from the write siblings (ssh_bg_start/ssh_bg_kill) by being the inspection tool, but never names an alternative explicitly, so sibling differentiation is inferred rather than stated.

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?

It clearly states the two usage modes: supply job_id to inspect one job, omit it to enumerate all tracked jobs. There are no exclusions or named alternatives (e.g., when to prefer ssh_bg_kill or a plain ssh_exec), so it stops short of full when/when-not guidance.

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