get_merge_request_comments
Retrieve all comments and discussions from a GitLab merge request, including inline suggestions, with pagination support for efficient review.
Instructions
Get all comments/discussions from a merge request, including suggestions.
Args: project_id: GitLab project ID mr_iid: Merge request IID page: Page number for pagination (default: 1) per_page: Number of results per page (default: 20, max: 100)
Returns: Formatted string with all comments, including note_id, discussion_id, suggestions, and pagination info
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>",
"mr_iid": "<mr_iid>"
},
"name": "get_merge_request_comments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| mr_iid | Yes | ||
| per_page | No | ||
| project_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |