Skip to main content
Glama
Claude Desktop Commander MCP

Claude Desktop Commander MCP

by wonderwhy-er

kill_process

Destructive

Terminate a running process by PID, ending a start_process command's shell and all child processes or stopping just the specified PID.

Instructions

                    Terminate a running process by PID.

                    For a PID that start_process returned, it ends the whole command: the shell and every process the command started, as force_terminate does. Any other PID ends that process only. Sessions started with node:local have a negative PID; stop them with force_terminate.

                    Use with caution as this will forcefully terminate the specified process.

                    This command can be referenced as "DC: ..." or "use Desktop Commander to ..." in your instructions.

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": {
      "pid": "<pid>"
    },
    "name": "kill_process"
  }
}

Input Schema

NameRequiredDescriptionDefault
pidYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

The annotations already declare destructiveHint=true and readOnlyHint=false, so safety is covered; the description goes further by disclosing blast radius — that killing a start_process PID also kills the shell and every child process it started. The remaining 'use with caution' sentence largely restates the destructive hint rather than adding new behavior detail such as error handling for unknown PIDs.

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?

The core content is front-loaded and well ordered, with scope semantics before the caution note. However, the trailing 'DC: ...' / 'use Desktop Commander to ...' sentence is invocation boilerplate that adds no selection or invocation value and dilutes an otherwise tight description.

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 one-parameter destructive tool with annotations covering the safety profile and no output schema, the description supplies what is missing: kill scope, alternative-tool routing, and PID origin semantics. Only the outcome/error path for invalid or foreign PIDs is left unspecified.

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 0% and the schema gives only 'number' with no description, so the description carries the burden — it explains that PIDs come from start_process, that node:local sessions use negative PIDs requiring force_terminate, and that scope of the kill depends on PID origin. It stops short of stating behavior for nonexistent or already-dead PIDs.

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 and resource ('Terminate a running process by PID') and immediately characterizes scope: for a PID returned by start_process it ends the whole command tree, for any other PID only that process. That contrast with force_terminate lets an agent distinguish the two without reading either schema.

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

Usage Guidelines5/5

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

Explicit routing: PIDs from start_process go here, while sessions started with node:local (negative PID) should use force_terminate instead. It also flags caution for a destructive operation, so both the when and the when-not are present.

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