Skip to main content
Glama
Bridge Commander
by PaPasha215

kill_process

Destructive

Terminate a process by PID using SIGTERM, or send SIGKILL when force is true, to stop hung or unwanted programs from an AI assistant.

Instructions

Send SIGTERM (or SIGKILL with force=true) to any process by PID.

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
forceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

The annotations already declare destructiveHint=true and idempotentHint=false. The description adds meaningful context beyond them: it discloses the default graceful signal (SIGTERM) and the escalation path to an ungraceful kill (SIGKILL via force=true), which tells the agent that data loss is possible only under escalation. It stops short of stating permission requirements or behavior when the PID does not exist.

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?

One sentence, front-loaded with the action and the signal semantics, with the parenthetical qualifier placed right after the default. Nothing is redundant, though adding a clause about acquiring the PID or the sibling relationship would not have hurt.

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?

With only two parameters, no output schema, and strong annotation coverage of destructiveness, this short description is close to sufficient. The remaining gaps are the PID source, error behavior for a nonexistent process, and any statement distinguishing it from force_terminate.

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 0%, so the description has to carry the meaning of both parameters. It does explain force=true as selecting SIGKILL versus the default SIGTERM, and it implies that pid is the target identifier, but it gives no guidance on where the PID comes from or what happens with an invalid PID, so the compensation is partial.

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?

The description gives a specific verb (send signal), resource (a process by PID), and the exact signal semantics (SIGTERM by default, SIGKILL when force=true). It is clearly distinct from readers like read_process_output, but it does not differentiate itself from the sibling force_terminate, which appears to cover overlapping territory.

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 agent must infer that this is the tool for terminating a process and that it should first obtain a PID elsewhere (e.g., list_processes). There is no explicit when-to-use, when-not-to-use, or statement of how it relates to force_terminate or interact_with_process.

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