Skip to main content
Glama

List agent environments

list_agent_environments
Read-only

List the agent environments connected to a project, with each one's status: connecting, ready (waiting for a session), running (a session is working in the project), paused (the project or server is paused) or error, with the problem in words. Keys are never returned, only their last four characters.

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": {
      "project_id": "<project_id>"
    },
    "name": "list_agent_environments"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYesThe project's id, as returned by create_project or list_projects.

Output Schema

NameRequiredDescriptionDefault
environmentsYesAgent environments connected to the project.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, non-destructive, closed-world), and the description adds real behavioral context beyond them: the full status vocabulary (connecting, ready, running, paused, error) and the redaction rule that keys are never returned, only their last four characters.

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?

One front-loaded sentence with no filler; the status enumeration is somewhat listy but each term earns its place by defining the returned values. The redaction clause is placed last, where it reads as a useful caveat.

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 simple read-only listing tool with an output schema and complete parameter documentation, the description covers scope, returned statuses, and the key-redaction caveat. Only pagination or empty-result behavior is unaddressed, and the output schema largely absorbs that.

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?

The single parameter has 100% schema coverage with a description pointing at create_project/list_projects as the source of the id, so the schema carries the load. The description adds nothing about project_id, which is the expected baseline here.

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 ('List the agent environments connected to a project') plus the per-item content (status). The entity is clearly distinct from the many list_* siblings such as list_servers and list_secrets, though no sibling is named explicitly.

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?

Usage is only implied: an agent can infer it should call this to inspect environment state before connecting or running a session, but the description never says when to prefer it over get_project or agent_session, nor any exclusions or prerequisites.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.