review_sonar
Inspect a PR/MR with its Sonar quality gate, coverage, duplication, issues, and hotspots; explain failures and guide code fixes, with rule or file context when needed.
Instructions
Inspect a PR/MR and its Sonar quality gate, coverage, duplication, issues and hotspots together. The assistant explains failures and, when asked, fixes code using its local editing/testing tools. Supply ruleKey for remediation details or filePath (and lines) for source context. Use review_work read for the diff. This tool reads evidence; a new Sonar analysis is needed to confirm a fix.
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": {
"target": "<target>"
},
"name": "review_sonar"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| full | No | Raw Sonar responses instead of the compact view | |
| page | No | ||
| lines | No | Line range of filePath, e.g. "40-90" | |
| target | Yes | The MR/PR: its URL, its number for the configured project, or { provider: "gitlab"|"github", project?, number } | |
| project | No | Sonar project key; defaults to configuration | |
| ruleKey | No | ||
| filePath | No | Optional repository-relative file to inspect at the PR head |