Create GitLab merge request
create_merge_requestOpen a GitLab merge request from an existing source branch, with draft option.
Instructions
Open a GitLab merge request from an existing source branch. Draft merge requests are supported.
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": "<project>",
"title": "<title>",
"source_branch": "<source_branch>",
"target_branch": "<target_branch>"
},
"name": "create_merge_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft | No | ||
| title | Yes | ||
| labels | No | ||
| squash | No | ||
| project | Yes | GitLab project ID or full path such as group/project. | |
| description | No | ||
| assignee_ids | No | ||
| milestone_id | No | ||
| reviewer_ids | No | ||
| source_branch | Yes | ||
| target_branch | Yes | ||
| target_project_id | No | ||
| allow_collaboration | No | ||
| remove_source_branch | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | GitLab response normalized for model use. |