web3-agent
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| WEB3_AGENT_URL | No | Base URL of the Web3 systemic agent service used by the MCP server. | https://web3-systemic-agent.onrender.com |
| X402_BUYER_PRIVATE_KEY | No | Private key for the x402 buyer wallet. When configured, paid deep_semantic_audit calls can execute without supplying an x402_payment_header per request. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Use the five free Stage 1 tools (scan_contract_selectors, check_token_honeypot, scan_dao_proposals, preflight_tx_firewall, inspect_proxy_and_source) first for zero-cost deterministic screening. Escalate to the paid Stage 2 tool (deep_semantic_audit, $0.015 USDC standard / $0.25 USDC deep proxy + verified source via x402 on Base) only when high-risk selectors, honeypot traps, upgradeable proxies, or suspicious governance calldata are detected.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| scan_contract_selectorsA | 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. |
| check_token_honeypotA | 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. |
| scan_dao_proposalsA | 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. |
| deep_semantic_auditA | 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. |
| preflight_tx_firewallA | 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. |
| inspect_proxy_and_sourceA | 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. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| audit-token-before-swap | Guided pre-swap security workflow for evaluating an ERC-20 token for honeypot traps, privileged selectors, proxy upgradability, and optional deep LLM source audit. |
| pre-sign-transaction-firewall | Pre-sign transaction security firewall workflow inspecting calldata, unlimited approvals, Permit2, EIP-712 typed data phishing, prompt injections, and eth_call simulation. |
| audit-dao-governance-space | Governance security workflow scanning recent Snapshot DAO proposals for hostile takeover payloads and escalating suspicious execution calldata. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| x402 Micropayment Pricing & Tiers | Current x402 USDC micropayment pricing tiers, supported EVM network profiles (Base Mainnet, Base Sepolia, Arbitrum One), and free vs paid tool mapping. |
| Known EVM Selectors & Honeypot Traps | Static catalog of known 4-byte EVM administrative selectors, high-risk keywords, and DEX honeypot/rugpull signatures. |
| Curated Snapshot DAO Governance Proposals | Deterministic curated dataset of Snapshot DAO governance proposals with extracted on-chain target contracts and execution calldata. |
| Recent Autonomous Security Audits Feed | Most recent autonomous contract and governance security evaluations recorded in AgentStorage. |
TDQS
Scored across 6 tools
Each tool targets a fairly distinct artifact: raw bytecode selectors, token honeypot patterns, DAO proposals, transaction preflight, and proxy/source inspection. The main overlap is between scan_contract_selectors and check_token_honeypot (both bytecode scanners that flag selfdestruct/privileged functions) and partially inspect_proxy_and_source's admin/owner probing, but the descriptions make the intended boundary clear enough to choose correctly.
Four tools follow a verb_noun pattern (scan_contract_selectors, check_token_honeypot, scan_dao_proposals, inspect_proxy_and_source), while deep_semantic_audit and preflight_tx_firewall drop the leading verb. It stays readable, but the mix of verb-led and noun-phrase names is more than a minor deviation.
Six tools is well-scoped for a focused web3 security agent, and each maps to a different stage or artifact (bytecode, token, governance, tx, proxy). No tool looks redundant or like filler.
Stage 1 coverage is broad (contracts, tokens, DAO proposals, transactions, proxies), but the paid Stage 2 semantic audit exists only for DAO proposals, leaving token and arbitrary-contract findings with no deep-analysis path. There is also no address-level reputation/sanctions or holder/liquidity-distribution check, which are common needs for a pre-trade security agent.