export const CRYPTO_TOOLS = [
    {
        "name": "fetch_token_data",
        "description": "Fetch real-time token data from DexScreener by searching for a token name or contract address.",
        "parameters": {
            "type": "OBJECT",
            "properties": {
                "query": {
                    "type": "STRING",
                    "description": "Token name, symbol, or contract address to search."
                }
            },
            "required": [
                "query"
            ]
        }
    },
    {
        "name": "fetch_crypto_price",
        "description": "Get live price, 24h change, volume, market cap, and dominance for Bitcoin, Solana, or any cryptocurrency.",
        "parameters": {
            "type": "OBJECT",
            "properties": {
                "coins": {
                    "type": "ARRAY",
                    "items": {
                        "type": "STRING"
                    },
                    "description": "Coin IDs or symbols to fetch (e.g. bitcoin, solana, ethereum, BTC, SOL)."
                }
            },
            "required": [
                "coins"
            ]
        }
    },
    {
        "name": "analyze_dex_chart",
        "description": "Analyze a DEX chart on DexScreener, Birdeye, or similar. Takes a screenshot and reads price action, volume, liquidity, pair age, and whale activity for crypto pairs.",
        "parameters": {
            "type": "OBJECT",
            "properties": {
                "pair": {
                    "type": "STRING",
                    "description": "Token pair or contract address being analyzed (e.g. SOL/USDC, or a Solana CA)."
                },
                "platform": {
                    "type": "STRING",
                    "description": "Platform: dexscreener, birdeye, raydium, jupiter. Default: read from current page."
                }
            },
            "required": []
        }
    },
    {
        "name": "onchain_metrics",
        "description": "Fetch on-chain data for Bitcoin or Solana: active addresses, exchange netflow, realized cap, MVRV ratio, funding rates, open interest, long/short ratio.",
        "parameters": {
            "type": "OBJECT",
            "properties": {
                "asset": {
                    "type": "STRING",
                    "description": "Asset: bitcoin or solana."
                },
                "metrics": {
                    "type": "ARRAY",
                    "items": {
                        "type": "STRING"
                    },
                    "description": "Metrics: netflow, mvrv, funding_rate, open_interest, long_short_ratio, dominance, etf_flows. Leave empty for overview."
                }
            },
            "required": [
                "asset"
            ]
        }
    },
    {
        "name": "btc_dominance",
        "description": "Get current Bitcoin dominance (BTC.D) and interpret what it means for altcoins like Solana. Rising BTC.D = alt season ending, falling = alt season starting.",
        "parameters": {
            "type": "OBJECT",
            "properties": {},
            "required": []
        }
    },
    {
        "name": "scan_contract",
        "description": "Deep scan a smart contract address for rug indicators: honeypot, tax, mint status, LP lock, top holder concentration. Works on ETH, SOL, BSC, Base, Arbitrum, Polygon.",
        "parameters": {
            "type": "OBJECT",
            "properties": {
                "address": {
                    "type": "STRING",
                    "description": "Contract/token address to scan."
                },
                "chain": {
                    "type": "STRING",
                    "description": "Blockchain: ethereum, solana, bsc, base, arbitrum, polygon, avalanche. Auto-detect if omitted."
                }
            },
            "required": [
                "address"
            ]
        }
    },
    {
        "name": "scan_wallet",
        "description": "Analyze a wallet address: PnL history, win rate, token holdings, smart money score, insider flags, rug participation history.",
        "parameters": {
            "type": "OBJECT",
            "properties": {
                "address": {
                    "type": "STRING",
                    "description": "Wallet address to analyze."
                },
                "chain": {
                    "type": "STRING",
                    "description": "Chain: ethereum, solana, bsc, base, etc."
                }
            },
            "required": [
                "address"
            ]
        }
    },
    {
        "name": "fetch_dex_data",
        "description": "Get real-time DEX data for a token: price, market cap, FDV, 24h volume, liquidity, price change, and chart data. Pulls from DexScreener/GeckoTerminal.",
        "parameters": {
            "type": "OBJECT",
            "properties": {
                "token": {
                    "type": "STRING",
                    "description": "Token address, symbol, or name."
                },
                "chain": {
                    "type": "STRING",
                    "description": "Chain to search on. Leave blank to search all."
                }
            },
            "required": [
                "token"
            ]
        }
    },
    {
        "name": "track_whale_moves",
        "description": "Track large wallet movements for a token: who is buying/selling, wallet sizes, accumulation vs distribution patterns.",
        "parameters": {
            "type": "OBJECT",
            "properties": {
                "token": {
                    "type": "STRING",
                    "description": "Token address or symbol."
                },
                "chain": {
                    "type": "STRING",
                    "description": "Chain."
                },
                "min_usd": {
                    "type": "NUMBER",
                    "description": "Minimum transaction size in USD to track. Default 10000."
                }
            },
            "required": [
                "token"
            ]
        }
    },
    {
        "name": "pump_fun_scan",
        "description": "Analyze a pump.fun token: bonding curve %, graduation progress, top holder concentration, creator history, velocity.",
        "parameters": {
            "type": "OBJECT",
            "properties": {
                "address": {
                    "type": "STRING",
                    "description": "pump.fun token address or ticker."
                }
            },
            "required": [
                "address"
            ]
        }
    },
    {
        "name": "check_honeypot",
        "description": "Test if a token is a honeypot — can users actually sell? Simulates a buy and sell transaction.",
        "parameters": {
            "type": "OBJECT",
            "properties": {
                "address": {
                    "type": "STRING",
                    "description": "Token contract address."
                },
                "chain": {
                    "type": "STRING",
                    "description": "Chain."
                }
            },
            "required": [
                "address"
            ]
        }
    },
    {
        "name": "trending_tokens",
        "description": "Get currently trending tokens across chains — highest volume, most searched, recently graduated from pump.fun, or narrative-driven.",
        "parameters": {
            "type": "OBJECT",
            "properties": {
                "chain": {
                    "type": "STRING",
                    "description": "Filter by chain: solana, ethereum, base, all."
                },
                "filter": {
                    "type": "STRING",
                    "description": "Filter: trending, new, graduating, gainers, narrative."
                }
            },
            "required": []
        }
    },
    {
        "name": "fetch_gas_fees",
        "description": "Get current gas fees for major chains — fast, standard, slow estimates in USD.",
        "parameters": {
            "type": "OBJECT",
            "properties": {
                "chains": {
                    "type": "ARRAY",
                    "items": {
                        "type": "STRING"
                    },
                    "description": "Chains to check: ethereum, base, arbitrum, solana, etc."
                }
            },
            "required": []
        }
    },
    {
        "name": "defi_protocol_scan",
        "description": "Analyze a DeFi protocol: TVL, APY, audit status, exploit history, rug risk score. Works for DEXs, lending protocols, yield farms.",
        "parameters": {
            "type": "OBJECT",
            "properties": {
                "protocol": {
                    "type": "STRING",
                    "description": "Protocol name or contract address (e.g. Uniswap, Aave, a new DEX address)."
                }
            },
            "required": [
                "protocol"
            ]
        }
    },
    {
        "name": "nft_collection_scan",
        "description": "Analyze an NFT collection: floor price, volume, holders, whale concentration, wash trading flags, royalty status.",
        "parameters": {
            "type": "OBJECT",
            "properties": {
                "collection": {
                    "type": "STRING",
                    "description": "Collection name, address, or slug."
                },
                "marketplace": {
                    "type": "STRING",
                    "description": "Marketplace: opensea, blur, magic_eden, tensor."
                }
            },
            "required": [
                "collection"
            ]
        }
    },
    {
        "name": "smart_money_tracker",
        "description": "Find what known smart money wallets, insiders, and alpha wallets are buying right now across chains.",
        "parameters": {
            "type": "OBJECT",
            "properties": {
                "chain": {
                    "type": "STRING",
                    "description": "Filter by chain."
                },
                "timeframe": {
                    "type": "STRING",
                    "description": "Time window: 1h, 4h, 24h, 7d."
                }
            },
            "required": []
        }
    },
    {
        "name": "crypto_news_sentiment",
        "description": "Fetch latest crypto news and CT (Crypto Twitter) sentiment for a token or topic. Identifies FUD vs hype, influencer mentions.",
        "parameters": {
            "type": "OBJECT",
            "properties": {
                "query": {
                    "type": "STRING",
                    "description": "Token, project name, or topic to search."
                }
            },
            "required": [
                "query"
            ]
        }
    },
    {
        "name": "portfolio_pnl",
        "description": "Calculate PnL for a wallet across all holdings: realized gains, unrealized gains, biggest wins and losses.",
        "parameters": {
            "type": "OBJECT",
            "properties": {
                "wallet": {
                    "type": "STRING",
                    "description": "Wallet address."
                },
                "chain": {
                    "type": "STRING",
                    "description": "Chain or \"all\" for multi-chain."
                }
            },
            "required": [
                "wallet"
            ]
        }
    }
];
