get_merge_request_diff
Retrieve the diff and changes for a merge request, including a summary of additions, deletions, and modified files. Supports both JSON and unified diff formats.
Instructions
Get diff/changes for a merge request
Args: platform: The platform name (e.g., 'gitlab', 'github') project_id: The project identifier mr_id: The merge request/pull request ID **options: Optional parameters: - format: Response format ('json', 'unified') - default: 'json' - include_diff: Include actual diff content (bool) - default: True
Returns: Dict containing: - mr_id: The merge request ID - total_changes: Summary of additions, deletions, files changed - files: List of changed files with details - diff_format: Format of the response - truncated: Whether response was truncated
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": {
"platform": "<platform>",
"project_id": "<project_id>",
"mr_id": "<mr_id>",
"options": "<options>"
},
"name": "get_merge_request_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mr_id | Yes | ||
| options | Yes | ||
| platform | Yes | ||
| project_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |