merge_merge_request
Merge a merge request with optional dry-run mode to preview the action before executing. Customize commit message, squash commits, and delete source branch.
Instructions
Merge a merge request. dry_run=true by default.
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>",
"mr_iid": "<mr_iid>"
},
"name": "merge_merge_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Project ID | |
| mr_iid | Yes | MR IID to merge | |
| merge_commit_message | No | Custom merge commit message | |
| squash | No | Squash commits into one | |
| should_remove_source_branch | No | Delete source branch after merge | |
| dry_run | No | Dry run mode (default: true). When true, returns a preview of the action without executing it. Set to false only after user confirmation. |