MR Diffs
get_merge_request_diffsRetrieve merge request diff statistics, including per-file additions, deletions, and diff refs, to assess code changes and review scope.
Instructions
Get diff statistics for a merge request, including per-file additions/deletions and diff refs
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>",
"iid": "<iid>"
},
"name": "get_merge_request_diffs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iid | Yes | Merge request IID | |
| projectPath | Yes | Full path of the project (e.g., "group/project-name") | |
| userCredentials | No | Your GitLab credentials (optional — falls back to the configured env token if not provided) |