Get Issue Context
get_issue_contextRetrieve issue body, notes, related merge requests, and linked issues in a single request, eliminating the need for multiple API calls when analyzing an issue.
Instructions
Bundle issue body, all notes (paginated up to maxNotes), related merge requests (mentioning), closing merge requests, linked issues (relates_to/blocks/is_blocked_by) into a single call. Use this instead of fanning out across get_issues + get_notes + search_merge_requests when investigating an issue.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iid | Yes | Issue IID (the number shown in the GitLab UI) | |
| maxNotes | No | Cap on notes fetched. Default 100. | |
| 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 (label changes, assignment events). Default false. |