{"name":"Web3 Systemic Agent","id":"io.github.RafaCoelho33/web3-systemic-agent","version":"1.0.0","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","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.05 USDC 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.05 USDC 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"]}}]}