Skip to main content
Glama

Stop Process

stop_process
Destructive

Terminate a background process and all its child processes by process ID, optionally forcing immediate SIGKILL or removing it from the process list.

Instructions

Stop a background process and all its children.

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": {
      "process_id": "<process_id>"
    },
    "name": "stop_process"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNoSIGKILL immediately instead of SIGTERM first.
forgetNoAlso remove it from list_processes.
process_idYesId returned by start_process.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and idempotentHint=false. The description adds one genuinely useful behavioral fact beyond them: the stop cascades to child processes. It does not discuss error behavior when the process has already exited or the permission requirements for signalling.

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?

A single front-loaded sentence with no filler; the cascade behavior is stated in the same clause as the action, so nothing is buried or 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?

For a simple 3-parameter tool with a complete schema, rich annotations, and an existing output schema, the description covers the essential action and its cascade side effect. The only modest gap is the absence of failure-mode guidance for already-terminated processes.

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 process_id, force (SIGKILL vs SIGTERM), and forget (removal from list_processes) are fully documented in the schema. The description adds no further parameter semantics, which is the expected baseline when the schema does the work.

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?

States a specific verb and resource ("Stop a background process") plus a scope qualifier ("and all its children") that separates it from a mere signal-sending tool. It is clearly a mutation of a process rather than a listing or input tool, though it never names a sibling alternative outright.

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-to-use guidance, no mention of when to prefer this over sending input to a process or re-running start_process. The reader must infer from the verb alone that this is the terminating counterpart to start_process.

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