audit_code_defenses
Audit source code for complex control flow and unhandled exception risks by analyzing cyclomatic complexity, branch depth, and exception vectors.
Instructions
Audits AST cyclomatic complexity, branch depth, and detects unhandled exception vectors in source code.
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": {
"code": "<code>"
},
"name": "audit_code_defenses"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The source code to inspect | |
| language | No | Programming language | python |