create_merge_request
Create a new merge request in a GitLab repository by specifying source and target branches, title, and optional description or draft status.
Instructions
Create a new merge request in a GitLab repository
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": {
"owner": "<owner>",
"repo": "<repo>",
"title": "<title>",
"head": "<head>",
"base": "<base>"
},
"name": "create_merge_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | Yes | The name of the target branch you want the changes pulled into | |
| body | No | Merge request body/description | |
| head | Yes | The name of the source branch where your changes are implemented | |
| repo | Yes | Project path/name (e.g. 'pro-portal-onboarding-and-retention') | |
| draft | No | Whether to create the merge request as a draft | |
| owner | Yes | Project namespace/path (e.g. 'pro/portal/frontends') or numeric Project ID | |
| title | Yes | Merge request title |