ai_code_security_review
Analyzes source code or smart-contract snippets (Solidity, TypeScript, JavaScript, Python, Go, Rust) with Qwen2.5-Coder-32B to return a 0-100 security score, CWE-tagged vulnerabilities, logic bugs, and exact code fixes. Use on raw source code; use security_pre_trade_audit to check a deployed on-chain token contract by address. Read-only, stateless; costs $0.040 Base USDC via x402 (unpaid calls return a v2 quote challenge without charging; invalid inputs return 400 uncharged).
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": "ai_code_security_review"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Source code or smart-contract snippet to audit for security vulnerabilities and logic bugs. | |
| language | No | Optional programming language hint (e.g. 'solidity', 'typescript', 'python', 'rust', 'go'); auto-inferred if omitted. |