Skip to main content
Glama

List GitLab environments

list_environments
Read-onlyIdempotent

List all environments for a GitLab project, with optional filters by name, search term, or state (available, stopping, stopped) to identify deployment targets or diagnose CI issues.

Instructions

List all environments for a project, optionally filtered by name, search term, or state (available, stopping, stopped).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoReturn the environment with this name. Mutually exclusive with search.
pageNo
searchNoSearch environments by name. Mutually exclusive with name. Must be at least 3 characters.
statesNoComma-separated state filter. Accepted values: available, stopping, stopped.
projectYesGitLab project ID or full path such as group/project.
per_pageNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYesGitLab response normalized for model use.
Behavior3/5

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

Annotations already convey read-only, idempotent, non-destructive behavior. The description adds no extra behavioral details beyond the factual listing, so it relies on the annotations.

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 a single, concise sentence that efficiently communicates the tool's purpose and key filtering capabilities without unnecessary fluff.

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?

The description adequately covers the purpose and filters, and the schema provides required parameter info (project). It doesn't mention pagination, but that is not essential given the schema includes page/per_page.

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 schema provides descriptions for all parameters (name, search, states, project, page, per_page) covering their meanings. The description only summarizes the filter options, adding marginal value beyond the schema.

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 action (List) and resource (environments) with a project scope, and distinguishes it from sibling tools like get_environment (single environment) and list_deployments (deployments).

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 description does not explicitly indicate when to use this tool over alternatives (e.g., get_environment for a single environment), but the listing purpose is self-evident and typical for such tools.

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/CobolJunkie/gitlab-mcp'

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