MR context (diff + pipeline + discussions)
gitlab_get_mr_contextFetch merge request diffs and optionally include failed job traces and review discussions for comprehensive review context.
Instructions
Returns MR changes/diff and optionally failed job traces and review discussions.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "gitlab_get_mr_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path | No | Absolute local clone path; resolves project and MR from current branch. | |
| project_id | No | Numeric ID or group/repo path on GitLab. | |
| trace_max_chars | No | ||
| merge_request_iid | No | Merge request IID. Omit with repo_path to resolve from current branch. | |
| include_discussions | No | When true, includes discussion threads and inline comments. | |
| discussions_per_page | No | ||
| include_failed_jobs_trace | No | When true, attaches logs from failed jobs on head_pipeline. |