create_merge_request
Create a new merge request in a GitLab project by specifying the source and target branches, title, and optional details like labels and assignees.
Instructions
Create a new 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>",
"title": "<title>",
"source_branch": "<source_branch>",
"target_branch": "<target_branch>"
},
"name": "create_merge_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Merge request title | |
| labels | No | Comma-separated list of labels | |
| project_id | Yes | Project ID or path | |
| description | No | Merge request description | |
| assignee_ids | No | Array of user IDs to assign | |
| milestone_id | No | Milestone ID | |
| reviewer_ids | No | Array of user IDs to review | |
| source_branch | Yes | Source branch name | |
| target_branch | Yes | Target branch name |