approve_mr
Approve a merge request on GitLab, with optional SHA validation and user re-authentication.
Instructions
Approve a merge request. The authenticated user must have permission to approve.
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>",
"merge_request_iid": "<merge_request_iid>"
},
"name": "approve_mr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sha | No | SHA of the HEAD commit. Approval fails if this does not match the current HEAD. | |
| project_id | Yes | Project ID or path | |
| approval_password | No | Current password of the authenticated user. Required if "Require user re-authentication" is enabled. | |
| merge_request_iid | Yes | Merge request internal ID |