Skip to main content
Glama
finch-shell-mcp
by hlint

Stop a job

job_kill
Destructive

Terminates a running shell job by force-killing its process tree, using taskkill on Windows or SIGTERM then SIGKILL elsewhere. Grace period is configurable.

Instructions

Windows uses taskkill /T /F on the parent chain. Other systems send SIGTERM to the process group, then SIGKILL after the grace period. A partial stop returns E_KILL_INCOMPLETE.

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": "job_kill"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idNojob_id
grace_msNograce_ms

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3.2/5.0
Behavior4/5

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

The annotations only declare destructiveHint=true; the description adds genuine behavior beyond that: on Windows the whole parent chain is force-killed, elsewhere a SIGTERM-then-SIGKILL escalation occurs, and a partial result surfaces as E_KILL_INCOMPLETE. That tells an agent what actually gets destroyed and that failure can be partial. It stops short of saying whether the operation is reversible or what permissions/ownership are needed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three dense sentences with little filler, so length is fine. However, it is not front-loaded: it opens with Windows implementation detail instead of a one-line statement of what the tool does, forcing the reader to assemble the purpose from mechanism.

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

Completeness3/5

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

For a two-parameter, non-required-argument destructive tool with no output schema, the description covers the kill mechanics and one error code but omits what a successful return looks like, why job_id is optional (and what happens without it), and any routing against sibling tools. Adequate, but with clear gaps for a destructive operation.

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

Parameters4/5

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

Schema coverage is nominally 100%, but the schema merely repeats the parameter names, so the description is doing real work by explaining that grace_ms is the window before escalation to SIGKILL. It leaves job_id uninterpreted and does not state what happens if the optional grace_ms is omitted or what its default is.

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

Purpose3/5

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

The description conveys the effect of the tool only indirectly, through mechanism words ("taskkill /T /F", "SIGTERM ... then SIGKILL", "A partial stop"). It never plainly states that it terminates a job and its process tree, so an agent must infer the verb+resource from the name and title. It also makes no attempt to distinguish this from siblings such as job_send or exec.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use or when-not guidance, and no alternative is named. A destructive, irreversible-looking operation with a sibling like job_send should say something about when stopping is appropriate versus sending a message, and nothing here does that.

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