audit_solidity_or_mcp
Run a read-only static security and token-efficiency audit on Solidity smart contract source code (.sol) or MCP server JSON configuration files. Detects reentrancy, tx.origin auth, unchecked external calls, uninitialized proxies, and redundant prompt token bloat without executing the submitted code (5 free calls/hour per IP or unlimited with X-API-Key). Returns JSON with risk_score (0-100), severity_counts, findings (with remediation patches), and estimated_savings_usd. Use this tool for source-code and config auditing; use check_mcp_poisoning for fast runtime prompt-injection screening.
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": {
"content": "<content>"
},
"name": "audit_solidity_or_mcp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | Full Solidity smart contract source code (`pragma solidity ...`) or JSON/YAML MCP server configuration content to audit statically. | |
| target_type | No | Analyzer mode: `solidity` for EVM smart contracts, `mcp` for agent configurations, or `auto` to auto-detect from syntax. Defaults to `auto`. | auto |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| findings | No | ||
| risk_score | Yes |