list_project_labels
Retrieve all labels for a GitLab project to identify valid label names before applying them to issues or merge requests.
Instructions
List all labels available in a project. Useful for discovering valid label names before adding them to issues or merge requests.
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_id": "<project_id>"
},
"name": "list_project_labels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| search | No | Search labels by name | |
| project_id | Yes | Project ID or path | |
| with_counts | No | Include issue and merge request counts (default: false) | |
| include_ancestor_groups | No | Include labels from ancestor groups (default: true) |