Skip to main content
Glama

MCP GitLab Server

by Vijay-Duke

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

NameRequiredDescriptionDefault
max_body_lengthNoMaximum characters for comment/note bodies (integer). 0 = unlimited. Default: 1000. Truncates with '...' if exceeded
mr_iidYesMerge request internal ID (integer). Project-specific MR number (e.g., !456). Not the global MR ID
order_byNoField to sort results by (string). Options vary by endpoint (e.g., 'created_at', 'updated_at', 'name')created_at
pageNoPage number for pagination (integer, ≥1, default: 1)
per_pageNoNumber of results per page (integer, 1-100, default: 20)
project_idNoProject ID (integer) or path (string like 'group/project'). Optional - auto-detects from current git repository if not provided
sortNoSort direction (string). Options: 'asc' (ascending), 'desc' (descending). Default varies by contextasc

Input Schema (JSON Schema)

{ "properties": { "max_body_length": { "default": 500, "description": "Maximum characters for comment/note bodies (integer). 0 = unlimited. Default: 1000. Truncates with '...' if exceeded", "minimum": 0, "type": "integer" }, "mr_iid": { "description": "Merge request internal ID (integer). Project-specific MR number (e.g., !456). Not the global MR ID", "type": "integer" }, "order_by": { "default": "created_at", "description": "Field to sort results by (string). Options vary by endpoint (e.g., 'created_at', 'updated_at', 'name')", "enum": [ "created_at", "updated_at" ], "type": "string" }, "page": { "default": 1, "description": "Page number for pagination (integer, ≥1, default: 1)", "minimum": 1, "type": "integer" }, "per_page": { "default": 20, "description": "Number of results per page (integer, 1-100, default: 20)", "maximum": 100, "minimum": 1, "type": "integer" }, "project_id": { "description": "Project ID (integer) or path (string like 'group/project'). Optional - auto-detects from current git repository if not provided", "type": "string" }, "sort": { "default": "asc", "description": "Sort direction (string). Options: 'asc' (ascending), 'desc' (descending). Default varies by context", "enum": [ "asc", "desc" ], "type": "string" } }, "required": [ "mr_iid" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Vijay-Duke/mcp-gitlab'

If you have feedback or need assistance with the MCP directory API, please join our Discord server