Skip to main content
Glama

List sandboxes

list_sandboxes
Read-onlyIdempotent

Lists sandboxes in the active or specified organization wallet, with filters for name, state, labels, and cost plus cursor pagination.

Instructions

List sandboxes. Your sandboxes. In an organization's scope (the active wallet, org, or X-Boat-Org) the list also holds every sandbox that organization pays for, whoever created it; createdBy and access say whose it is and what you may do with it. An unknown query parameter is refused with 400 invalid_query, which names it.

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

Input Schema

NameRequiredDescriptionDefault
orgNoBilling wallet for this request: an organization you belong to, by id (`team_…`) or by name as `GET /orgs` lists it (case-insensitive), or `personal`. Omitted, the account's active wallet applies (`PATCH /orgs/active`; personal until set). Two organizations sharing the name answer `409 ambiguous_org` and need the id. Sandboxes and snapshots stay creator-private. On `/environments` routes, only this query parameter selects the organization's shared environments; the `X-Boat-Org` header and the active wallet do not apply there. Members read them, owners and admins change them.
nameNoKeep the sandboxes with exactly this name.
sortNoSort direction for cursor pagination.desc
labelNo`key=value`. Repeat it to require several labels, for example `label=session%3Dabc&label=env%3Dprod`.
limitNoMaximum items to return.
stateNoComma-separated sandbox state filter, for example `ready,idle,running`.
cursorNoOpaque pagination cursor returned as `pageInfo.nextCursor`.
includeNoComma-separated. `cost` adds each sandbox's `cost` this calendar month (UTC), at list price. `deletedCost` adds wallet-wide machine time of deleted sandboxes this list would show (not for API keys limited to some sandboxes).
namePrefixNoKeep sandboxes whose name starts with this text, for example `myapp-`. The match is literal.
dataExpiredNo`true` keeps sandboxes whose data retention deleted (`dataExpiredAt` is set). `false` keeps the others.
stoppedBeforeNoKeep stopped sandboxes that stopped before this ISO 8601 time. Every stop counts, auto-stops too.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already establish read-only, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds genuine behavioral detail beyond that: org-scope visibility of sandboxes paid for by the organization regardless of creator, and strict query validation returning `400 invalid_query` naming the offending parameter. It does not cover pagination behavior or result volume, so it lands at solid-but-not-rich.

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?

Front-loaded and short: the purpose and ownership scope come first, then the org-scope caveat, then the validation behavior. The middle sentence is heavily nested with parentheticals and backtick identifiers, which costs some readability, but no sentence is wasted.

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 an 11-parameter, zero-required listing tool with no output schema, this covers the essentials an agent needs: default scope, how to widen it, whose sandbox is whose, and the failure mode for bad queries. It leaves pagination mechanics and the shape of returned items largely to the schema, which is acceptable here since annotations carry the safety profile.

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; the description still contributes by tying the `org` selector to three interchangeable mechanisms and by flagging that unknown query parameters are rejected rather than ignored — meaningful for an 11-parameter filter surface. It does not explain individual filters like `stoppedBefore` or `dataExpired`, which the schema handles alone.

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?

Opens with a specific verb and resource ("List sandboxes") and immediately narrows the scope: personal ownership by default, organization-wide when an org scope is active. That scope distinction differentiates it from a plain per-creator listing, though no sibling tool is named to compare against (e.g. list_sandbox_snapshots).

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?

Gives real context on when the result widens — an organization scope, set via `org`, the active wallet, or `X-Boat-Org` — and explains the `createdBy`/`access` fields that result from it. It stops short of saying when to use this instead of alternatives (get_sandbox, list_sandbox_snapshots) or when to avoid it, so guidance is implied rather than explicit.

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