create_label
Create a new label in a GitLab project by specifying project ID, name, and color. Use it to add labels with optional priority and description for better issue and merge request organization.
Instructions
Create a new label in a project. Use this for a new resource or action; choose the corresponding update or edit tool when the resource already exists. It changes remote GitLab state and requires the necessary project or group permission; GitLab returns validation, conflict, permission, or rate-limit errors instead of silently applying an invalid request. When project_id or group_id is accepted, provide the numeric ID or complete URL-encoded path described by the schema; use required identifiers and pagination fields exactly as documented.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name of the label | |
| color | Yes | The color of the label given in 6-digit hex notation with leading '#' sign | |
| jmespath | No | Optional JMESPath expression filtering the JSON result before return. | |
| priority | No | The priority of the label | |
| project_id | Yes | Project ID or URL-encoded path | |
| description | No | The description of the label |