defi_scan
Detect unusual flows in DeFi protocols via major lending and DEX contracts. Pass a protocol name or contract address to get a story label and anomaly score.
Instructions
Anomaly scan for a DeFi protocol — detects unusual flows through major lending and DEX contracts (Uniswap, Aave, Curve, Compound). Pass a protocol name or contract address. Returns a story label and anomaly score. Costs $0.03 USDC on Base mainnet.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"protocol": "<protocol>"
},
"name": "defi_scan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Blockchain (default: ethereum) | |
| window | No | Lookback window (default: 24h) | |
| protocol | Yes | Protocol name (uniswap_v3, uniswap_v3_r2, aave_v3, aave_v2, curve_3pool, compound_v3) or a 0x contract address |