create_merge_request
Create a new merge request in a GitLab project by specifying source and target branches, title, description, and optional details like assignees or labels.
Instructions
Create a new merge request in a GitLab project
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>",
"title": "<title>",
"source_branch": "<source_branch>",
"target_branch": "<target_branch>"
},
"name": "create_merge_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Project ID or complete URL-encoded path to project | |
| title | Yes | Merge request title | |
| description | No | Merge request description | |
| source_branch | Yes | Branch containing changes | |
| target_branch | Yes | Branch to merge into | |
| assignee_ids | No | The ID of the users to assign the MR to | |
| reviewer_ids | No | The ID of the users to assign as reviewers of the MR | |
| labels | No | Labels for the MR | |
| draft | No | Create as draft merge request | |
| allow_collaboration | No | Allow commits from upstream members |