Skip to main content
Glama

List the processes in a sandbox

list_processes
Read-onlyIdempotent

Retrieves every user-space process from a running sandbox, ordered busiest first, or the last sample from a stopped sandbox to inspect workloads and diagnose activity.

Instructions

List the processes in a sandbox. A running sandbox: every user-space process, read now, busiest first. A stopped sandbox: the last sample kept (live: false).

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": {
      "sandboxId": "<sandboxId>"
    },
    "name": "list_processes"
  }
}

Input Schema

NameRequiredDescriptionDefault
sandboxIdYesPublic Sandbox id returned by create/list/get sandbox calls.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds genuinely non-structured behavior: results are read at call time ("read now"), ordered busiest-first, and for a stopped sandbox it returns the retained last sample flagged `live: false` rather than an error. It stops short of saying whether the list is truncated or how many processes are returned.

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 sentences, front-loaded with the operation and then split by sandbox state. Every clause carries distinct information (freshness, ordering, stopped-sandbox semantics) with no filler.

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?

With no output schema, the description usefully discloses the `live: false` discriminator and ordering, which the agent could not otherwise anticipate. For a read-only single-parameter tool this is nearly sufficient; only result-size/truncation behavior is left open.

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?

There is a single parameter at 100% schema description coverage, with the id format and its provenance already documented in the schema. The description contributes no additional meaning about sandboxId, so the baseline of 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 plus resource ("List the processes in a sandbox") and immediately scopes it to the addressed sandbox. No sibling in the catalog exposes process data, so the operation is unambiguously separable from list_files, list_events, list_command_history and the other list_* tools.

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 implicitly tells the agent this is the tool for inspecting what is running inside a sandbox and explains what to expect per sandbox state. It gives no explicit when-to-use/when-not guidance and names no alternative (e.g. command history) for the adjacent question of what was executed.

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