get_project_metrics
Retrieve code quality metrics for a SonarQube project, including bugs, coverage, and security ratings, to analyze software health and track improvement.
Instructions
Get quality metrics for a SonarQube project.
Args: project_key: The project key. metric_keys: Comma-separated metric keys. Defaults to a standard quality dashboard set (bugs, coverage, smells, ratings, etc.).
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_key": "<project_key>"
},
"name": "get_project_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_key | Yes | ||
| metric_keys | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||