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

Signal or Terminate Remote Background Job

ssh_bg_kill
Destructive

Terminate a remote background job using its job ID, delivering a signal to the process group and optionally cleaning up its temp log directory.

Instructions

Deliver a signal to a remote background job's real process group (Unix) or validated process tree (Windows taskkill /T /F), and optionally clean up its remote temp log directory.

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

Input Schema

NameRequiredDescriptionDefault
job_idYesJob ID returned by ssh_bg_start
signalNoSignal to send (default: TERM; Windows supports TERM/KILL)TERM
cleanupNoRemove remote temp control/log directory after signaling (default: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, idempotentHint=false and openWorldHint=true, so the safety profile is covered. The description adds real substance beyond that by defining destruction concretely: the signal hits the whole process group (Unix) or a forced process tree (Windows), and cleanup deletes the remote temp control/log directory. It stays silent on what happens to an already-dead job (relevant given idempotentHint=false) and on what state the job record is left in afterward.

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?

A single front-loaded sentence whose main clause (signal the job) comes before the parenthetical platform caveats and the optional cleanup clause. Dense but every clause carries information; the nested parentheticals make it slightly harder to scan than it needs to be.

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 three-parameter mutation tool with no output schema and full annotation coverage, this covers the essentials: cross-platform kill mechanics, default TERM behavior, and default cleanup=true. Remaining gaps (post-kill status of the job_id, whether the call reports the delivered signal) are minor rather than blocking.

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 all three parameters are already documented, including signal's enum/default and cleanup's semantics — the description largely restates the cleanup behavior rather than extending it. The one genuine addition is that the signal targets the process group/tree rather than a single PID, which clarifies the scope of the signal parameter.

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?

Uses a specific verb ('Deliver a signal') and resource ('remote background job') and adds concrete platform semantics (process group on Unix, taskkill /T /F on Windows). The 'ssh_bg_' prefix plus the kill framing makes its role against ssh_bg_start/ssh_bg_status inferable, but the description never names those siblings explicitly.

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?

Usage is only implied: the schema note that job_id comes from ssh_bg_start makes the start-then-terminate lifecycle clear, and 'optionally clean up' hints at teardown use. There is no explicit statement of when to use this instead of ssh_bg_status, nor any guidance on when not to force-kill or when to set cleanup=false.

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