Skip to main content
Glama

list_environments

List all API environments, optionally filtered by workspace ID, to inspect available configurations before selecting or managing them.

Instructions

List all environments, optionally filtered by workspace

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
workspace_idNoFilter by workspace ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.6-beta

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, yet it discloses almost nothing beyond the read nature implied by 'List'. It does not say whether results are paginated, whether environment variables are included in each item, whether auth or a specific workspace scope is required, or what an item looks like.

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?

One sentence, front-loaded with the core action and followed immediately by the scoping option. There is no filler, hedging, or redundant restatement of the tool name.

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?

This is a low-complexity read tool with one optional parameter, no nested objects, and no output schema, so the description covers the essential call contract. The remaining gap is the absence of any statement about what is returned or whether results are truncated.

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 description coverage is 100% and the single parameter already documents itself as 'Filter by workspace ID'. The description's 'optionally filtered by workspace' only restates that, adding no format, default, or behavior detail beyond the schema, so the baseline 3 applies.

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 all environments') plus an explicit scope qualifier ('optionally filtered by workspace'). It is clearly distinct from write siblings like create_environment or delete_environment by verb alone, but it does not name or distinguish itself from the closest read sibling, compare_environments.

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 phrase 'optionally filtered by workspace' implies when the parameter is worth supplying, but there is no explicit when-to-use versus when-not guidance and no named alternative. For a simple enumeration tool, usage is largely self-evident, so this is adequate rather than strong.

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