get_merge_request_analytics
Calculate merge request lifetime metrics including time to merge and review duration to identify process bottlenecks in a GitLab repository.
Instructions
Calculate merge request lifetime analytics for a GitLab repository.
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>"
},
"name": "get_merge_request_analytics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | The project ID or path (e.g., 'username/repo-name') | |
| days_back | No | Number of days back to analyze (default: 90) | |
| per_page | No | Number of merge requests to fetch per page (max 100) |