Skip to main content
Glama

list_environments

Lists sandbox environments available to you, including personal and global ones, with pagination. Use returned names or IDs to select an environment when submitting jobs.

Instructions

List sandbox environments visible to the caller — their own USER envs plus all GLOBAL envs.

Returns {"environments": [...], "next_cursor": str | None}; pass next_cursor back for the next page. Use a returned name (or id) as the environment argument to submit_job. Secret env-var values are not included; call get_environment for full details.

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_environments"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax rows (default 20, capped at 50).
cursorNoOpaque pagination token from a prior call's ``next_cursor``. Omit for the first page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden, and it does substantial work: it discloses the visibility scope, the pagination round-trip via `next_cursor`, and the important limitation that secret env-var values are omitted. It does not mention auth requirements, ordering, or rate limits, which keeps it below 5.

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-loads purpose, then return shape, then downstream use, then the secret-value caveat — a logical progression with little waste. Minor redundancy between the cursor sentence and the schema's cursor description keeps it from a 5.

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 correctly supplies the return shape (`environments` plus `next_cursor`) and the exclusion of secret values, which is what an agent needs to consume results. It omits auth or visibility prerequisites and ordering guarantees, so it is strong but not exhaustive.

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?

Schema coverage is 100%, so `limit` and `cursor` are already documented in full. The description's cursor sentence largely restates the schema's own wording rather than adding new semantics; baseline 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 and resource ("List sandbox environments") and immediately scopes it: the caller's own USER envs plus all GLOBAL envs. The follow-on sentence pointing to get_environment for full details clearly separates it from that sibling.

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?

Gives concrete downstream guidance — use a returned name or id as the `environment` argument to `submit_job` — and routes the agent to `get_environment` when full detail is needed. It stops short of stating explicit exclusions or prerequisites (e.g. when listing is not appropriate), so not a 5.

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