update_mr_labels
Add or remove labels from a merge request without updating other fields. Simplifies label-only changes by accepting labels to add and remove directly.
Instructions
Add or remove labels from a merge request. More convenient than update_merge_request for label-only changes.
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>",
"merge_request_iid": "<merge_request_iid>"
},
"name": "update_mr_labels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| add_labels | No | Labels to add to the merge request | |
| project_id | Yes | Project ID or path | |
| remove_labels | No | Labels to remove from the merge request | |
| merge_request_iid | Yes | Merge request internal ID |