gitlab_accept_merge_request
Merge a GitLab merge request by supplying the project ID or namespace path and MR IID. Optionally squash commits, remove the source branch, or set a custom merge commit message.
Instructions
Accepts/merges an MR (PUT /merge_requests/:iid/merge).
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": {
"projectId": "<projectId>",
"mergeRequestIid": "<mergeRequestIid>"
},
"name": "gitlab_accept_merge_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| squash | No | ||
| projectId | Yes | Numeric ID or path with namespace, e.g. group/project. | |
| mergeRequestIid | Yes | ||
| mergeCommitMessage | No | ||
| shouldRemoveSourceBranch | No |