Skip to main content
Glama

Stop a process

process_kill
Destructive

Use this when the user asks to stop a program running on an approved computer, by process ID, with its child processes unless tree is false. Never stops Local Commander, work it started (use operation_cancel), system processes or security software. Needs a Full Access workspace. Changes the computer. Needs the sessionId from execution_session_open and a new operationId; each call is metered as one execution. A short result is returned inline within about two seconds; otherwise keep the returned IDs for operation_status and operation_output and do not resend the call.

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": {
      "sessionId": "<sessionId>",
      "operationId": "<operationId>",
      "pid": "<pid>"
    },
    "name": "process_kill"
  }
}

Input Schema

NameRequiredDescriptionDefault
pidYesProcess ID from process_list
treeNoAlso stop its child processes (default true)
sessionIdYesexecutionSessionId returned by execution_session_open
deadlineAtNoOptional UTC admission deadline at most 60 seconds ahead (queue start timeout, NOT process execution lifetime)
operationIdYesA new random UUID v4 for this call; reuse it only to retry this same call
expectedNameNoProcess name from process_list; refused if that ID now belongs to another program (recommended)
idempotencyKeyNoOptional retry key, 8-128 chars of [A-Za-z0-9._:-]; defaults to operationId
efficiencyProfileNoOptional, unverified label of the client's model, recorded as display metadata in the device owner's local activity statistics. Omit when unknown. Never send credentials or conversation content.
expectedStartedAtNostartedAt from process_list; refused if that ID now belongs to a process started at another time (recommended)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.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, so the danger profile is covered. The description nevertheless adds real value beyond them: precondition (Full Access workspace), metering ('each call is metered as one execution'), the sessionId/operationId handshake, and the stay-don't-retry instruction when the result is async. It stops short of describing what state is destroyed or how failures/refusals (e.g. expectedName mismatch) surface, so it is a solid but not exhaustive treatment of a destructive tool.

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?

The trigger condition is front-loaded and every clause carries information, but the body is one dense multi-clause block that bundles eligibility, safety exclusions, prerequisites, metering, and return handling together. It is efficient, though a light restructuring would improve scanability.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 9-parameter destructive tool with no output schema and a nested object, the description covers the admission prerequisite, identity/retry key discipline, safety refusals, return timing, and post-call follow-up via operation_status/operation_output. An agent can invoke it correctly and knows what to do on timeout.

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 100%, so the baseline is 3, but the prose adds meaning the schema does not: tree defaults to stopping children unless explicitly false, operationId must be new per call and is the unit of metering/retry, and sessionId must come from execution_session_open. The deadline/scheduling semantics are left to the schema, which is appropriate.

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 opens with a specific verb+resource+scope: 'stop a program running on an approved computer, by process ID, with its child processes unless tree is false.' It explicitly distinguishes itself from operation_cancel (for work the tool itself started), so an agent can choose between them without opening schemas.

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?

It names the triggering user intent ('when the user asks to stop a program'), the environment prerequisite (Full Access workspace), and explicit exclusions (Local Commander, work started by it, system processes, security software) with the correct alternative named for one of them. This is close to a complete decision rule.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.