Skip to main content
Glama

ssh_job_status

Read-only

Check a background SSH job's state, exit code, elapsed time, and recent output; use the optional wait to block until completion and avoid busy polling.

Instructions

Get a background job's state (running / exited / dead), exit code, elapsed time and the last tail_lines lines of its output. wait_seconds (max 600) waits up to that long for the job to finish before answering, which avoids busy polling.

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": {
      "target": "<target>",
      "job_id": "<job_id>"
    },
    "name": "ssh_job_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYes
targetYes
tail_linesNo
wait_secondsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds real value by listing the possible states (running/exited/dead) and the 600-second wait cap, but it never says what is returned if the job is still running when wait_seconds expires — an important behavioral detail for a wait-based tool.

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 tight sentences with no filler, front-loading the return contents and then the wait behavior. Slightly dense with backtick-quoted parameter names inline, but nothing is wasted.

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?

An output schema exists, so enumerating every return field is not required, and readOnly annotations cover the safety story. The remaining gap is the behavior when wait_seconds is insufficient and the meaning of target/job_id, which an agent must guess for a four-parameter tool.

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 0%, so the description carries the full burden. It explains tail_lines (last N output lines) and wait_seconds (blocking wait, max 600), but leaves job_id and target completely undefined and does not state the defaults (50 for tail_lines, 0 for wait_seconds) or what tail_lines=0 would mean.

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 names a specific verb and resource — 'Get a background job's state' — and enumerates the returned fields (state, exit code, elapsed time, tail of output), which makes it clearly the single-job inspection tool rather than ssh_job_list, ssh_job_start, or ssh_job_stop.

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?

It gives one useful usage hint — use wait_seconds instead of busy polling — but never states when to reach for this over ssh_job_list or after ssh_job_start. Usage is only implied by the polling hint rather than explicitly routed.

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