{"name":"Web3 Systemic Agent","id":"io.github.RafaCoelho33/web3-systemic-agent","version":"1.0.2","description":"Autonomous Web3 Security and Governance Auditor Agent with Two-Stage Hybrid Architecture (zero-cost on-chain gatekeeping + Gemini LLM semantic audits) and x402 Bazaar Micropayments.","url":"https://web3-systemic-agent.onrender.com","capabilities":{"mcp":true,"x402":true,"streaming":false},"payment":{"protocol":"x402","network":"eip155:8453","price_usdc":0.015,"pay_to_address":"0x2b7F1fd931f7f28f89e0f688Dd5Bb7a620c24b63"},"endpoints":{"mcp":"/mcp","evaluate":"/evaluate","audit":"/audit","preflight":"https://web3-systemic-agent.onrender.com/preflight","deep_audit":"https://web3-systemic-agent.onrender.com/audit/deep","token_check":"https://web3-systemic-agent.onrender.com/token/check","validate_rule":"/rules/validate","llms_txt":"/llms.txt","well_known_x402":"/.well-known/x402","server_card":"/.well-known/mcp/server-card.json"},"skills":[{"name":"scan_contract_selectors","description":"Stage 1 Free ($0.00) deterministic EVM bytecode inspector that extracts 4-byte function selectors and flags privileged backdoors (transferOwnership, upgradeTo, mint, selfdestruct). Queries live RPC for chain_id (8453 Base, 84532 Base Sepolia, 42161 Arbitrum) unless bytecode_override (0x hex) is supplied for offline analysis; falls back to empty bytecode on RPC error. Returns JSON with is_contract, bytecode_size_bytes, selectors_found, high_risk_selectors, risk_level (HIGH, LOW, EOA), and recommendation.","annotations":{"title":"Scan Smart Contract Bytecode & Selectors","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true},"inputSchema":{"type":"object","properties":{"target_address":{"type":"string","description":"Hex EVM address of smart contract to inspect (e.g. '0x4200000000000000000000000000000000000006')"},"chain_id":{"type":"integer","default":8453,"description":"EVM Chain ID (8453 for Base Mainnet, 84532 for Base Sepolia, 42161 for Arbitrum One)"},"bytecode_override":{"type":"string","description":"Optional raw contract runtime bytecode hex string (0x...) for offline analysis without RPC calls"}},"required":["target_address"]},"outputSchema":{"type":"object","properties":{"tool":{"type":"string"},"stage":{"type":"integer"},"cost_usd":{"type":"number"},"target_address":{"type":"string"},"chain_id":{"type":"integer"},"is_contract":{"type":"boolean"},"bytecode_size_bytes":{"type":"integer"},"selectors_found":{"type":"array","items":{"type":"object"}},"high_risk_selectors":{"type":"array","items":{"type":"string"}},"high_risk_signatures":{"type":"array","items":{"type":"string"}},"risk_level":{"type":"string","enum":["HIGH","LOW","EOA"]},"recommendation":{"type":"string"},"upsell_recommendation":{"type":["string","null"]},"llm_invoked":{"type":"boolean"}},"required":["target_address","is_contract","selectors_found","high_risk_selectors","risk_level"]}},{"name":"check_token_honeypot","description":"Stage 1 Free ($0.00) static DEX token bytecode scanner that detects blacklist traps (isBlacklisted, setBlacklist), 100% sell-tax modifiers (setTax, setFee), trading freezes (pause), and SELFDESTRUCT opcodes. Fetches live token_address bytecode on chain_id unless bytecode_override (0x hex) is provided for offline execution; returns safe EOA status if bytecode is empty. Returns JSON with is_contract, is_honeypot_suspect (bool), risk_score (0.0-10.0), threat_categories, risk_flags, and recommendation.","annotations":{"title":"Check Token Honeypot & Tax Traps","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true},"inputSchema":{"type":"object","properties":{"token_address":{"type":"string","description":"Hex EVM address of token contract to inspect for honeypot traps"},"chain_id":{"type":"integer","default":8453,"description":"EVM Chain ID (8453 for Base Mainnet)"},"bytecode_override":{"type":"string","description":"Optional raw token runtime bytecode hex string (0x...) for offline analysis"}},"required":["token_address"]},"outputSchema":{"type":"object","properties":{"tool":{"type":"string"},"stage":{"type":"integer"},"cost_usd":{"type":"number"},"token_address":{"type":"string"},"chain_id":{"type":"integer"},"is_contract":{"type":"boolean"},"bytecode_size_bytes":{"type":"integer"},"is_honeypot_suspect":{"type":"boolean"},"risk_score":{"type":"number"},"threat_categories":{"type":"array","items":{"type":"string"}},"categories_detected":{"type":"array","items":{"type":"string"}},"risk_flags":{"type":"array","items":{"type":"string"}},"recommendation":{"type":"string"},"upsell_recommendation":{"type":["string","null"]},"llm_invoked":{"type":"boolean"}},"required":["token_address","is_honeypot_suspect","risk_score","threat_categories","risk_flags"]}},{"name":"scan_dao_proposals","description":"Stage 1 Free ($0.00) governance scanner that fetches up to limit (1-20) recent Snapshot DAO proposals for space_id (e.g. arbitrumfoundation.eth, aavedao.eth, ens.eth) and extracts on-chain target addresses and calldata to spot hostile takeover payloads. Queries Snapshot GraphQL API by default, or falls back to deterministic offline fixtures when use_curated_offline=true or network fails. Returns JSON with space_id, proposals_count, proposals (id, title, target_address, calldata, value_wei, state), and recommendation.","annotations":{"title":"Scan Snapshot DAO Governance Proposals","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true},"inputSchema":{"type":"object","properties":{"space_id":{"type":"string","default":"arbitrumfoundation.eth","description":"Snapshot DAO space ENS identifier (e.g., 'arbitrumfoundation.eth', 'aavedao.eth', 'ens.eth')"},"limit":{"type":"integer","default":3,"description":"Maximum number of proposals to fetch (default: 3)"},"use_curated_offline":{"type":"boolean","default":false,"description":"If true, returns verified realistic offline curated proposals without outbound network calls"}}},"outputSchema":{"type":"object","properties":{"tool":{"type":"string"},"stage":{"type":"integer"},"cost_usd":{"type":"number"},"space_id":{"type":"string"},"proposals_count":{"type":"integer"},"proposals":{"type":"array","items":{"type":"object"}},"recommendation":{"type":"string"},"upsell_recommendation":{"type":["string","null"]},"llm_invoked":{"type":"boolean"}},"required":["space_id","proposals_count","proposals"]}},{"name":"deep_semantic_audit","description":"Stage 2 Paid ($0.015 USDC standard / $0.25 USDC deep proxy + verified source via x402 on Base Mainnet) hybrid audit combining Stage 1 on-chain gatekeeping with Stage 2 Gemini LLM evaluation to verify proposal_description claims against target_address bytecode and calldata under policy_prompt. Non-idempotent due to LLM evaluation and single-use EIP-3009 x402_payment_header nonce; omitting x402_payment_header safely returns an HTTP 402 payment challenge without charging. Breaching risk_threshold (0.0-10.0) escalates decision to REJECT. Returns JSON with status, decision (APPROVE, MANUAL_REVIEW, REJECT), risk_score, reasoning, and flagged_issues.","annotations":{"title":"Deep Semantic LLM Governance & Contract Audit (x402)","readOnlyHint":true,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true},"inputSchema":{"type":"object","properties":{"target_address":{"type":"string","description":"Hex EVM address of smart contract under evaluation"},"proposal_description":{"type":"string","description":"Natural language claim or governance proposal description explaining the intent of the transaction"},"policy_prompt":{"type":"string","default":"Audit contract and proposal for unauthorized privilege escalation, proxy upgrades, honeypot traps, or treasury drainage.","description":"Security policy or governance criteria to audit against"},"calldata":{"type":"string","default":"0x","description":"Transaction hex calldata or function selector being executed"},"chain_id":{"type":"integer","default":8453,"description":"EVM Chain ID (default: 8453 for Base Mainnet)"},"risk_threshold":{"type":"number","default":7.0,"description":"Risk score threshold (0.0 to 10.0) above which the audit triggers rejection or alert"},"x402_payment_header":{"type":"string","description":"Optional Base64-encoded EIP-3009 transferWithAuthorization payment header satisfying $0.015 USDC (standard) or $0.25 USDC (deep proxy + verified source) requirement"},"resolve_proxy":{"type":"boolean","default":false,"description":"If true, resolves EIP-1967/1822 proxy implementation contract and inspects implementation state"},"fetch_verified_source":{"type":"boolean","default":false,"description":"If true, fetches verified Solidity source code from block explorers (Etherscan, Basescan, Sourcify)"}},"required":["target_address","proposal_description"]},"outputSchema":{"type":"object","properties":{"tool":{"type":"string"},"stage":{"type":"integer"},"status":{"type":"string","enum":["completed","payment_required"]},"status_code":{"type":"integer"},"decision":{"type":"string"},"risk_score":{"type":"number"},"reasoning":{"type":"string"},"flagged_issues":{"type":"array","items":{"type":"string"}},"llm_invoked":{"type":"boolean"}},"required":["tool","stage","status"]}},{"name":"preflight_tx_firewall","description":"Stage 1 Free ($0.00) pre-sign security firewall evaluating EVM transaction risks, calldata decoding, unlimited token approvals, Permit2 signatures, EIP-712 typed data phishing, Indirect Prompt Injections in untrusted calldata/descriptions, and simulated state changes via eth_call. Returns JSON with verdict (ALLOW, BLOCK, MANUAL_REVIEW), risk_score (0.0-10.0), reasons, and simulation details.","annotations":{"title":"Preflight Transaction Security Firewall","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true},"inputSchema":{"type":"object","properties":{"to_address":{"type":"string","description":"Target contract or recipient EVM address"},"target_address":{"type":"string","description":"Alias for to_address"},"from_address":{"type":"string","description":"Optional sender EVM address"},"calldata":{"type":"string","default":"0x","description":"Hex transaction calldata"},"value_wei":{"type":"integer","default":0,"description":"Transaction value in Wei"},"chain_id":{"type":"integer","default":8453,"description":"EVM Chain ID (default: 8453 for Base Mainnet)"},"eip712_typed_data":{"type":"object","description":"Optional EIP-712 typed data dictionary to inspect before signing"},"untrusted_text":{"type":"string","description":"Optional untrusted text or proposal description to scan for prompt injection"},"run_simulation":{"type":"boolean","default":true,"description":"Whether to run eth_call simulation on chain"}}},"outputSchema":{"type":"object","properties":{"tool":{"type":"string"},"stage":{"type":"integer"},"cost_usd":{"type":"number"},"verdict":{"type":"string","enum":["ALLOW","BLOCK","MANUAL_REVIEW"]},"risk_score":{"type":"number"},"flagged_issues":{"type":"array","items":{"type":"string"}},"approval_risks":{"type":"array","items":{"type":"string"}},"eip712_findings":{"type":"array","items":{"type":"string"}},"prompt_injection_detected":{"type":"boolean"},"reasons":{"type":"array","items":{"type":"string"}},"summary":{"type":"string"},"llm_invoked":{"type":"boolean"}},"required":["tool","stage","verdict","risk_score","flagged_issues","reasons"]}},{"name":"inspect_proxy_and_source","description":"Stage 1 Free ($0.00) EIP-1967/Beacon proxy slot inspector and verified Solidity source resolver. Probes on-chain implementation, admin, beacon, owner(), and paused() states via AsyncWeb3 and retrieves verified source metadata from Sourcify/Etherscan v2 without invoking any LLM. Supports offline_mode=True for deterministic dry-run or network-free verification.","annotations":{"title":"Inspect EIP-1967 Proxy & Verified Source","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true},"inputSchema":{"type":"object","properties":{"target_address":{"type":"string","description":"Hex EVM address of smart contract or proxy to inspect"},"chain_id":{"type":"integer","default":8453,"description":"EVM Chain ID (8453 for Base Mainnet, 84532 for Base Sepolia, 42161 for Arbitrum One)"},"fetch_verified_source":{"type":"boolean","default":true,"description":"Whether to query Sourcify/Etherscan v2 for verified Solidity source metadata"},"offline_mode":{"type":"boolean","default":false,"description":"If true, returns a deterministic clean offline structure without making RPC or HTTP calls"}},"required":["target_address"]},"outputSchema":{"type":"object","properties":{"tool":{"type":"string"},"stage":{"type":"integer"},"cost_usd":{"type":"number"},"llm_invoked":{"type":"boolean"},"target_address":{"type":"string"},"chain_id":{"type":"integer"},"effective_audit_address":{"type":"string"},"is_proxy":{"type":"boolean"},"implementation_address":{"type":["string","null"]},"admin_address":{"type":["string","null"]},"beacon_address":{"type":["string","null"]},"owner_address":{"type":["string","null"]},"is_paused":{"type":["boolean","null"]},"source_verified":{"type":"boolean"},"source_provider":{"type":["string","null"]},"contract_names":{"type":"array","items":{"type":"string"}},"security_warnings":{"type":"array","items":{"type":"string"}},"recommendation":{"type":"string"},"upsell_recommendation":{"type":["string","null"]}},"required":["tool","stage","cost_usd","llm_invoked","target_address","is_proxy","source_verified"]}}]}