Get Merge Request Context
get_merge_request_contextBundle merge request body, notes, commits, pipeline summary, approvals, and linked issues into one call to avoid multiple API requests.
Instructions
Bundle MR body, all notes (paginated up to maxNotes, filtered to non-system by default), commits, pipeline summary, reviewers with approval state, and issues this MR will close into a single call. Use this instead of fanning out across get_merge_requests + get_notes + get_merge_request_commits + get_merge_request_pipelines when investigating an MR.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iid | Yes | Merge request IID | |
| maxNotes | No | Cap on notes fetched. Default 100. | |
| maxCommits | No | Cap on commits fetched. Default 50. | |
| projectPath | Yes | Full project path (e.g. "my-group/my-project") | |
| userCredentials | No | Your GitLab credentials (optional — falls back to the configured env token if not provided) | |
| includeSystemNotes | No | Include system-generated notes. Default false. |