gitlab_list_labels
List labels of a GitLab project, with optional search, pagination, issue counts, and ancestor group labels.
Instructions
List labels of a GitLab project (/projects/:id/labels).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | No | GitLab project ID. Omit this field unless the user explicitly provided a value. When omitted, the tool tries the current runtime config defaults from WORKFLOW_ISSUE_PROJECT_ID or WORKFLOW_CODE_PROJECT_ID. If both are unset, or both are set to different values, the tool returns a missing-parameter error and you must pass project_id explicitly. Do not infer or auto-generate this value. | |
| search | No | Search text for label name/description. | |
| page | No | Page number. | |
| per_page | No | Items per page. | |
| with_counts | No | Whether to include issue counts. | |
| include_ancestor_groups | No | Whether to include ancestor group labels. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether the tool call succeeded. | |
| tool | Yes | Tool name. | |
| data | No | Label list payload for the target project. | |
| error_type | No | Error type when ok=false. | |
| message | No | Error message when ok=false. |