check_quality
Analyze a file to detect bugs, code smells, security vulnerabilities, and complexity issues. Returns exact line numbers, severity levels, and available quick fixes.
Instructions
Check a file for code quality issues — bugs, code smells, security vulnerabilities, and complexity problems. Like having SonarLint in your IDE. Use after writing or modifying code to catch issues early. Returns issues with exact line numbers, severity, and available quick fixes. For multiple files use check_files.
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": {
"filePath": "<filePath>"
},
"name": "check_quality"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute path to the file to analyze (e.g., /path/to/file.js) | |
| minSeverity | No | Minimum severity level to include. Filters out issues below this level. Default: INFO (show all) | |
| excludeRules | No | List of rule IDs to exclude (e.g., ['typescript:S1135', 'javascript:S125']) |