create_merge_request
Create a merge request in a GitLab project with specified source and target branches, title, and optional details, using dry-run mode to preview changes before execution.
Instructions
Create a new merge request. dry_run=true by default.
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>",
"source_branch": "<source_branch>",
"target_branch": "<target_branch>",
"title": "<title>"
},
"name": "create_merge_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Project ID | |
| source_branch | Yes | Source branch name | |
| target_branch | Yes | Target branch name | |
| title | Yes | MR title | |
| description | No | MR description (Markdown) | |
| labels | No | Labels (comma-separated) | |
| assignee_ids | No | Assignee user IDs | |
| reviewer_ids | No | Reviewer user IDs | |
| milestone_id | No | Milestone ID | |
| dry_run | No | Dry run mode (default: true). When true, returns a preview of the action without executing it. Set to false only after user confirmation. |