add_merge_request_comment
Add a comment to a GitLab merge request using project ID and merge request IID.
Instructions
Add a general comment to a merge request.
Args: project_id: GitLab project ID mr_iid: Merge request IID comment: Comment text to add
Returns: Confirmation message with comment details
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>",
"comment": "<comment>"
},
"name": "add_merge_request_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mr_iid | Yes | ||
| comment | Yes | ||
| project_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |