Update Merge Request Tool
update_merge_request_toolModify an existing GitLab merge request's title, description, labels, assignees, reviewers, milestone, target branch, or state to keep code review details current.
Instructions
Update an existing merge request.
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_merge_request_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | MR title | |
| labels | No | Comma-separated label names | |
| project_id | Yes | Project ID or path | |
| description | No | MR description (Markdown) | |
| state_event | No | State transition (close, reopen) | |
| assignee_ids | No | User IDs to assign | |
| milestone_id | No | Milestone ID | |
| reviewer_ids | No | User IDs to review | |
| target_branch | No | Target branch | |
| merge_request_iid | Yes | Merge request internal ID | |
| remove_source_branch | No | Remove source branch after merge |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||