Get Merge Request Context
get_merge_request_contextConsolidate merge request details: fetch body, notes, commits, pipeline status, reviewers, and closing issues in a single API call to simplify MR investigation.
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. |