Create Merge Request
create_merge_requestCreate a new GitLab merge request by specifying the project path, source branch, target branch, and title, with an optional description and credentials.
Instructions
Create a new merge request in a GitLab project (requires user authentication with write permissions)
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": {
"projectPath": "<projectPath>",
"title": "<title>",
"sourceBranch": "<sourceBranch>",
"targetBranch": "<targetBranch>"
},
"name": "create_merge_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Title of the merge request | |
| description | No | Description of the merge request | |
| projectPath | Yes | Full path of the project (e.g., "group/project-name") | |
| sourceBranch | Yes | Source branch name | |
| targetBranch | Yes | Target branch name | |
| userCredentials | No | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| iid | Yes | ||
| title | Yes | ||
| webUrl | Yes |