Skip to main content
Glama

Check launched process

sandbox_process

Check by PID whether a sandbox-launched process is still running, and return its exit code and main window title.

Instructions

Is a process started with sandbox_launch still running? Returns hasExited, exitCode and its main window title.

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

Input Schema

NameRequiredDescriptionDefault
pidYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0-alpha.3

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations the description carries the whole burden, and it does disclose what comes back (hasExited, exitCode, window title), which implicitly frames this as a read-only probe. It does not state what happens for an unknown, already-reaped, or invalid pid, nor that the tool has no side effects, so material behavior for an unannotated tool remains undisclosed.

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?

Two tight sentences, question first for immediate intent, return fields second. No filler or 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?

For a single-parameter liveness probe with no output schema, naming the return fields makes it largely complete. The remaining gap is edge-case behavior (unknown pid, pid of an already-exited or non-launched process) that the description leaves silent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

There is one required parameter (pid) with 0% schema description coverage, so the description must supply its meaning. The phrase 'a process started with sandbox_launch' hints that pid refers to a launched process, but the parameter is never named or clarified, leaving the agent to infer identity and accepted range from the schema alone.

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 gives a specific check verb over a specific resource (a process launched via sandbox_launch) and then enumerates the returned fields (hasExited, exitCode, main window title). That is enough for an agent to separate it from siblings like sandbox_status or sandbox_exec without inspecting the schemas.

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?

It establishes a clear usage context by tying the call to a process that was previously started with sandbox_launch, so the agent knows to call it after a launch. It stops short of explicit exclusions or naming the alternative to use when the question is VM-level rather than process-level (e.g., sandbox_status).

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