gitlab_get_merge_request_notes
Retrieve and organize all comments, discussions, and code review notes for a specified merge request. Supports sorting by creation or update time, pagination, and truncation of long comments using the MCP GitLab Server.
Instructions
List all comments/notes on a merge request including discussions, code reviews, and system notes. Sort by creation/update time, paginate results, and optionally truncate long comment bodies.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
max_body_length | No | Maximum characters for comment/note bodies (integer). 0 = unlimited. Default: 1000. Truncates with '...' if exceeded | |
mr_iid | Yes | Merge request internal ID (integer). Project-specific MR number (e.g., !456). Not the global MR ID | |
order_by | No | Field to sort results by (string). Options vary by endpoint (e.g., 'created_at', 'updated_at', 'name') | created_at |
page | No | Page number for pagination (integer, ≥1, default: 1) | |
per_page | No | Number of results per page (integer, 1-100, default: 20) | |
project_id | No | Project ID (integer) or path (string like 'group/project'). Optional - auto-detects from current git repository if not provided | |
sort | No | Sort direction (string). Options: 'asc' (ascending), 'desc' (descending). Default varies by context | asc |