contract-scanner
v1.0.2Smart contract security scanner — vulnerabilities, risk scores, and calldata decoding
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
scanner_analyze_contract
BEFORE interacting with ANY smart contract, call this to get a full security report. Fetches source code (if verified), analyzes bytecode, detects vulnerabilities (reentrancy, hidden mint, backdoors, proxy risks, access control issues), and returns a risk score 0-100 with actionable findings. One call = complete analysis.
| Parameter | Type | Description |
|---|---|---|
address * | string | Contract address to analyze (0x...) |
api_key | string | Premium API key for unlimited scans. Free tier: 5 scans/hour. |
chain | string | Chain: base, ethereum, arbitrum (default: base) |
scanner_compare_contracts
Compare two smart contracts to see which is safer. Detects clones (identical bytecode), compares risk scores, identifies differences in access control and vulnerabilities. Use when choosing between two similar contracts (e.g., two DEX routers, two token versions).
| Parameter | Type | Description |
|---|---|---|
address1 * | string | First contract address to compare (0x...) |
address2 * | string | Second contract address to compare (0x...) |
api_key | string | Premium API key for unlimited scans. Free tier: 5 scans/hour. |
chain | string | Chain: base, ethereum, arbitrum (default: base) |
scanner_check_address
Quick safety check on any address — is it a contract or EOA? Verified? Has selfdestruct, proxy, mint, pause, or blacklist? Returns risk flags in <1 second. Use this for fast triage before deciding whether to run a full scanner_analyze_contract scan.
| Parameter | Type | Description |
|---|---|---|
address * | string | Address to check (0x...) |
api_key | string | Optional premium API key to bypass rate limits. |
chain | string | Chain: base, ethereum, arbitrum (default: base) |
scanner_decode_calldata
Decode raw transaction calldata into human-readable function calls. Identifies the function being called, decodes parameters, and flags dangerous operations (unlimited approve, delegatecall, ownership transfers). Use BEFORE signing any transaction you don't fully understand.
| Parameter | Type | Description |
|---|---|---|
calldata * | string | Raw calldata hex string (0x...) |
abi | string | Contract ABI as JSON string for full parameter decoding. If not provided, common selectors (ERC-20, Uniswap, etc.) are matched automatically. |
api_key | string | Optional premium API key to bypass rate limits. |