add_merge_request_note
Adds a comment to a GitLab merge request or replies to an existing discussion thread, enabling review feedback and threaded conversation directly on the merge request.
Instructions
Add a note (comment) to a merge request or reply to a discussion thread
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": "<project>",
"mergeRequestIid": "<mergeRequestIid>",
"body": "<body>"
},
"name": "add_merge_request_note"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | The comment/note content to add | |
| project | Yes | Project ID or path (e.g., "group/project" or "123") | |
| discussionId | No | Discussion ID to reply to (for threaded replies) | |
| mergeRequestIid | Yes | Merge request internal ID (iid) |