Skip to main content
Glama

end_process

Destructive

Terminates a process by PID, escalating from SIGTERM to SIGKILL; optionally ends the whole process tree first, with force reserved for user-approved risks.

Instructions

Ends a process (SIGTERM, then SIGKILL if it has not ended within two seconds), or with tree=true it and every process under it (those first). Unsaved work in it may be lost. The system's critical processes (init, the kernel, the session's compositor) and Anabolic are refused; a game or anti-cheat program needs force=true after the user agreed.

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

Input Schema

NameRequiredDescriptionDefault
pidYesThe process ID (list_processes gives it).
treeNoAlso every process under it (they end first).
forceNoTrue only after the user agreed to the risk this tool described.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.6.1
    • changedInput schema / properties / pid / description
      Previous value: -"The process ID."New value: +"The process ID (list_processes gives it)."
  2. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already flag destructive/non-idempotent/non-readonly, but the description adds substantial behavior the annotations cannot convey: the SIGTERM-then-SIGKILL escalation with a two-second window, children being terminated before the parent in tree mode, potential loss of unsaved work, the protected-process refusal list, and the consent precondition on force.

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?

The terminating action and escalation are front-loaded, and every clause carries operational weight: timing, ordering, data loss, refusals, consent. No filler or redundant restatement of the tool name.

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 three-parameter destructive tool with annotations and no output schema, the description covers mechanism, side effects, and refusal cases well. It does not say what the caller observes when a target is refused or when SIGKILL fails (error vs. result), which is the one remaining gap given there is no output schema to explain returns.

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% and the schema already explains pid, tree (including that descendants end first), and force (only after user agreement). The description's restatement of tree ordering and force consent adds little beyond the schema, so the baseline 3 applies.

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 ('Ends a process') plus the exact mechanism (SIGTERM, then SIGKILL after two seconds), and the tree variant. This is clearly distinguishable from siblings such as suspend_process, limit_process, or why_process_will_not_end.

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?

Gives concrete when-to-use conditions: tree=true for descendants, force=true only for games/anti-cheat and only after user agreement, and notes that critical processes and Anabolic are refused. It stops short of naming alternative siblings (e.g. why_process_will_not_end for a refused target, or suspend_process when termination is too aggressive), leaving that routing to inference.

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