Skip to main content
Glama

Kill processes in sandbox

sandbox_process_kill

Force-terminates a guest process by PID or process name in a Windows sandbox, returning the stopped PID(s). Use it to close hung or unwanted apps launched in the sandbox.

Instructions

Terminate guest processes: exactly one of pid (from sandbox_launch) or name (e.g. "msedge", "notepad"). Force-terminates; returns the stopped pid(s).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "sandbox_process_kill"
  }
}

Input Schema

NameRequiredDescriptionDefault
pidNo
nameNoProcess name without .exe, e.g. "msedge".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0-alpha.3

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden: it usefully discloses that termination is forced (no graceful option) and that the stopped pid(s) are returned. However, it omits important behavior — whether a name match kills all matching processes or errors when multiple/none match, and what failure looks like.

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?

A single tight sentence front-loads the action, then the parameter constraint, then the mutation semantics and return value. No filler and nothing buried.

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 two-parameter tool with no annotations and no output schema, the description covers the essentials: action, argument exclusivity, forcefulness, and return shape. The main missing piece is what happens on name collisions or a nonexistent process.

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 50% (only "name" is documented), and the description compensates: it explains where pid comes from (sandbox_launch), gives name examples, and adds the exactly-one-of constraint that the schema does not encode. The remaining gap is that pid/name conflict handling and multi-match semantics stay unspecified.

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?

States a specific verb and resource ("Terminate guest processes") and scopes it to the sandbox guest, which separates it from inspection-style siblings like sandbox_process. It does not explicitly name an alternative tool, so differentiation is implied rather than stated, but the action is unambiguous.

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?

The description supplies an invocation rule ("exactly one of pid or name") and points at sandbox_launch as the source of a pid, which is genuine when-to-use guidance. It gives no when-not-to-use condition and never names an alternative tool for inspecting or gracefully stopping a process.

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