check_code_health
Verify Python source files before tests by detecting syntax errors, undefined symbols, broken local imports, and circular import cycles.
Instructions
Compiler-Grade Preflight & Architecture Health Guard: Sub-15ms static verification that detects syntax errors, undefined/hallucinated symbols, broken local imports, and circular import cycles before running tests.
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_path": "<target_path>"
},
"name": "check_code_health"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target_path | Yes | Path to the Python file to verify | |
| project_root | No | Project root directory (default: '.') | . |