list_labels
Fetch labels for a GitLab project to inspect available tags, filter by keyword, paginate results, and optionally include issue and merge request counts.
Instructions
List labels for a project. For one known resource, use the matching get tool.
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_labels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (default 1) | |
| search | No | Keyword to filter labels by | |
| summary | No | If true, return only high-signal fields (id, iid, title, state, web_url, …). Default false keeps the full GitLab JSON. | |
| jmespath | No | Optional JMESPath expression filtering the JSON result before return. | |
| per_page | No | Items per page (max 100, default 20) | |
| project_id | Yes | Project ID or URL-encoded path | |
| with_counts | No | Whether to include issue and merge request counts | |
| include_ancestor_groups | No | Include ancestor groups |