create_merge_request
Create a GitLab merge request to propose changes from a source branch into a target branch. Provide project, title, and branch details, optionally marking it as a draft or adding a description for review.
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 |
|---|---|---|---|
| draft | No | Create as draft merge request | |
| title | Yes | Merge request title | |
| project_id | Yes | Project ID or URL-encoded path | |
| description | No | Merge request description | |
| source_branch | Yes | Branch containing changes | |
| target_branch | Yes | Branch to merge into | |
| allow_collaboration | No | Allow commits from upstream members |