create_pull_request
Create a pull request to merge code changes from one branch to another, specifying title, description, assignees, reviewers, and labels.
Instructions
Create a new pull request (merge request in GitLab)
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": {
"repo": "<repo>",
"source_branch": "<source_branch>",
"target_branch": "<target_branch>",
"title": "<title>"
},
"name": "create_pull_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository identifier (GitLab: "group/project" or ID, GitHub: "owner/repo") | |
| source_branch | Yes | Source branch name | |
| target_branch | Yes | Target branch name | |
| title | Yes | Pull request title | |
| description | No | Description (Markdown) | |
| assignee_ids | No | User IDs to assign | |
| reviewer_ids | No | User IDs for review | |
| labels | No | Labels to apply | |
| draft | No | Create as draft |