simulate_health_factor
Simulate how a price change affects your AAVE health factor. Determine if a drop triggers liquidation.
Instructions
Use this when the user wants to simulate how a price change affects their AAVE health factor — 'What happens to my health factor if ETH drops 20%?', 'How much can WBTC fall before I get liquidated?', 'Simulate a 30% drop in my collateral asset'. Fetches the user's full position, computes current health factor, then recalculates it after applying the specified price change to the target asset. Health Factor < 1.0 means the position is liquidatable.
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": {
"chain": "<chain>",
"userAddress": "<userAddress>",
"assetSymbol": "<assetSymbol>",
"priceChangePct": "<priceChangePct>"
},
"name": "simulate_health_factor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | Chain identifier | |
| assetSymbol | Yes | Symbol of the asset whose price changes (e.g. WETH, WBTC, USDC) | |
| userAddress | Yes | Wallet address of the user (0x...) | |
| priceChangePct | Yes | Price change percentage — negative for drops, positive for gains. E.g. -20 means the asset price falls 20%. |