Skip to main content
Glama

ssh_job_start

Destructive

Starts a long-running remote command in the background and returns a job ID, so builds, servers, benchmarks, or logs keep running after the connection closes. Poll status and stop when done.

Instructions

Start a long-running command in the background on the remote host and return immediately with a job_id. Output goes to a log on the device; the job keeps running even if the MCP server or connection goes away. Use for builds, servers, benchmarks, training, flashing, tail -f, etc. Then poll with ssh_job_status and stop with ssh_job_stop.

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>",
      "command": "<command>"
    },
    "name": "ssh_job_start"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNo
sudoNo
targetYes
commandYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Adds substantial behavior beyond the annotations: output is written to a log on the device, the job survives MCP server or connection loss, and the call is non-blocking. It does not, however, elaborate on the destructive/open-world profile declared in annotations, nor on the effect of sudo or whether the job can be retrieved after reconnect.

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?

Four tight sentences: what it does and returns, where output goes, lifetime guarantee, then usage and follow-up tools. Front-loaded with the core action and zero redundant padding.

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?

For a job-launcher with an output schema, the description covers the essential contract: non-blocking start, job_id handle, log destination, persistence, and the poll/stop cycle. Remaining gaps are parameter-level (sudo, cwd) and log retrieval, which are secondary to correct invocation.

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%, with only bare titles (cwd, sudo, target, command). The description implies 'command' is what runs on the host, but adds nothing about target format, cwd default behavior, or what sudo elevates. With self-explanatory parameter names it is only marginally short of adequate, but it leaves the low-coverage gap substantially unfilled.

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?

States a specific verb (start) and resource (long-running background command on the remote host) and immediately disambiguates by noting it returns right away with a job_id, which separates it from foreground siblings like ssh_exec. The life-cycle siblings (ssh_job_status, ssh_job_stop) are named so the agent can place it in a workflow.

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?

Gives concrete use cases (builds, servers, benchmarks, training, flashing, tail -f) and explicit follow-up routing to ssh_job_status for polling and ssh_job_stop for termination. What is missing is an explicit when-not clause pointing to the synchronous alternative (e.g. use ssh_exec for short commands).

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