get_rule
Retrieve detailed descriptions and metadata for SonarQube code quality rules to understand coding standards and security requirements.
Instructions
Get the description and metadata for a SonarQube rule.
Args: rule_key: Rule key (e.g., python:S1192, java:S106).
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": {
"rule_key": "<rule_key>"
},
"name": "get_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule_key | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||