{"tools":[{"type":"function","function":{"name":"walletPersonalityAnalyzer","description":"Analyzes an on-chain wallet's transaction history and behavior patterns to generate a personality profile. Returns personality type (DeFi Degen, Whale, HODLer, etc.), behavioral traits, and key statistics.","parameters":{"type":"object","properties":{"address":{"type":"string","description":"The wallet address to analyze (0x-prefixed)"},"network":{"type":"string","description":"Network: pharos_testnet, pharos_mainnet, ethereum, polygon, bsc, arbitrum","default":"pharos_testnet"}},"required":["address"]}}},{"type":"function","function":{"name":"onChainCreditScore","description":"Calculates an on-chain credit score (0–1000) for a wallet address based on wallet age, activity, balance stability, DeFi participation, transaction success rate, and token diversity. Returns a grade (D to AAA) and improvement recommendations.","parameters":{"type":"object","properties":{"address":{"type":"string","description":"The wallet address to score"},"network":{"type":"string","description":"Network: pharos_testnet, pharos_mainnet, ethereum, polygon, bsc, arbitrum","default":"pharos_testnet"}},"required":["address"]}}},{"type":"function","function":{"name":"smartContractRiskAuditor","description":"Audits a smart contract for common security risks: unverified source, dangerous opcodes (SELFDESTRUCT, DELEGATECALL), upgradeability/proxy patterns, tx.origin auth, reentrancy risks. Returns a risk level (LOW/MEDIUM/HIGH/CRITICAL) with detailed findings.","parameters":{"type":"object","properties":{"contractAddress":{"type":"string","description":"The smart contract address to audit"},"network":{"type":"string","description":"Network: pharos_testnet, pharos_mainnet, ethereum, polygon, bsc, arbitrum","default":"pharos_testnet"}},"required":["contractAddress"]}}},{"type":"function","function":{"name":"whaleTracking","description":"Scans recent blocks to detect large on-chain transfers (whale movements) above a configurable threshold. Returns a sorted list of whale transactions and identifies the most active whale addresses by total volume sent.","parameters":{"type":"object","properties":{"thresholdNative":{"type":"number","description":"Minimum transfer value in native tokens to qualify as a whale movement (default: 100)","default":100},"blockRange":{"type":"number","description":"Number of recent blocks to scan, max 100 (default: 20)","default":20},"watchAddresses":{"type":"array","description":"Optional list of specific addresses to monitor regardless of amount threshold"},"network":{"type":"string","description":"Network: pharos_testnet, pharos_mainnet, ethereum, polygon, bsc, arbitrum","default":"pharos_testnet"}},"required":[]}}},{"type":"function","function":{"name":"crossChainPortfolioAnalyzer","description":"Analyzes a wallet's complete token portfolio across multiple blockchain networks (Pharos, Ethereum, Polygon, BSC, Arbitrum). Returns native balances, ERC-20 token holdings, USD valuations per chain, and a grand total.","parameters":{"type":"object","properties":{"address":{"type":"string","description":"The wallet address to analyze"},"chains":{"type":"array","description":"Chains to include. Options: pharos_testnet, pharos_mainnet, ethereum, polygon, bsc, arbitrum. Defaults to all supported chains."}},"required":["address"]}}},{"type":"function","function":{"name":"walletReputationOracle","description":"Evaluates a wallet's on-chain reputation and trustworthiness (0–100 score) based on transaction history, activity age, success rate, DeFi participation, token diversity, and balance health. Returns a trust level (UNTRUSTED to EXCELLENT) with detailed factor breakdown and red-flag warnings.","parameters":{"type":"object","properties":{"address":{"type":"string","description":"Wallet address to evaluate"},"network":{"type":"string","description":"Network: pharos_testnet, pharos_mainnet, ethereum, polygon, bsc, arbitrum","default":"pharos_testnet"}},"required":["address"]}}},{"type":"function","function":{"name":"rugPullDetector","description":"Scans a token smart contract for rug pull indicators: unverified source, owner mint/pause/blacklist privileges, selfdestruct capability, adjustable fees, non-renounced ownership, and abnormal token holder concentration. Returns a risk level (LOW/MEDIUM/HIGH/CRITICAL) with all detected signals.","parameters":{"type":"object","properties":{"contractAddress":{"type":"string","description":"Token contract address to analyze"},"network":{"type":"string","description":"Network: pharos_testnet, pharos_mainnet, ethereum, polygon, bsc, arbitrum","default":"pharos_testnet"}},"required":["contractAddress"]}}},{"type":"function","function":{"name":"aiPortfolioRebalancer","description":"Analyzes a wallet's current token portfolio across chains, categorizes assets (stablecoins, bluechips, native tokens, altcoins), and generates AI-driven rebalancing recommendations based on a chosen risk profile (conservative/moderate/aggressive). Returns current vs target allocations and specific HOLD/REDUCE/INCREASE/EXIT actions per asset.","parameters":{"type":"object","properties":{"address":{"type":"string","description":"Wallet address to analyze and rebalance"},"riskProfile":{"type":"string","description":"Risk appetite: conservative, moderate, or aggressive","enum":["conservative","moderate","aggressive"],"default":"moderate"},"chains":{"type":"array","description":"Chains to include. Defaults to pharos_testnet and ethereum."}},"required":["address"]}}},{"type":"function","function":{"name":"pharosNetworkIntelligence","description":"Provides real-time Pharos Network intelligence: latest block, gas price, estimated TPS, average block time, network load level, and optimal transaction window detection. Exclusively designed for Pharos Atlantic Testnet and Pharos Pacific Mainnet — the ideal skill for agents deciding when and how to execute on-chain transactions on Pharos.","parameters":{"type":"object","properties":{"network":{"type":"string","description":"Pharos network to monitor: pharos_testnet or pharos_mainnet","enum":["pharos_testnet","pharos_mainnet"],"default":"pharos_testnet"},"blockSample":{"type":"number","description":"Number of recent blocks to sample for TPS and block time calculation (5–20, default: 10)","default":10}},"required":[]}}},{"type":"function","function":{"name":"agentDecisionEngine","description":"The AI agent decision layer. Aggregates results from Wallet Reputation, Credit Score, Whale Tracking, and Network Intelligence to produce a single actionable decision (BUY/HOLD/SELL/MONITOR/AVOID) with a confidence score and human-readable reason. Designed to be the final step in any agent decision pipeline on Pharos.","parameters":{"type":"object","properties":{"wallet":{"type":"string","description":"Wallet address to evaluate for decision making"},"network":{"type":"string","description":"Network: pharos_testnet, pharos_mainnet, ethereum, polygon, bsc, arbitrum","default":"pharos_testnet"}},"required":["wallet"]}}},{"type":"function","function":{"name":"agentTaskPlanner","description":"Translates a high-level agent goal (natural language) into an ordered sequence of Pharos Skills to execute. Input a goal like 'Increase portfolio yield', 'Track whale accumulation', or 'Audit this contract' — the planner returns the exact skill sequence, execution hints, and estimated duration. The orchestration layer that connects intent to action.","parameters":{"type":"object","properties":{"goal":{"type":"string","description":"High-level goal in natural language, e.g. 'Increase portfolio yield', 'Track whale activity', 'Assess wallet risk', 'Find buy opportunity'"},"context":{"type":"object","description":"Optional context: wallet address, network, riskProfile"}},"required":["goal"]}}}]}