Skip to main content
Glama

list_modal_environments

Retrieve a list of all environments in your Modal workspace, including development and production divisions, to manage apps and secrets per environment.

Instructions

List all environments in the current Modal workspace (`modal environment list`).

Environments are sub-divisions of a workspace (e.g. "dev" vs "production"), each with
its own apps and secrets. The names returned here are valid `env` arguments for the
other tools.

Returns:
    A dictionary containing the parsed JSON list of environments.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description adequately conveys it is a read-only listing operation returning parsed JSON. It references the CLI command to aid understanding, though it does not detail error handling or authentication requirements.

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?

The description is concise with three sentences, each adding value: purpose, context for usage, and return format. No redundant information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given zero parameters and an output schema, the description provides all necessary context: what the tool does, how results are used, and what is returned. It is complete for a simple listing tool.

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?

The input schema has zero parameters, so the description does not need to explain them. The baseline score of 4 is appropriate as the description adds no parameter info but also does not need to.

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 clearly states the tool lists all environments in the current Modal workspace using a specific verb ('List') and resource ('environments'). It distinguishes itself from sibling tools which focus on apps, secrets, volumes, etc.

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?

The description explicitly notes that the returned names are valid 'env' arguments for other tools, guiding the agent to use this as a prerequisite. It implies when to use (before other environment-scoped tools) but does not explicitly state when not to use.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/george-bobby/mcp-modal'

If you have feedback or need assistance with the MCP directory API, please join our Discord server