gitlab.get_merge_request_comments
Fetch GitLab merge request comments with filename, line, and text context by providing project path and MR IID; supports pagination and filtering resolved comments.
Instructions
Fetch comments for a GitLab merge request and return filename, line, and text. Provide the project path (e.g., "mars/general-market") and merge request IID (e.g., "7380").
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>",
"merge_request_iid": "<merge_request_iid>"
},
"name": "gitlab.get_merge_request_comments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page of discussions to fetch (GitLab default 1). | |
| per_page | No | Number of discussions per page (GitLab default 20). | |
| project_id | Yes | Numeric project ID or full path (e.g., "123" or "group/project") | |
| include_resolved | No | If false (default), resolved comments are excluded. | |
| merge_request_iid | Yes | Internal IID of the merge request (e.g., "456") |