Create Merge Request Tool
create_merge_request_toolCreates a new GitLab merge request from a source branch into a target branch, with title, description, labels, assignees, reviewers, and milestone options.
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>",
"source_branch": "<source_branch>",
"target_branch": "<target_branch>",
"title": "<title>"
},
"name": "create_merge_request_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | MR title | |
| labels | No | Comma-separated label names | |
| project_id | Yes | Project ID or path | |
| description | No | MR description (Markdown) | |
| assignee_ids | No | User IDs to assign | |
| milestone_id | No | Milestone ID | |
| reviewer_ids | No | User IDs to review | |
| source_branch | Yes | Source branch name (must already exist) | |
| target_branch | Yes | Target branch name | |
| remove_source_branch | No | Remove source branch after merge (default: false) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||