audit_contract
Audit Solidity smart contracts with a three-pass process: reconnaissance, deep vulnerability scan, and severity scoring. Get structured findings, overall risk score, and actionable recommendations.
Instructions
Run a 3-pass (recon -> deep vulnerability scan -> severity scoring) audit of a Solidity source file. Returns structured findings (severity, SWC id, function, line, description, recommendation) plus an overall risk score (0-100) and a short summary. Use this as the default entry point when reviewing a contract.
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": {
"source": "<source>"
},
"name": "audit_contract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | The full Solidity source code to audit. Pastes, file dumps, and multi-contract files are all accepted. | |
| contractName | No | Optional contract name. When omitted, the auditor infers it from `contract X { ... }`. |