analyze_code
Static analysis of C source code to flag unsafe functions, missing &, assignment in conditions, unbalanced braces, missing main, unchecked malloc, and more. No compilation required.
Instructions
Static analysis of C source WITHOUT compiling: flags unsafe gets(), scanf-missing-&, assignment-in-if, unbalanced braces, missing main(), unchecked malloc, Turbo C float I/O pitfalls, and more. Instant, no toolchain required.
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": "analyze_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | C source code. |