Skip to main content
Glama

List environments

get_environments
Read-only

List the environments available in a project. context is REPOSITORY (test cases, default) or RUNS. Use an environment id as environmentId on start_test_run / update_test_run.

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": "<project>"
    },
    "name": "get_environments"
  }
}

Input Schema

NameRequiredDescriptionDefault
contextNoREPOSITORY (test cases, default) or RUNS.
projectYesProject id whose environments to list. Numeric project id as returned by get_projects (the number in the app URL); a project name is not accepted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / project / description
      Previous value: -"Project id whose environments to list. Numeric id from get_projects (same as in the app URL); not the project name."New value: +"Project id whose environments to list. Numeric project id as returned by get_projects (the number in the app URL); a project name is not accepted."
  2. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds the useful forward reference that ids feed start_test_run / update_test_run, but says nothing about result size, pagination, or what an empty list means.

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?

Two short sentences: the purpose comes first, then the context values, then the id-consumption note. Nothing is padded and every sentence carries information the agent can act on.

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 two-parameter read-only listing with 100% schema coverage and no output schema, the description covers purpose, the context switch, and the downstream use of the returned ids. Only minor operational details such as result size or ordering are absent.

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%, and the description's context clause merely restates the enum values already in the schema; it adds no syntax, format, or default nuance. Under the high-coverage rule the baseline of 3 applies, and the description does not beat it.

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 the environments available in a project") and pins the scope to one project. The follow-up sentence on how the returned id is consumed by start_test_run / update_test_run makes its role in the workflow unambiguous, so it is not confusable with get_projects or get_test_runs.

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?

Explains the two contexts (REPOSITORY for test cases, default; RUNS) so the agent knows which value selects which environment set, and points to the downstream tools that consume the ids. It stops short of explicit when-not-to-use guidance or naming an alternative listing tool, which keeps it below a 5.

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.