Skip to main content
Glama
eduardoddddddd

DesktopCommanderPy

kill_process

Terminate a running process by PID. Send SIGTERM for graceful shutdown or force immediate termination with SIGKILL.

Instructions

Terminate a running process by PID.

By default sends SIGTERM (graceful shutdown). Set force=True to immediately kill the process (SIGKILL on Linux, TerminateProcess on Windows).

Returns confirmation or error message.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pidYesPID of the process to terminate.
forceNoIf True, use SIGKILL/TerminateProcess. Default False (graceful SIGTERM).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

With no annotations, the description fully discloses the signals used (SIGTERM, SIGKILL/TerminateProcess) and the return behavior, leaving no ambiguity about what the tool does.

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?

Three sentences with no waste. The core purpose is front-loaded, and each sentence adds value without redundancy.

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?

The description covers the essential behavior for a process-killing tool, including signal details and return value summary. With an output schema present, it need not detail return values further. Missing prerequisites like permissions are acceptable omissions.

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 coverage is 100%, so baseline is 3. The description adds 'graceful shutdown' and 'immediately kill' context beyond the schema, but does not provide additional parameter meaning beyond what the schema already specifies.

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?

The description clearly states the tool terminates a running process by PID, using a specific verb and resource. It distinguishes from siblings like start_process and list_processes.

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?

The description explains the default SIGTERM and force option for SIGKILL, providing clear usage context for normal vs. immediate termination. However, it does not differentiate from the sibling force_terminate.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/eduardoddddddd/DesktopCommanderPy'

If you have feedback or need assistance with the MCP directory API, please join our Discord server