List GitLab environments
list_environmentsList 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).
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": "list_environments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Return the environment with this name. Mutually exclusive with search. | |
| page | No | ||
| search | No | Search environments by name. Mutually exclusive with name. Must be at least 3 characters. | |
| states | No | Comma-separated state filter. Accepted values: available, stopping, stopped. | |
| project | Yes | GitLab project ID or full path such as group/project. | |
| per_page | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | GitLab response normalized for model use. |