list_merge_request_diffs
List merge request diffs with pagination to review code changes, using a project ID plus merge request IID or source branch.
Instructions
List merge request diffs with pagination (merge_request_iid or source_branch required). For one known resource, use the matching get tool.
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>"
},
"name": "list_merge_request_diffs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number for pagination (default: 1) | |
| summary | No | If true, return only high-signal fields (id, iid, title, state, web_url, …). Default false keeps the full GitLab JSON. | |
| unidiff | No | Present diffs in the unified diff format. Default is false. Introduced in GitLab 16.5. | |
| jmespath | No | Optional JMESPath expression filtering the JSON result before return. | |
| per_page | No | Number of items per page (max: 100, default: 20) | |
| project_id | Yes | Project ID or URL-encoded path | |
| source_branch | No | Source branch name | |
| merge_request_iid | No | Merge request IID |