update_merge_request
Modify an existing GitLab merge request by IID or source branch to update its title, description, labels, assignees, reviewers, draft status, or state.
Instructions
Update a merge request (merge_request_iid or source_branch required). Use the create tool for new resources and a note tool for comments.
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": "update_merge_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft | No | Draft / WIP | |
| title | No | MR title | |
| labels | No | MR labels | |
| squash | No | Squash commits on merge | |
| jmespath | No | Optional JMESPath expression filtering the JSON result before return. | |
| project_id | Yes | Project ID or URL-encoded path | |
| description | No | MR description | |
| state_event | No | close or reopen | |
| assignee_ids | No | Assignee user IDs | |
| milestone_id | No | Milestone ID. 0 unassigns. Null is omitted. | |
| reviewer_ids | No | Reviewer user IDs | |
| source_branch | No | Source branch name | |
| target_branch | No | Target branch | |
| merge_request_iid | No | Merge request IID | |
| remove_source_branch | No | Remove source branch on merge |