Get Merge Request Code Context
gitlab_get_merge_request_code_contextRetrieve code context from a GitLab merge request with filters for paths, languages, and token budget control. Ideal for AI code review and analysis.
Instructions
High-signal MR code context with include/exclude filters, sorting, and token-budgeted output.
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": {
"merge_request_iid": "<merge_request_iid>"
},
"name": "gitlab_get_merge_request_code_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | patch | |
| sort | No | changed_lines | |
| languages | No | ||
| list_only | No | ||
| max_files | No | ||
| extensions | No | ||
| project_id | No | ||
| context_lines | No | ||
| exclude_paths | No | ||
| include_paths | No | ||
| max_total_chars | No | ||
| merge_request_iid | Yes |