{"protocolVersion":"2025-06-18","capabilities":{"tools":{"listChanged":false}},"agentGuidance":{"description":"General guidance for external AI agents using this MCP server. Read before selecting a project endpoint, requesting tool schemas, or calling protocol tools.","skillUrl":"https://erc8004.heyanon.ai/mcp/skill.md"},"serverInfo":{"name":"heyanon-erc8004-aave","version":"1.0.0"},"tools":[{"name":"borrowV3","description":"Aave V3 only. Borrow assets from the Aave V3 protocol lending pool. Requires enough collateral to cover the debt. If the user did not say which Aave version and the chain has both Aave V3 and V4 (ethereum, avalanche, base), you must ask them which version before calling, unless they asked for the best rate: then compare both versions (getReservesList with version null) and use the better one.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","arbitrum","avalanche","optimism","polygon","base","bsc","plasma","monad","ink"]},"assetAddress":{"type":"string","description":"The address of the asset to borrow."},"amount":{"type":"string","description":"The amount to borrow in decimal format."},"interestRateMode":{"type":"string","enum":["None","Stable","Variable"],"description":"Interest rate mode, if not specified, use Variable as default."},"userAddress":{"type":"string","description":"The EVM wallet address of the user"}},"required":["chainName","assetAddress","amount","interestRateMode","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"note":{"type":"string","description":"Human-readable summary of the action"},"transactions":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"number","description":"EVM chain ID"},"transaction":{"type":"object","properties":{"target":{"type":"string","description":"Target contract address"},"data":{"type":"string","description":"ABI-encoded calldata"},"value":{"description":"Native token value in wei","type":"string"}},"required":["target","data"],"additionalProperties":false,"description":"EVM transaction parameters"}},"required":["chainId","transaction"],"additionalProperties":false},"description":"EVM transactions to sign and broadcast"}},"required":["project","operation","transactions"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"error":{"type":"string","description":"Error message"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"getReserveAssociatedTokensV3","description":"Aave V3 only. Get addresses of associated tokens (aToken, stableDebtToken, variableDebtToken) for specific reserves.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","arbitrum","avalanche","optimism","polygon","base","bsc","plasma","monad","ink"]},"assetsAddresses":{"type":"array","items":{"type":"string"},"description":"Array of asset addresses to get associated tokens for."}},"required":["chainName","assetsAddresses"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"note":{"type":"string","description":"Human-readable summary of the action"},"data":{"anyOf":[{"type":"object","properties":{"aTokenAddress":{"type":"string","description":"aToken address"},"stableDebtTokenAddress":{"type":"string","description":"Stable debt token address"},"variableDebtTokenAddress":{"type":"string","description":"Variable debt token address"}},"required":["aTokenAddress","stableDebtTokenAddress","variableDebtTokenAddress"],"additionalProperties":false},{"type":"object","properties":{"assets":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"aTokenAddress":{"type":"string","description":"aToken address"},"stableDebtTokenAddress":{"type":"string","description":"Stable debt token address"},"variableDebtTokenAddress":{"type":"string","description":"Variable debt token address"}},"required":["aTokenAddress","stableDebtTokenAddress","variableDebtTokenAddress"],"additionalProperties":false},"description":"Per-asset associated token addresses"},"summary":{"type":"object","properties":{"totalAssets":{"type":"number"},"successfulAssets":{"type":"number"},"failedAssets":{"type":"number"}},"required":["totalAssets","successfulAssets","failedAssets"],"additionalProperties":false}},"required":["assets","summary"],"additionalProperties":false}]}},"required":["project","operation","data"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"error":{"type":"string","description":"Error message"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"getReserve","description":"Get comprehensive data of one Aave reserve. V3: symbol, frozen/paused status, LTV, liquidation threshold and bonus, reserve factor, supply and variable borrow rates, total debt, available liquidity, isolation mode and debt ceiling, supply/borrow caps, E-Modes, oracle price and supply/borrow incentives. V4: spoke, hub, APYs, collateral factor, liquidation bonus and fee, caps, liquidity and price.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","arbitrum","avalanche","optimism","polygon","base","bsc","plasma","monad","ink","arc"]},"version":{"type":"string","enum":["v3","v4"],"description":"Aave version of the reserve. V3 reserves are identified by token address, V4 reserves by reserve id."},"reserveAddress":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Aave V3 only: the address of the reserve (token) to get data for. null for V4."},"reserveId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Aave V4 only: the reserve id exactly as returned by getReservesList, getSpokeReserves or the portfolio tools: an opaque base64 string (e.g. \"MTo6MHg5NGU3…Ojoz\"), never a spoke or token address. One token can be listed on several spokes, each with its own id. null for V3."}},"required":["chainName","version","reserveAddress","reserveId"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"note":{"type":"string","description":"Human-readable summary of the action"},"data":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"symbol":{"type":"string"},"frozen":{"type":"string"},"paused":{"type":"string"},"canCollateral":{"type":"string"},"LTV":{"type":"string"},"liqThereshold":{"type":"string"},"liqBonus":{"type":"string"},"reserveFactor":{"type":"string"},"canBorrow":{"type":"string"},"optimalUtilization":{"type":"string"},"supplyRate":{"type":"string"},"supplyAPR":{"type":"string"},"variableBorrowRate":{"type":"string"},"variableBorrowAPR":{"type":"string"},"totalDebtUSD":{"type":"string","description":"Total debt in USD, e.g. \"$31.15M\""},"availableLiquidityUSD":{"type":"string","description":"Available liquidity in USD as the Aave app shows it, e.g. \"$31.15M\""},"isIsolated":{"type":"string"},"debtCeiling":{"type":"string"},"supplyCap":{"type":"string","description":"Supply cap in USD, e.g. \"$2.43B\" (\"N/A\" without a cap)"},"borrowCap":{"type":"string","description":"Borrow cap in USD, e.g. \"$2.43B\" (\"N/A\" without a cap)"},"borrowableInIsolation":{"type":"string"},"flashloanEnabled":{"type":"string"},"eModes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"eMode":{"type":"object","properties":{"ltv":{"type":"string"},"liquidationThreshold":{"type":"string"},"liquidationBonus":{"type":"string"},"collateralBitmap":{"type":"string"},"label":{"type":"string"},"borrowableBitmap":{"type":"string"},"formattedLtv":{"type":"string"},"formattedLiquidationThreshold":{"type":"string"},"formattedLiquidationBonus":{"type":"string"},"isolated":{"type":"boolean"},"ltvzeroBitmap":{"type":"string"}},"required":["ltv","liquidationThreshold","liquidationBonus","collateralBitmap","label","borrowableBitmap","formattedLtv","formattedLiquidationThreshold","formattedLiquidationBonus","isolated","ltvzeroBitmap"],"additionalProperties":false},"collateralEnabled":{"type":"boolean"},"borrowingEnabled":{"type":"boolean"},"ltvzeroEnabled":{"type":"boolean"}},"required":["id","eMode","collateralEnabled","borrowingEnabled","ltvzeroEnabled"],"additionalProperties":false},"description":"E-Mode categories the reserve belongs to"},"priceInMarketReferenceCurrency":{"type":"string"},"priceOracle":{"type":"string"},"aIncentiveData":{"type":"array","items":{"type":"object","properties":{"rewardTokenAddress":{"type":"string","description":"Reward token address"},"rewardTokenSymbol":{"type":"string","description":"Reward token symbol"},"incentiveAPR":{"type":"string","description":"Annual incentive rate as percentage string"}},"required":["rewardTokenAddress","rewardTokenSymbol","incentiveAPR"],"additionalProperties":false}},"vIncentiveData":{"type":"array","items":{"type":"object","properties":{"rewardTokenAddress":{"type":"string","description":"Reward token address"},"rewardTokenSymbol":{"type":"string","description":"Reward token symbol"},"incentiveAPR":{"type":"string","description":"Annual incentive rate as percentage string"}},"required":["rewardTokenAddress","rewardTokenSymbol","incentiveAPR"],"additionalProperties":false}}},"required":["symbol","frozen","paused","canCollateral","LTV","liqThereshold","liqBonus","reserveFactor","canBorrow","optimalUtilization","supplyRate","supplyAPR","variableBorrowRate","variableBorrowAPR","totalDebtUSD","availableLiquidityUSD","isIsolated","debtCeiling","supplyCap","borrowCap","borrowableInIsolation","flashloanEnabled","eModes","priceInMarketReferenceCurrency","priceOracle","aIncentiveData","vIncentiveData"],"additionalProperties":false}},{"type":"object","properties":{"version":{"type":"string","const":"v4","description":"Aave version of the reserve"},"reserveId":{"type":"string","description":"Reserve id, the one the V4 tools take: an opaque base64 string, never an address"},"spoke":{"type":"string","description":"Name of the spoke (lending market) the reserve belongs to"},"hub":{"type":"string","description":"Name of the hub that lends the reserve its liquidity"},"symbol":{"type":"string","description":"Token symbol"},"tokenAddress":{"type":"string","description":"Token contract address"},"supplyAPY":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Percentage, e.g. \"4.18%\" (null when not available)"},"borrowAPY":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Percentage, e.g. \"4.18%\" (null when not available)"},"collateralFactor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Percentage, e.g. \"4.18%\" (null when not available)"},"availableToBorrow":{"type":"string","description":"Amount left to borrow in human-readable decimal format (e.g. '1.5')"},"status":{"type":"string","description":"active, frozen, paused or inactive"},"canSupply":{"type":"boolean"},"canBorrow":{"type":"boolean"},"canUseAsCollateral":{"type":"boolean"},"isWrappedNativeToken":{"type":"boolean","description":"true for the wrapped native token's reserve, the one useNativeToken works with"},"chainId":{"type":"number","description":"EVM chain ID"},"spokeAddress":{"type":"string"},"hubAddress":{"type":"string"},"decimals":{"type":"number"},"priceUSD":{"type":"string","description":"Token price in USD"},"underlyingAPY":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Percentage, e.g. \"4.18%\" (null when not available)"},"totalSupplied":{"type":"string"},"totalSuppliedUSD":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"USD value rounded to cents (null when not available)"},"totalBorrowed":{"type":"string"},"totalBorrowedUSD":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"USD value rounded to cents (null when not available)"},"availableToSupply":{"type":"string"},"supplyCap":{"type":"string"},"borrowCap":{"type":"string"},"maxLiquidationBonus":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Percentage, e.g. \"4.18%\" (null when not available)"},"liquidationFee":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Percentage, e.g. \"4.18%\" (null when not available)"},"collateralRisk":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Percentage, e.g. \"4.18%\" (null when not available)"}},"required":["version","reserveId","spoke","hub","symbol","tokenAddress","supplyAPY","borrowAPY","collateralFactor","availableToBorrow","status","canSupply","canBorrow","canUseAsCollateral","chainId","spokeAddress","hubAddress","decimals","priceUSD","underlyingAPY","totalSupplied","totalSuppliedUSD","totalBorrowed","totalBorrowedUSD","availableToSupply","supplyCap","borrowCap","maxLiquidationBonus","liquidationFee","collateralRisk"],"additionalProperties":false}]}},"required":["project","operation","data"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"error":{"type":"string","description":"Error message"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"getUserReserves","description":"Get the user's comprehensive Aave positions on a chain: active assets/debts, liquidity, collateral, borrowing, financial ratios and health factor. V3 also reports E-Mode and isolation mode; V4 returns one position per spoke, each with its own health factor, borrowing power and risk premium, and every V4 supply and borrow carries its reserve id (the one withdrawV4, repayV4 and setUsageAsCollateralV4 take).","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","arbitrum","avalanche","optimism","polygon","base","bsc","plasma","monad","ink","arc"]},"version":{"anyOf":[{"type":"string","enum":["v3","v4"]},{"type":"null"}],"description":"Aave version: \"v3\" or \"v4\". Pass null to get data from every Aave version deployed on the chain."},"userAddress":{"type":"string","description":"The EVM wallet address of the user"}},"required":["chainName","version","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"note":{"type":"string","description":"Human-readable summary of the action"},"data":{"anyOf":[{"type":"object","properties":{"userReservesData":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"underlyingAsset":{"type":"string"},"scaledATokenBalance":{"type":"string"},"usageAsCollateralEnabledOnUser":{"type":"boolean"},"scaledVariableDebt":{"type":"string"},"reserve":{"type":"object","properties":{"originalId":{"type":"number"},"id":{"type":"string"},"symbol":{"type":"string"},"name":{"type":"string"},"decimals":{"type":"number"},"underlyingAsset":{"type":"string"},"usageAsCollateralEnabled":{"type":"boolean"},"reserveFactor":{"type":"string"},"baseLTVasCollateral":{"type":"string"},"liquidityIndex":{"type":"string"},"reserveLiquidationThreshold":{"type":"string"},"reserveLiquidationBonus":{"type":"string"},"variableBorrowIndex":{"type":"string"},"variableBorrowRate":{"type":"string"},"availableLiquidity":{"type":"string"},"liquidityRate":{"type":"string"},"totalScaledVariableDebt":{"type":"string"},"lastUpdateTimestamp":{"type":"number"},"borrowCap":{"type":"string"},"supplyCap":{"type":"string"},"debtCeiling":{"type":"string"},"debtCeilingDecimals":{"type":"number"},"isolationModeTotalDebt":{"type":"string"},"virtualUnderlyingBalance":{"type":"string"},"deficit":{"type":"string"},"formattedBaseLTVasCollateral":{"type":"string"},"formattedReserveLiquidationThreshold":{"type":"string"},"formattedReserveLiquidationBonus":{"type":"string"},"formattedAvailableLiquidity":{"type":"string"},"totalDebt":{"type":"string"},"totalVariableDebt":{"type":"string"},"totalLiquidity":{"type":"string"},"borrowUsageRatio":{"type":"string"},"supplyUsageRatio":{"type":"string"},"supplyAPY":{"type":"string"},"variableBorrowAPY":{"type":"string"},"unborrowedLiquidity":{"type":"string"},"supplyAPR":{"type":"string"},"variableBorrowAPR":{"type":"string"},"isIsolated":{"type":"boolean"},"isolationModeTotalDebtUSD":{"type":"string"},"availableDebtCeilingUSD":{"type":"string"},"debtCeilingUSD":{"type":"string"},"eModes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"eMode":{"type":"object","properties":{"ltv":{"type":"string"},"liquidationThreshold":{"type":"string"},"liquidationBonus":{"type":"string"},"collateralBitmap":{"type":"string"},"label":{"type":"string"},"borrowableBitmap":{"type":"string"},"formattedLtv":{"type":"string"},"formattedLiquidationThreshold":{"type":"string"},"formattedLiquidationBonus":{"type":"string"},"isolated":{"type":"boolean"},"ltvzeroBitmap":{"type":"string"}},"required":["ltv","liquidationThreshold","liquidationBonus","collateralBitmap","label","borrowableBitmap","formattedLtv","formattedLiquidationThreshold","formattedLiquidationBonus","isolated","ltvzeroBitmap"],"additionalProperties":false},"collateralEnabled":{"type":"boolean"},"borrowingEnabled":{"type":"boolean"},"ltvzeroEnabled":{"type":"boolean"}},"required":["id","eMode","collateralEnabled","borrowingEnabled","ltvzeroEnabled"],"additionalProperties":false}},"totalLiquidityUSD":{"type":"string"},"availableLiquidityUSD":{"type":"string"},"totalDebtUSD":{"type":"string"},"totalVariableDebtUSD":{"type":"string"},"borrowCapUSD":{"type":"string"},"supplyCapUSD":{"type":"string"},"priceInMarketReferenceCurrency":{"type":"string"},"formattedPriceInMarketReferenceCurrency":{"type":"string"},"priceInUSD":{"type":"string"},"borrowingEnabled":{"type":"boolean"},"isActive":{"type":"boolean"},"isFrozen":{"type":"boolean"},"aTokenAddress":{"type":"string"},"variableDebtTokenAddress":{"type":"string"},"interestRateStrategyAddress":{"type":"string"},"priceOracle":{"type":"string"},"variableRateSlope1":{"type":"string"},"variableRateSlope2":{"type":"string"},"baseVariableBorrowRate":{"type":"string"},"optimalUsageRatio":{"type":"string"},"isPaused":{"type":"boolean"},"isSiloedBorrowing":{"type":"boolean"},"accruedToTreasury":{"type":"string"},"flashLoanEnabled":{"type":"boolean"},"borrowableInIsolation":{"type":"boolean"},"stableBorrowRate":{"type":"string"},"stableBorrowAPR":{"type":"string"},"aIncentivesData":{"type":"array","items":{"type":"object","properties":{"incentiveAPR":{"type":"string"},"rewardTokenAddress":{"type":"string"},"rewardTokenSymbol":{"type":"string"}},"required":["incentiveAPR","rewardTokenAddress","rewardTokenSymbol"],"additionalProperties":false}},"vIncentivesData":{"type":"array","items":{"type":"object","properties":{"incentiveAPR":{"type":"string"},"rewardTokenAddress":{"type":"string"},"rewardTokenSymbol":{"type":"string"}},"required":["incentiveAPR","rewardTokenAddress","rewardTokenSymbol"],"additionalProperties":false}}},"required":["originalId","id","symbol","name","decimals","underlyingAsset","usageAsCollateralEnabled","reserveFactor","baseLTVasCollateral","liquidityIndex","reserveLiquidationThreshold","reserveLiquidationBonus","variableBorrowIndex","variableBorrowRate","availableLiquidity","liquidityRate","totalScaledVariableDebt","lastUpdateTimestamp","borrowCap","supplyCap","debtCeiling","debtCeilingDecimals","isolationModeTotalDebt","virtualUnderlyingBalance","deficit","formattedBaseLTVasCollateral","formattedReserveLiquidationThreshold","formattedReserveLiquidationBonus","formattedAvailableLiquidity","totalDebt","totalVariableDebt","totalLiquidity","borrowUsageRatio","supplyUsageRatio","supplyAPY","variableBorrowAPY","unborrowedLiquidity","supplyAPR","variableBorrowAPR","isIsolated","isolationModeTotalDebtUSD","availableDebtCeilingUSD","debtCeilingUSD","eModes","totalLiquidityUSD","availableLiquidityUSD","totalDebtUSD","totalVariableDebtUSD","borrowCapUSD","supplyCapUSD","priceInMarketReferenceCurrency","formattedPriceInMarketReferenceCurrency","priceInUSD"],"additionalProperties":false},"underlyingBalance":{"type":"string"},"underlyingBalanceMarketReferenceCurrency":{"type":"string"},"underlyingBalanceUSD":{"type":"string"},"variableBorrows":{"type":"string"},"variableBorrowsMarketReferenceCurrency":{"type":"string"},"variableBorrowsUSD":{"type":"string"},"totalBorrows":{"type":"string"},"totalBorrowsMarketReferenceCurrency":{"type":"string"},"totalBorrowsUSD":{"type":"string"},"principalStableDebt":{"type":"string"},"stableBorrowRate":{"type":"string"},"stableBorrowLastUpdateTimestamp":{"type":"number"}},"required":["id","underlyingAsset","scaledATokenBalance","usageAsCollateralEnabledOnUser","scaledVariableDebt","reserve","underlyingBalance","underlyingBalanceMarketReferenceCurrency","underlyingBalanceUSD","variableBorrows","variableBorrowsMarketReferenceCurrency","variableBorrowsUSD","totalBorrows","totalBorrowsMarketReferenceCurrency","totalBorrowsUSD"],"additionalProperties":false},"description":"User reserve positions"},"totalLiquidityMarketReferenceCurrency":{"type":"string"},"totalLiquidityUSD":{"type":"string"},"totalCollateralMarketReferenceCurrency":{"type":"string"},"totalCollateralUSD":{"type":"string"},"totalBorrowsMarketReferenceCurrency":{"type":"string"},"totalBorrowsUSD":{"type":"string"},"netWorthUSD":{"type":"string"},"availableBorrowsMarketReferenceCurrency":{"type":"string"},"availableBorrowsUSD":{"type":"string"},"currentLoanToValue":{"type":"string"},"currentLiquidationThreshold":{"type":"string"},"healthFactor":{"type":"string"},"userEmodeCategoryId":{"type":"number"},"isInIsolationMode":{"type":"boolean"},"isolatedReserve":{"description":"The isolated collateral reserve, present only in isolation mode","type":"object","properties":{"originalId":{"type":"number"},"id":{"type":"string"},"symbol":{"type":"string"},"name":{"type":"string"},"decimals":{"type":"number"},"underlyingAsset":{"type":"string"},"usageAsCollateralEnabled":{"type":"boolean"},"reserveFactor":{"type":"string"},"baseLTVasCollateral":{"type":"string"},"liquidityIndex":{"type":"string"},"reserveLiquidationThreshold":{"type":"string"},"reserveLiquidationBonus":{"type":"string"},"variableBorrowIndex":{"type":"string"},"variableBorrowRate":{"type":"string"},"availableLiquidity":{"type":"string"},"liquidityRate":{"type":"string"},"totalScaledVariableDebt":{"type":"string"},"lastUpdateTimestamp":{"type":"number"},"borrowCap":{"type":"string"},"supplyCap":{"type":"string"},"debtCeiling":{"type":"string"},"debtCeilingDecimals":{"type":"number"},"isolationModeTotalDebt":{"type":"string"},"virtualUnderlyingBalance":{"type":"string"},"deficit":{"type":"string"},"formattedBaseLTVasCollateral":{"type":"string"},"formattedReserveLiquidationThreshold":{"type":"string"},"formattedReserveLiquidationBonus":{"type":"string"},"formattedAvailableLiquidity":{"type":"string"},"totalDebt":{"type":"string"},"totalVariableDebt":{"type":"string"},"totalLiquidity":{"type":"string"},"borrowUsageRatio":{"type":"string"},"supplyUsageRatio":{"type":"string"},"supplyAPY":{"type":"string"},"variableBorrowAPY":{"type":"string"},"unborrowedLiquidity":{"type":"string"},"supplyAPR":{"type":"string"},"variableBorrowAPR":{"type":"string"},"isIsolated":{"type":"boolean"},"isolationModeTotalDebtUSD":{"type":"string"},"availableDebtCeilingUSD":{"type":"string"},"debtCeilingUSD":{"type":"string"},"eModes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"eMode":{"type":"object","properties":{"ltv":{"type":"string"},"liquidationThreshold":{"type":"string"},"liquidationBonus":{"type":"string"},"collateralBitmap":{"type":"string"},"label":{"type":"string"},"borrowableBitmap":{"type":"string"},"formattedLtv":{"type":"string"},"formattedLiquidationThreshold":{"type":"string"},"formattedLiquidationBonus":{"type":"string"},"isolated":{"type":"boolean"},"ltvzeroBitmap":{"type":"string"}},"required":["ltv","liquidationThreshold","liquidationBonus","collateralBitmap","label","borrowableBitmap","formattedLtv","formattedLiquidationThreshold","formattedLiquidationBonus","isolated","ltvzeroBitmap"],"additionalProperties":false},"collateralEnabled":{"type":"boolean"},"borrowingEnabled":{"type":"boolean"},"ltvzeroEnabled":{"type":"boolean"}},"required":["id","eMode","collateralEnabled","borrowingEnabled","ltvzeroEnabled"],"additionalProperties":false}},"totalLiquidityUSD":{"type":"string"},"availableLiquidityUSD":{"type":"string"},"totalDebtUSD":{"type":"string"},"totalVariableDebtUSD":{"type":"string"},"borrowCapUSD":{"type":"string"},"supplyCapUSD":{"type":"string"},"priceInMarketReferenceCurrency":{"type":"string"},"formattedPriceInMarketReferenceCurrency":{"type":"string"},"priceInUSD":{"type":"string"},"borrowingEnabled":{"type":"boolean"},"isActive":{"type":"boolean"},"isFrozen":{"type":"boolean"},"aTokenAddress":{"type":"string"},"variableDebtTokenAddress":{"type":"string"},"interestRateStrategyAddress":{"type":"string"},"priceOracle":{"type":"string"},"variableRateSlope1":{"type":"string"},"variableRateSlope2":{"type":"string"},"baseVariableBorrowRate":{"type":"string"},"optimalUsageRatio":{"type":"string"},"isPaused":{"type":"boolean"},"isSiloedBorrowing":{"type":"boolean"},"accruedToTreasury":{"type":"string"},"flashLoanEnabled":{"type":"boolean"},"borrowableInIsolation":{"type":"boolean"},"stableBorrowRate":{"type":"string"},"stableBorrowAPR":{"type":"string"},"aIncentivesData":{"type":"array","items":{"type":"object","properties":{"incentiveAPR":{"type":"string"},"rewardTokenAddress":{"type":"string"},"rewardTokenSymbol":{"type":"string"}},"required":["incentiveAPR","rewardTokenAddress","rewardTokenSymbol"],"additionalProperties":false}},"vIncentivesData":{"type":"array","items":{"type":"object","properties":{"incentiveAPR":{"type":"string"},"rewardTokenAddress":{"type":"string"},"rewardTokenSymbol":{"type":"string"}},"required":["incentiveAPR","rewardTokenAddress","rewardTokenSymbol"],"additionalProperties":false}}},"required":["originalId","id","symbol","name","decimals","underlyingAsset","usageAsCollateralEnabled","reserveFactor","baseLTVasCollateral","liquidityIndex","reserveLiquidationThreshold","reserveLiquidationBonus","variableBorrowIndex","variableBorrowRate","availableLiquidity","liquidityRate","totalScaledVariableDebt","lastUpdateTimestamp","borrowCap","supplyCap","debtCeiling","debtCeilingDecimals","isolationModeTotalDebt","virtualUnderlyingBalance","deficit","formattedBaseLTVasCollateral","formattedReserveLiquidationThreshold","formattedReserveLiquidationBonus","formattedAvailableLiquidity","totalDebt","totalVariableDebt","totalLiquidity","borrowUsageRatio","supplyUsageRatio","supplyAPY","variableBorrowAPY","unborrowedLiquidity","supplyAPR","variableBorrowAPR","isIsolated","isolationModeTotalDebtUSD","availableDebtCeilingUSD","debtCeilingUSD","eModes","totalLiquidityUSD","availableLiquidityUSD","totalDebtUSD","totalVariableDebtUSD","borrowCapUSD","supplyCapUSD","priceInMarketReferenceCurrency","formattedPriceInMarketReferenceCurrency","priceInUSD"],"additionalProperties":false},"calculatedUserIncentives":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"incentiveControllerAddress":{"type":"string"},"rewardTokenSymbol":{"type":"string"},"rewardPriceFeed":{"type":"string"},"rewardTokenDecimals":{"type":"number"},"claimableRewards":{"type":"string","description":"BigNumber serialized to string"},"assets":{"type":"array","items":{"type":"string"}}},"required":["incentiveControllerAddress","rewardTokenSymbol","rewardPriceFeed","rewardTokenDecimals","claimableRewards","assets"],"additionalProperties":false}}},"required":["userReservesData","totalLiquidityMarketReferenceCurrency","totalLiquidityUSD","totalCollateralMarketReferenceCurrency","totalCollateralUSD","totalBorrowsMarketReferenceCurrency","totalBorrowsUSD","netWorthUSD","availableBorrowsMarketReferenceCurrency","availableBorrowsUSD","currentLoanToValue","currentLiquidationThreshold","healthFactor","userEmodeCategoryId","isInIsolationMode","calculatedUserIncentives"],"additionalProperties":false},{"type":"object","properties":{"positions":{"type":"array","items":{"type":"object","properties":{"spoke":{"type":"string"},"spokeAddress":{"type":"string"},"healthFactor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Health factor of the spoke position (null without debt)"},"totalCollateralUSD":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"USD value rounded to cents (null when not available)"},"totalSuppliedUSD":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"USD value rounded to cents (null when not available)"},"totalBorrowsUSD":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"USD value rounded to cents (null when not available)"},"availableBorrowsUSD":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"USD value rounded to cents (null when not available)"},"maxBorrowingPowerUSD":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"USD value rounded to cents (null when not available)"},"netWorthUSD":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"USD value rounded to cents (null when not available)"},"averageCollateralFactor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Percentage, e.g. \"4.18%\" (null when not available)"},"riskPremium":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Percentage, e.g. \"4.18%\" (null when not available)"},"liquidationPriceUSD":{"anyOf":[{"type":"string"},{"type":"null"}]},"netAPY":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Percentage, e.g. \"4.18%\" (null when not available)"},"supplies":{"type":"array","items":{"type":"object","properties":{"reserveId":{"type":"string","description":"Reserve id, the one withdrawV4 and setUsageAsCollateralV4 take"},"asset":{"type":"string","description":"Token symbol"},"assetAddress":{"type":"string"},"hub":{"type":"string"},"balance":{"type":"string"},"balanceUSD":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"USD value rounded to cents (null when not available)"},"withdrawable":{"type":"string"},"supplyAPY":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Percentage, e.g. \"4.18%\" (null when not available)"},"usageAsCollateralEnabled":{"type":"boolean"},"collateralFactor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Percentage, e.g. \"4.18%\" (null when not available)"}},"required":["reserveId","asset","assetAddress","hub","balance","balanceUSD","withdrawable","supplyAPY","usageAsCollateralEnabled","collateralFactor"],"additionalProperties":false}},"borrows":{"type":"array","items":{"type":"object","properties":{"reserveId":{"type":"string","description":"Reserve id, the one repayV4 takes"},"asset":{"type":"string","description":"Token symbol"},"assetAddress":{"type":"string"},"hub":{"type":"string"},"debt":{"type":"string"},"debtUSD":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"USD value rounded to cents (null when not available)"},"principal":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Borrowed principal, from Aave's API (null when the API has not indexed the borrow yet)"},"interest":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Accrued interest, from Aave's API (null when the API has not indexed the borrow yet)"},"borrowAPY":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Percentage, e.g. \"4.18%\" (null when not available)"}},"required":["reserveId","asset","assetAddress","hub","debt","debtUSD","principal","interest","borrowAPY"],"additionalProperties":false}}},"required":["spoke","spokeAddress","healthFactor","totalCollateralUSD","totalSuppliedUSD","totalBorrowsUSD","availableBorrowsUSD","maxBorrowingPowerUSD","netWorthUSD","averageCollateralFactor","riskPremium","liquidationPriceUSD","netAPY","supplies","borrows"],"additionalProperties":false},"description":"One position per spoke"},"lowestHealthFactor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["positions","lowestHealthFactor"],"additionalProperties":false},{"type":"object","properties":{"v3":{"description":"Aave V3 answer, or why it failed","anyOf":[{"type":"object","properties":{"userReservesData":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"underlyingAsset":{"type":"string"},"scaledATokenBalance":{"type":"string"},"usageAsCollateralEnabledOnUser":{"type":"boolean"},"scaledVariableDebt":{"type":"string"},"reserve":{"type":"object","properties":{"originalId":{"type":"number"},"id":{"type":"string"},"symbol":{"type":"string"},"name":{"type":"string"},"decimals":{"type":"number"},"underlyingAsset":{"type":"string"},"usageAsCollateralEnabled":{"type":"boolean"},"reserveFactor":{"type":"string"},"baseLTVasCollateral":{"type":"string"},"liquidityIndex":{"type":"string"},"reserveLiquidationThreshold":{"type":"string"},"reserveLiquidationBonus":{"type":"string"},"variableBorrowIndex":{"type":"string"},"variableBorrowRate":{"type":"string"},"availableLiquidity":{"type":"string"},"liquidityRate":{"type":"string"},"totalScaledVariableDebt":{"type":"string"},"lastUpdateTimestamp":{"type":"number"},"borrowCap":{"type":"string"},"supplyCap":{"type":"string"},"debtCeiling":{"type":"string"},"debtCeilingDecimals":{"type":"number"},"isolationModeTotalDebt":{"type":"string"},"virtualUnderlyingBalance":{"type":"string"},"deficit":{"type":"string"},"formattedBaseLTVasCollateral":{"type":"string"},"formattedReserveLiquidationThreshold":{"type":"string"},"formattedReserveLiquidationBonus":{"type":"string"},"formattedAvailableLiquidity":{"type":"string"},"totalDebt":{"type":"string"},"totalVariableDebt":{"type":"string"},"totalLiquidity":{"type":"string"},"borrowUsageRatio":{"type":"string"},"supplyUsageRatio":{"type":"string"},"supplyAPY":{"type":"string"},"variableBorrowAPY":{"type":"string"},"unborrowedLiquidity":{"type":"string"},"supplyAPR":{"type":"string"},"variableBorrowAPR":{"type":"string"},"isIsolated":{"type":"boolean"},"isolationModeTotalDebtUSD":{"type":"string"},"availableDebtCeilingUSD":{"type":"string"},"debtCeilingUSD":{"type":"string"},"eModes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"eMode":{"type":"object","properties":{"ltv":{"type":"string"},"liquidationThreshold":{"type":"string"},"liquidationBonus":{"type":"string"},"collateralBitmap":{"type":"string"},"label":{"type":"string"},"borrowableBitmap":{"type":"string"},"formattedLtv":{"type":"string"},"formattedLiquidationThreshold":{"type":"string"},"formattedLiquidationBonus":{"type":"string"},"isolated":{"type":"boolean"},"ltvzeroBitmap":{"type":"string"}},"required":["ltv","liquidationThreshold","liquidationBonus","collateralBitmap","label","borrowableBitmap","formattedLtv","formattedLiquidationThreshold","formattedLiquidationBonus","isolated","ltvzeroBitmap"],"additionalProperties":false},"collateralEnabled":{"type":"boolean"},"borrowingEnabled":{"type":"boolean"},"ltvzeroEnabled":{"type":"boolean"}},"required":["id","eMode","collateralEnabled","borrowingEnabled","ltvzeroEnabled"],"additionalProperties":false}},"totalLiquidityUSD":{"type":"string"},"availableLiquidityUSD":{"type":"string"},"totalDebtUSD":{"type":"string"},"totalVariableDebtUSD":{"type":"string"},"borrowCapUSD":{"type":"string"},"supplyCapUSD":{"type":"string"},"priceInMarketReferenceCurrency":{"type":"string"},"formattedPriceInMarketReferenceCurrency":{"type":"string"},"priceInUSD":{"type":"string"},"borrowingEnabled":{"type":"boolean"},"isActive":{"type":"boolean"},"isFrozen":{"type":"boolean"},"aTokenAddress":{"type":"string"},"variableDebtTokenAddress":{"type":"string"},"interestRateStrategyAddress":{"type":"string"},"priceOracle":{"type":"string"},"variableRateSlope1":{"type":"string"},"variableRateSlope2":{"type":"string"},"baseVariableBorrowRate":{"type":"string"},"optimalUsageRatio":{"type":"string"},"isPaused":{"type":"boolean"},"isSiloedBorrowing":{"type":"boolean"},"accruedToTreasury":{"type":"string"},"flashLoanEnabled":{"type":"boolean"},"borrowableInIsolation":{"type":"boolean"},"stableBorrowRate":{"type":"string"},"stableBorrowAPR":{"type":"string"},"aIncentivesData":{"type":"array","items":{"type":"object","properties":{"incentiveAPR":{"type":"string"},"rewardTokenAddress":{"type":"string"},"rewardTokenSymbol":{"type":"string"}},"required":["incentiveAPR","rewardTokenAddress","rewardTokenSymbol"],"additionalProperties":false}},"vIncentivesData":{"type":"array","items":{"type":"object","properties":{"incentiveAPR":{"type":"string"},"rewardTokenAddress":{"type":"string"},"rewardTokenSymbol":{"type":"string"}},"required":["incentiveAPR","rewardTokenAddress","rewardTokenSymbol"],"additionalProperties":false}}},"required":["originalId","id","symbol","name","decimals","underlyingAsset","usageAsCollateralEnabled","reserveFactor","baseLTVasCollateral","liquidityIndex","reserveLiquidationThreshold","reserveLiquidationBonus","variableBorrowIndex","variableBorrowRate","availableLiquidity","liquidityRate","totalScaledVariableDebt","lastUpdateTimestamp","borrowCap","supplyCap","debtCeiling","debtCeilingDecimals","isolationModeTotalDebt","virtualUnderlyingBalance","deficit","formattedBaseLTVasCollateral","formattedReserveLiquidationThreshold","formattedReserveLiquidationBonus","formattedAvailableLiquidity","totalDebt","totalVariableDebt","totalLiquidity","borrowUsageRatio","supplyUsageRatio","supplyAPY","variableBorrowAPY","unborrowedLiquidity","supplyAPR","variableBorrowAPR","isIsolated","isolationModeTotalDebtUSD","availableDebtCeilingUSD","debtCeilingUSD","eModes","totalLiquidityUSD","availableLiquidityUSD","totalDebtUSD","totalVariableDebtUSD","borrowCapUSD","supplyCapUSD","priceInMarketReferenceCurrency","formattedPriceInMarketReferenceCurrency","priceInUSD"],"additionalProperties":false},"underlyingBalance":{"type":"string"},"underlyingBalanceMarketReferenceCurrency":{"type":"string"},"underlyingBalanceUSD":{"type":"string"},"variableBorrows":{"type":"string"},"variableBorrowsMarketReferenceCurrency":{"type":"string"},"variableBorrowsUSD":{"type":"string"},"totalBorrows":{"type":"string"},"totalBorrowsMarketReferenceCurrency":{"type":"string"},"totalBorrowsUSD":{"type":"string"},"principalStableDebt":{"type":"string"},"stableBorrowRate":{"type":"string"},"stableBorrowLastUpdateTimestamp":{"type":"number"}},"required":["id","underlyingAsset","scaledATokenBalance","usageAsCollateralEnabledOnUser","scaledVariableDebt","reserve","underlyingBalance","underlyingBalanceMarketReferenceCurrency","underlyingBalanceUSD","variableBorrows","variableBorrowsMarketReferenceCurrency","variableBorrowsUSD","totalBorrows","totalBorrowsMarketReferenceCurrency","totalBorrowsUSD"],"additionalProperties":false},"description":"User reserve positions"},"totalLiquidityMarketReferenceCurrency":{"type":"string"},"totalLiquidityUSD":{"type":"string"},"totalCollateralMarketReferenceCurrency":{"type":"string"},"totalCollateralUSD":{"type":"string"},"totalBorrowsMarketReferenceCurrency":{"type":"string"},"totalBorrowsUSD":{"type":"string"},"netWorthUSD":{"type":"string"},"availableBorrowsMarketReferenceCurrency":{"type":"string"},"availableBorrowsUSD":{"type":"string"},"currentLoanToValue":{"type":"string"},"currentLiquidationThreshold":{"type":"string"},"healthFactor":{"type":"string"},"userEmodeCategoryId":{"type":"number"},"isInIsolationMode":{"type":"boolean"},"isolatedReserve":{"description":"The isolated collateral reserve, present only in isolation mode","type":"object","properties":{"originalId":{"type":"number"},"id":{"type":"string"},"symbol":{"type":"string"},"name":{"type":"string"},"decimals":{"type":"number"},"underlyingAsset":{"type":"string"},"usageAsCollateralEnabled":{"type":"boolean"},"reserveFactor":{"type":"string"},"baseLTVasCollateral":{"type":"string"},"liquidityIndex":{"type":"string"},"reserveLiquidationThreshold":{"type":"string"},"reserveLiquidationBonus":{"type":"string"},"variableBorrowIndex":{"type":"string"},"variableBorrowRate":{"type":"string"},"availableLiquidity":{"type":"string"},"liquidityRate":{"type":"string"},"totalScaledVariableDebt":{"type":"string"},"lastUpdateTimestamp":{"type":"number"},"borrowCap":{"type":"string"},"supplyCap":{"type":"string"},"debtCeiling":{"type":"string"},"debtCeilingDecimals":{"type":"number"},"isolationModeTotalDebt":{"type":"string"},"virtualUnderlyingBalance":{"type":"string"},"deficit":{"type":"string"},"formattedBaseLTVasCollateral":{"type":"string"},"formattedReserveLiquidationThreshold":{"type":"string"},"formattedReserveLiquidationBonus":{"type":"string"},"formattedAvailableLiquidity":{"type":"string"},"totalDebt":{"type":"string"},"totalVariableDebt":{"type":"string"},"totalLiquidity":{"type":"string"},"borrowUsageRatio":{"type":"string"},"supplyUsageRatio":{"type":"string"},"supplyAPY":{"type":"string"},"variableBorrowAPY":{"type":"string"},"unborrowedLiquidity":{"type":"string"},"supplyAPR":{"type":"string"},"variableBorrowAPR":{"type":"string"},"isIsolated":{"type":"boolean"},"isolationModeTotalDebtUSD":{"type":"string"},"availableDebtCeilingUSD":{"type":"string"},"debtCeilingUSD":{"type":"string"},"eModes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"eMode":{"type":"object","properties":{"ltv":{"type":"string"},"liquidationThreshold":{"type":"string"},"liquidationBonus":{"type":"string"},"collateralBitmap":{"type":"string"},"label":{"type":"string"},"borrowableBitmap":{"type":"string"},"formattedLtv":{"type":"string"},"formattedLiquidationThreshold":{"type":"string"},"formattedLiquidationBonus":{"type":"string"},"isolated":{"type":"boolean"},"ltvzeroBitmap":{"type":"string"}},"required":["ltv","liquidationThreshold","liquidationBonus","collateralBitmap","label","borrowableBitmap","formattedLtv","formattedLiquidationThreshold","formattedLiquidationBonus","isolated","ltvzeroBitmap"],"additionalProperties":false},"collateralEnabled":{"type":"boolean"},"borrowingEnabled":{"type":"boolean"},"ltvzeroEnabled":{"type":"boolean"}},"required":["id","eMode","collateralEnabled","borrowingEnabled","ltvzeroEnabled"],"additionalProperties":false}},"totalLiquidityUSD":{"type":"string"},"availableLiquidityUSD":{"type":"string"},"totalDebtUSD":{"type":"string"},"totalVariableDebtUSD":{"type":"string"},"borrowCapUSD":{"type":"string"},"supplyCapUSD":{"type":"string"},"priceInMarketReferenceCurrency":{"type":"string"},"formattedPriceInMarketReferenceCurrency":{"type":"string"},"priceInUSD":{"type":"string"},"borrowingEnabled":{"type":"boolean"},"isActive":{"type":"boolean"},"isFrozen":{"type":"boolean"},"aTokenAddress":{"type":"string"},"variableDebtTokenAddress":{"type":"string"},"interestRateStrategyAddress":{"type":"string"},"priceOracle":{"type":"string"},"variableRateSlope1":{"type":"string"},"variableRateSlope2":{"type":"string"},"baseVariableBorrowRate":{"type":"string"},"optimalUsageRatio":{"type":"string"},"isPaused":{"type":"boolean"},"isSiloedBorrowing":{"type":"boolean"},"accruedToTreasury":{"type":"string"},"flashLoanEnabled":{"type":"boolean"},"borrowableInIsolation":{"type":"boolean"},"stableBorrowRate":{"type":"string"},"stableBorrowAPR":{"type":"string"},"aIncentivesData":{"type":"array","items":{"type":"object","properties":{"incentiveAPR":{"type":"string"},"rewardTokenAddress":{"type":"string"},"rewardTokenSymbol":{"type":"string"}},"required":["incentiveAPR","rewardTokenAddress","rewardTokenSymbol"],"additionalProperties":false}},"vIncentivesData":{"type":"array","items":{"type":"object","properties":{"incentiveAPR":{"type":"string"},"rewardTokenAddress":{"type":"string"},"rewardTokenSymbol":{"type":"string"}},"required":["incentiveAPR","rewardTokenAddress","rewardTokenSymbol"],"additionalProperties":false}}},"required":["originalId","id","symbol","name","decimals","underlyingAsset","usageAsCollateralEnabled","reserveFactor","baseLTVasCollateral","liquidityIndex","reserveLiquidationThreshold","reserveLiquidationBonus","variableBorrowIndex","variableBorrowRate","availableLiquidity","liquidityRate","totalScaledVariableDebt","lastUpdateTimestamp","borrowCap","supplyCap","debtCeiling","debtCeilingDecimals","isolationModeTotalDebt","virtualUnderlyingBalance","deficit","formattedBaseLTVasCollateral","formattedReserveLiquidationThreshold","formattedReserveLiquidationBonus","formattedAvailableLiquidity","totalDebt","totalVariableDebt","totalLiquidity","borrowUsageRatio","supplyUsageRatio","supplyAPY","variableBorrowAPY","unborrowedLiquidity","supplyAPR","variableBorrowAPR","isIsolated","isolationModeTotalDebtUSD","availableDebtCeilingUSD","debtCeilingUSD","eModes","totalLiquidityUSD","availableLiquidityUSD","totalDebtUSD","totalVariableDebtUSD","borrowCapUSD","supplyCapUSD","priceInMarketReferenceCurrency","formattedPriceInMarketReferenceCurrency","priceInUSD"],"additionalProperties":false},"calculatedUserIncentives":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"incentiveControllerAddress":{"type":"string"},"rewardTokenSymbol":{"type":"string"},"rewardPriceFeed":{"type":"string"},"rewardTokenDecimals":{"type":"number"},"claimableRewards":{"type":"string","description":"BigNumber serialized to string"},"assets":{"type":"array","items":{"type":"string"}}},"required":["incentiveControllerAddress","rewardTokenSymbol","rewardPriceFeed","rewardTokenDecimals","claimableRewards","assets"],"additionalProperties":false}}},"required":["userReservesData","totalLiquidityMarketReferenceCurrency","totalLiquidityUSD","totalCollateralMarketReferenceCurrency","totalCollateralUSD","totalBorrowsMarketReferenceCurrency","totalBorrowsUSD","netWorthUSD","availableBorrowsMarketReferenceCurrency","availableBorrowsUSD","currentLoanToValue","currentLiquidationThreshold","healthFactor","userEmodeCategoryId","isInIsolationMode","calculatedUserIncentives"],"additionalProperties":false},{"type":"object","properties":{"error":{"type":"string","description":"Why this Aave version could not answer"}},"required":["error"],"additionalProperties":false}]},"v4":{"description":"Aave V4 answer, or why it failed","anyOf":[{"type":"object","properties":{"positions":{"type":"array","items":{"type":"object","properties":{"spoke":{"type":"string"},"spokeAddress":{"type":"string"},"healthFactor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Health factor of the spoke position (null without debt)"},"totalCollateralUSD":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"USD value rounded to cents (null when not available)"},"totalSuppliedUSD":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"USD value rounded to cents (null when not available)"},"totalBorrowsUSD":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"USD value rounded to cents (null when not available)"},"availableBorrowsUSD":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"USD value rounded to cents (null when not available)"},"maxBorrowingPowerUSD":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"USD value rounded to cents (null when not available)"},"netWorthUSD":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"USD value rounded to cents (null when not available)"},"averageCollateralFactor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Percentage, e.g. \"4.18%\" (null when not available)"},"riskPremium":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Percentage, e.g. \"4.18%\" (null when not available)"},"liquidationPriceUSD":{"anyOf":[{"type":"string"},{"type":"null"}]},"netAPY":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Percentage, e.g. \"4.18%\" (null when not available)"},"supplies":{"type":"array","items":{"type":"object","properties":{"reserveId":{"type":"string","description":"Reserve id, the one withdrawV4 and setUsageAsCollateralV4 take"},"asset":{"type":"string","description":"Token symbol"},"assetAddress":{"type":"string"},"hub":{"type":"string"},"balance":{"type":"string"},"balanceUSD":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"USD value rounded to cents (null when not available)"},"withdrawable":{"type":"string"},"supplyAPY":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Percentage, e.g. \"4.18%\" (null when not available)"},"usageAsCollateralEnabled":{"type":"boolean"},"collateralFactor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Percentage, e.g. \"4.18%\" (null when not available)"}},"required":["reserveId","asset","assetAddress","hub","balance","balanceUSD","withdrawable","supplyAPY","usageAsCollateralEnabled","collateralFactor"],"additionalProperties":false}},"borrows":{"type":"array","items":{"type":"object","properties":{"reserveId":{"type":"string","description":"Reserve id, the one repayV4 takes"},"asset":{"type":"string","description":"Token symbol"},"assetAddress":{"type":"string"},"hub":{"type":"string"},"debt":{"type":"string"},"debtUSD":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"USD value rounded to cents (null when not available)"},"principal":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Borrowed principal, from Aave's API (null when the API has not indexed the borrow yet)"},"interest":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Accrued interest, from Aave's API (null when the API has not indexed the borrow yet)"},"borrowAPY":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Percentage, e.g. \"4.18%\" (null when not available)"}},"required":["reserveId","asset","assetAddress","hub","debt","debtUSD","principal","interest","borrowAPY"],"additionalProperties":false}}},"required":["spoke","spokeAddress","healthFactor","totalCollateralUSD","totalSuppliedUSD","totalBorrowsUSD","availableBorrowsUSD","maxBorrowingPowerUSD","netWorthUSD","averageCollateralFactor","riskPremium","liquidationPriceUSD","netAPY","supplies","borrows"],"additionalProperties":false},"description":"One position per spoke"},"lowestHealthFactor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["positions","lowestHealthFactor"],"additionalProperties":false},{"type":"object","properties":{"error":{"type":"string","description":"Why this Aave version could not answer"}},"required":["error"],"additionalProperties":false}]}},"additionalProperties":false,"description":"Answers of every Aave version, keyed by version"}]}},"required":["project","operation","data"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"error":{"type":"string","description":"Error message"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"liquidationCallV3","description":"Aave V3 only. Liquidate an undercollateralized position","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","arbitrum","avalanche","optimism","polygon","base","bsc","plasma","monad","ink"]},"liquidatedUser":{"type":"string","description":"The address of the user being liquidated"},"debtAsset":{"type":"string","description":"The address of the debt asset"},"collateralAsset":{"type":"string","description":"The address of the collateral asset to receive"},"debtToCover":{"type":"string","description":"The amount of debt to cover"},"receiveAToken":{"type":"boolean","description":"Whether to receive aToken instead of underlying asset"},"userAddress":{"type":"string","description":"The EVM wallet address of the liquidator"}},"required":["chainName","liquidatedUser","debtAsset","collateralAsset","debtToCover","receiveAToken","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"note":{"type":"string","description":"Human-readable summary of the action"},"transactions":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"number","description":"EVM chain ID"},"transaction":{"type":"object","properties":{"target":{"type":"string","description":"Target contract address"},"data":{"type":"string","description":"ABI-encoded calldata"},"value":{"description":"Native token value in wei","type":"string"}},"required":["target","data"],"additionalProperties":false,"description":"EVM transaction parameters"}},"required":["chainId","transaction"],"additionalProperties":false},"description":"EVM transactions to sign and broadcast"}},"required":["project","operation","transactions"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"error":{"type":"string","description":"Error message"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"repayV3","description":"Aave V3 only. Repay borrowed assets to the Aave V3 protocol. If the user did not say which Aave version and the chain has both Aave V3 and V4 (ethereum, avalanche, base), you must ask them which version before calling, unless they asked for the best rate: then compare both versions (getReservesList with version null) and use the better one.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","arbitrum","avalanche","optimism","polygon","base","bsc","plasma","monad","ink"]},"assetAddress":{"type":"string","description":"The address of the borrowed asset to repay"},"amount":{"type":"string","description":"The amount to repay in decimal format. If the amount is \"-1\", the user will repay all their debt."},"interestRateMode":{"type":"string","enum":["None","Stable","Variable"],"description":"Interest rate mode"},"userAddress":{"type":"string","description":"The EVM wallet address of the user"}},"required":["chainName","assetAddress","amount","interestRateMode","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"note":{"type":"string","description":"Human-readable summary of the action"},"transactions":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"number","description":"EVM chain ID"},"transaction":{"type":"object","properties":{"target":{"type":"string","description":"Target contract address"},"data":{"type":"string","description":"ABI-encoded calldata"},"value":{"description":"Native token value in wei","type":"string"}},"required":["target","data"],"additionalProperties":false,"description":"EVM transaction parameters"}},"required":["chainId","transaction"],"additionalProperties":false},"description":"EVM transactions to sign and broadcast"}},"required":["project","operation","transactions"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"error":{"type":"string","description":"Error message"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"repayWithATokensV3","description":"Aave V3 only. Repay borrowed assets using aTokens without requiring approval","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","arbitrum","avalanche","optimism","polygon","base","bsc","plasma","monad","ink"]},"assetAddress":{"type":"string","description":"The address of the borrowed asset to repay"},"amount":{"type":"string","description":"The amount to repay in decimal format. If the amount is \"-1\", the user will repay all their debt."},"interestRateMode":{"type":"string","enum":["None","Stable","Variable"],"description":"Interest rate mode"},"userAddress":{"type":"string","description":"The EVM wallet address of the user"}},"required":["chainName","assetAddress","amount","interestRateMode","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"note":{"type":"string","description":"Human-readable summary of the action"},"transactions":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"number","description":"EVM chain ID"},"transaction":{"type":"object","properties":{"target":{"type":"string","description":"Target contract address"},"data":{"type":"string","description":"ABI-encoded calldata"},"value":{"description":"Native token value in wei","type":"string"}},"required":["target","data"],"additionalProperties":false,"description":"EVM transaction parameters"}},"required":["chainId","transaction"],"additionalProperties":false},"description":"EVM transactions to sign and broadcast"}},"required":["project","operation","transactions"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"error":{"type":"string","description":"Error message"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"setEModeCategoryV3","description":"Aave V3 only. Set the E-Mode category for the user (0 = disabled, 1 = stablecoins, 2 = ETH)","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","arbitrum","avalanche","optimism","polygon","base","bsc","plasma","monad","ink"]},"categoryId":{"type":"number","description":"The E-Mode category ID to set"},"userAddress":{"type":"string","description":"The EVM wallet address of the user"}},"required":["chainName","categoryId","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"note":{"type":"string","description":"Human-readable summary of the action"},"transactions":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"number","description":"EVM chain ID"},"transaction":{"type":"object","properties":{"target":{"type":"string","description":"Target contract address"},"data":{"type":"string","description":"ABI-encoded calldata"},"value":{"description":"Native token value in wei","type":"string"}},"required":["target","data"],"additionalProperties":false,"description":"EVM transaction parameters"}},"required":["chainId","transaction"],"additionalProperties":false},"description":"EVM transactions to sign and broadcast"}},"required":["project","operation","transactions"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"error":{"type":"string","description":"Error message"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"setUsageAsCollateralV3","description":"Aave V3 only. Enable or disable an asset to be used as collateral. If the user did not say which Aave version and the chain has both Aave V3 and V4 (ethereum, avalanche, base), you must ask them which version before calling, unless they asked for the best rate: then compare both versions (getReservesList with version null) and use the better one.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","arbitrum","avalanche","optimism","polygon","base","bsc","plasma","monad","ink"]},"assetAddress":{"type":"string","description":"The address of the asset"},"usageAsCollateral":{"type":"boolean","description":"Whether to use the asset as collateral"},"userAddress":{"type":"string","description":"The EVM wallet address of the user"}},"required":["chainName","assetAddress","usageAsCollateral","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"note":{"type":"string","description":"Human-readable summary of the action"},"transactions":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"number","description":"EVM chain ID"},"transaction":{"type":"object","properties":{"target":{"type":"string","description":"Target contract address"},"data":{"type":"string","description":"ABI-encoded calldata"},"value":{"description":"Native token value in wei","type":"string"}},"required":["target","data"],"additionalProperties":false,"description":"EVM transaction parameters"}},"required":["chainId","transaction"],"additionalProperties":false},"description":"EVM transactions to sign and broadcast"}},"required":["project","operation","transactions"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"error":{"type":"string","description":"Error message"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"supplyV3","description":"Aave V3 only. Supply assets to the Aave V3 protocol lending pool. If the user did not say which Aave version and the chain has both Aave V3 and V4 (ethereum, avalanche, base), you must ask them which version before calling, unless they asked for the best rate: then compare both versions (getReservesList with version null) and use the better one.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","arbitrum","avalanche","optimism","polygon","base","bsc","plasma","monad","ink"]},"assetAddress":{"type":"string","description":"The address of the asset to supply. Native asset address can be specified directly and it will be wrapped automatically"},"amount":{"type":"string","description":"The amount to supply in decimal format"},"userAddress":{"type":"string","description":"The EVM wallet address of the user"}},"required":["chainName","assetAddress","amount","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"note":{"type":"string","description":"Human-readable summary of the action"},"transactions":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"number","description":"EVM chain ID"},"transaction":{"type":"object","properties":{"target":{"type":"string","description":"Target contract address"},"data":{"type":"string","description":"ABI-encoded calldata"},"value":{"description":"Native token value in wei","type":"string"}},"required":["target","data"],"additionalProperties":false,"description":"EVM transaction parameters"}},"required":["chainId","transaction"],"additionalProperties":false},"description":"EVM transactions to sign and broadcast"}},"required":["project","operation","transactions"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"error":{"type":"string","description":"Error message"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"swapBorrowRateModeV3","description":"Aave V3 only. Switch between stable and variable borrow rate modes","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","arbitrum","avalanche","optimism","polygon","base","bsc","plasma","monad","ink"]},"assetAddress":{"type":"string","description":"The address of the borrowed asset"},"interestRateMode":{"type":"string","enum":["None","Stable","Variable"],"description":"Interest rate mode"},"userAddress":{"type":"string","description":"The EVM wallet address of the user"}},"required":["chainName","assetAddress","interestRateMode","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"note":{"type":"string","description":"Human-readable summary of the action"},"transactions":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"number","description":"EVM chain ID"},"transaction":{"type":"object","properties":{"target":{"type":"string","description":"Target contract address"},"data":{"type":"string","description":"ABI-encoded calldata"},"value":{"description":"Native token value in wei","type":"string"}},"required":["target","data"],"additionalProperties":false,"description":"EVM transaction parameters"}},"required":["chainId","transaction"],"additionalProperties":false},"description":"EVM transactions to sign and broadcast"}},"required":["project","operation","transactions"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"error":{"type":"string","description":"Error message"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"withdrawV3","description":"Aave V3 only. Withdraw supplied assets from the Aave V3 protocol. If the user did not say which Aave version and the chain has both Aave V3 and V4 (ethereum, avalanche, base), you must ask them which version before calling, unless they asked for the best rate: then compare both versions (getReservesList with version null) and use the better one.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","arbitrum","avalanche","optimism","polygon","base","bsc","plasma","monad","ink"]},"assetAddress":{"type":"string","description":"The address of the asset to withdraw"},"amount":{"type":"string","description":"The amount to withdraw in decimal format. If the amount is '-1', the user will withdraw all their balance."},"userAddress":{"type":"string","description":"The EVM wallet address of the user"}},"required":["chainName","assetAddress","amount","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"note":{"type":"string","description":"Human-readable summary of the action"},"transactions":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"number","description":"EVM chain ID"},"transaction":{"type":"object","properties":{"target":{"type":"string","description":"Target contract address"},"data":{"type":"string","description":"ABI-encoded calldata"},"value":{"description":"Native token value in wei","type":"string"}},"required":["target","data"],"additionalProperties":false,"description":"EVM transaction parameters"}},"required":["chainId","transaction"],"additionalProperties":false},"description":"EVM transactions to sign and broadcast"}},"required":["project","operation","transactions"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"error":{"type":"string","description":"Error message"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"getReservesList","description":"Get all Aave reserves on a chain with their symbols, token addresses, supply APYs, borrow APYs and available liquidity. V4 rows also carry the reserve id, spoke, hub, collateral factor and status; one token can be listed on several V4 spokes, each with its own reserve id. With version null on a chain that has both versions, V3 and V4 reserves come back as one list where every row has a version field.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","arbitrum","avalanche","optimism","polygon","base","bsc","plasma","monad","ink","arc"]},"version":{"anyOf":[{"type":"string","enum":["v3","v4"]},{"type":"null"}],"description":"Aave version: \"v3\" or \"v4\". Pass null to get data from every Aave version deployed on the chain."}},"required":["chainName","version"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"note":{"type":"string","description":"Human-readable summary of the action"},"data":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"version":{"type":"string","const":"v3","description":"Aave version of the reserve"},"symbol":{"type":"string","description":"Token symbol"},"tokenAddress":{"type":"string","description":"Token contract address"},"supplyAPY":{"type":"string","description":"Supply APY, e.g. \"4.18%\" (\"N/A\" when the pool data could not be loaded)"},"borrowAPY":{"type":"string","description":"Variable borrow APY, e.g. \"4.18%\" (\"N/A\" when the pool data could not be loaded)"},"availableLiquidityUSD":{"type":"string","description":"Available liquidity in USD as the Aave app shows it, e.g. \"$31.15M\" (\"N/A\" when the pool data could not be loaded)"}},"required":["version","symbol","tokenAddress","supplyAPY","borrowAPY","availableLiquidityUSD"],"additionalProperties":false},{"type":"object","properties":{"version":{"type":"string","const":"v4","description":"Aave version of the reserve"},"reserveId":{"type":"string","description":"Reserve id, the one the V4 tools take: an opaque base64 string, never an address"},"spoke":{"type":"string","description":"Name of the spoke (lending market) the reserve belongs to"},"hub":{"type":"string","description":"Name of the hub that lends the reserve its liquidity"},"symbol":{"type":"string","description":"Token symbol"},"tokenAddress":{"type":"string","description":"Token contract address"},"supplyAPY":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Percentage, e.g. \"4.18%\" (null when not available)"},"borrowAPY":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Percentage, e.g. \"4.18%\" (null when not available)"},"collateralFactor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Percentage, e.g. \"4.18%\" (null when not available)"},"availableToBorrow":{"type":"string","description":"Amount left to borrow in human-readable decimal format (e.g. '1.5')"},"status":{"type":"string","description":"active, frozen, paused or inactive"},"canSupply":{"type":"boolean"},"canBorrow":{"type":"boolean"},"canUseAsCollateral":{"type":"boolean"},"isWrappedNativeToken":{"type":"boolean","description":"true for the wrapped native token's reserve, the one useNativeToken works with"}},"required":["version","reserveId","spoke","hub","symbol","tokenAddress","supplyAPY","borrowAPY","collateralFactor","availableToBorrow","status","canSupply","canBorrow","canUseAsCollateral"],"additionalProperties":false},{"type":"object","properties":{"error":{"type":"string","description":"Why this Aave version could not answer"},"version":{"type":"string","enum":["v3","v4"],"description":"Aave version that could not be listed"}},"required":["error","version"],"additionalProperties":false}]}}},"required":["project","operation","data"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"error":{"type":"string","description":"Error message"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"getUserWalletBalancesForLendingPool","description":"Get user's non-zero wallet balances for all assets listed on Aave for specific chains.","inputSchema":{"type":"object","properties":{"chainNames":{"type":"array","items":{"type":"string","enum":["ethereum","arbitrum","avalanche","optimism","polygon","base","bsc","plasma","monad","ink","arc"]},"description":"Array of chain names to process."},"version":{"anyOf":[{"type":"string","enum":["v3","v4"]},{"type":"null"}],"description":"Aave version: \"v3\" or \"v4\". Pass null to get data from every Aave version deployed on the chain."},"userAddress":{"type":"string","description":"The EVM wallet address of the user"}},"required":["chainNames","version","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"note":{"type":"string","description":"Human-readable summary of the action"},"data":{"anyOf":[{"anyOf":[{"type":"array","items":{"type":"object","properties":{"symbol":{"type":"string"},"name":{"type":"string"},"decimals":{"type":"number"},"address":{"type":"string"},"balanceInWei":{"type":"string","description":"Token balance in wei"}},"required":["symbol","name","decimals","address","balanceInWei"],"additionalProperties":false}},{"type":"object","properties":{"chains":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"array","items":{"type":"object","properties":{"symbol":{"type":"string"},"name":{"type":"string"},"decimals":{"type":"number"},"address":{"type":"string"},"balanceInWei":{"type":"string","description":"Token balance in wei"}},"required":["symbol","name","decimals","address","balanceInWei"],"additionalProperties":false}}},"summary":{"type":"object","properties":{"totalChains":{"type":"number","description":"Total number of chains requested"},"successfulChains":{"type":"number","description":"Number of chains that returned data"},"failedChains":{"type":"number","description":"Number of chains that failed"},"errors":{"type":"array","items":{"type":"string"},"description":"Why each failed chain failed (Aave V4)"}},"required":["totalChains","successfulChains","failedChains"],"additionalProperties":false}},"required":["chains","summary"],"additionalProperties":false}]},{"type":"object","properties":{"chains":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"array","items":{"type":"object","properties":{"symbol":{"type":"string"},"name":{"type":"string"},"decimals":{"type":"number"},"address":{"type":"string"},"balance":{"type":"string","description":"Balance in human-readable decimal format (e.g. '1.5')"},"balanceInWei":{"type":"string","description":"Token balance in wei"},"balanceUSD":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"USD value rounded to cents (null when not available)"}},"required":["symbol","name","decimals","address","balance","balanceInWei","balanceUSD"],"additionalProperties":false}}},"summary":{"type":"object","properties":{"totalChains":{"type":"number","description":"Total number of chains requested"},"successfulChains":{"type":"number","description":"Number of chains that returned data"},"failedChains":{"type":"number","description":"Number of chains that failed"},"errors":{"type":"array","items":{"type":"string"},"description":"Why each failed chain failed (Aave V4)"}},"required":["totalChains","successfulChains","failedChains"],"additionalProperties":false}},"required":["chains","summary"],"additionalProperties":false},{"type":"object","properties":{"v3":{"description":"Aave V3 answer, or why it failed","anyOf":[{"anyOf":[{"type":"array","items":{"type":"object","properties":{"symbol":{"type":"string"},"name":{"type":"string"},"decimals":{"type":"number"},"address":{"type":"string"},"balanceInWei":{"type":"string","description":"Token balance in wei"}},"required":["symbol","name","decimals","address","balanceInWei"],"additionalProperties":false}},{"type":"object","properties":{"chains":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"array","items":{"type":"object","properties":{"symbol":{"type":"string"},"name":{"type":"string"},"decimals":{"type":"number"},"address":{"type":"string"},"balanceInWei":{"type":"string","description":"Token balance in wei"}},"required":["symbol","name","decimals","address","balanceInWei"],"additionalProperties":false}}},"summary":{"type":"object","properties":{"totalChains":{"type":"number","description":"Total number of chains requested"},"successfulChains":{"type":"number","description":"Number of chains that returned data"},"failedChains":{"type":"number","description":"Number of chains that failed"},"errors":{"type":"array","items":{"type":"string"},"description":"Why each failed chain failed (Aave V4)"}},"required":["totalChains","successfulChains","failedChains"],"additionalProperties":false}},"required":["chains","summary"],"additionalProperties":false}]},{"type":"object","properties":{"error":{"type":"string","description":"Why this Aave version could not answer"}},"required":["error"],"additionalProperties":false}]},"v4":{"description":"Aave V4 answer, or why it failed","anyOf":[{"type":"object","properties":{"chains":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"array","items":{"type":"object","properties":{"symbol":{"type":"string"},"name":{"type":"string"},"decimals":{"type":"number"},"address":{"type":"string"},"balance":{"type":"string","description":"Balance in human-readable decimal format (e.g. '1.5')"},"balanceInWei":{"type":"string","description":"Token balance in wei"},"balanceUSD":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"USD value rounded to cents (null when not available)"}},"required":["symbol","name","decimals","address","balance","balanceInWei","balanceUSD"],"additionalProperties":false}}},"summary":{"type":"object","properties":{"totalChains":{"type":"number","description":"Total number of chains requested"},"successfulChains":{"type":"number","description":"Number of chains that returned data"},"failedChains":{"type":"number","description":"Number of chains that failed"},"errors":{"type":"array","items":{"type":"string"},"description":"Why each failed chain failed (Aave V4)"}},"required":["totalChains","successfulChains","failedChains"],"additionalProperties":false}},"required":["chains","summary"],"additionalProperties":false},{"type":"object","properties":{"error":{"type":"string","description":"Why this Aave version could not answer"}},"required":["error"],"additionalProperties":false}]}},"additionalProperties":false,"description":"Answers of every Aave version, keyed by version"}]}},"required":["project","operation","data"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"error":{"type":"string","description":"Error message"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"errorCodeToText","description":"Get human-readable description of Aave V3 error code","inputSchema":{"type":"object","properties":{"errorCode":{"type":"string","description":"Error code number as string (e.g. \"26\" for INVALID_AMOUNT)"}},"required":["errorCode"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"note":{"type":"string","description":"Human-readable summary of the action"},"data":{"type":"object","properties":{"code":{"type":"string","description":"Aave error code number"},"name":{"type":"string","description":"Error code name"},"description":{"type":"string","description":"Human-readable error description"}},"required":["code","name","description"],"additionalProperties":false}},"required":["project","operation","data"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"error":{"type":"string","description":"Error message"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"getUserActiveLoans","description":"Get list of user's active Aave borrowed positions with borrowed amounts and interest rates. V4 loans also show their spoke, hub and reserve id.","inputSchema":{"type":"object","properties":{"chainNames":{"type":"array","items":{"type":"string","enum":["ethereum","arbitrum","avalanche","optimism","polygon","base","bsc","plasma","monad","ink","arc"]},"description":"Array of chain names to process."},"version":{"anyOf":[{"type":"string","enum":["v3","v4"]},{"type":"null"}],"description":"Aave version: \"v3\" or \"v4\". Pass null to get data from every Aave version deployed on the chain."},"userAddress":{"type":"string","description":"The EVM wallet address of the user"}},"required":["chainNames","version","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"note":{"type":"string","description":"Human-readable summary of the action"},"data":{"anyOf":[{"type":"object","properties":{"chains":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"activeLoans":{"type":"array","items":{"type":"object","properties":{"asset":{"type":"string"},"variableDebt":{"type":"string"},"variableDebtInUSD":{"type":"string"},"stableDebt":{"type":"string"},"variableBorrowAPY":{"type":"string","description":"Variable borrow APY, e.g. \"4.18%\""},"variableBorrowRate":{"type":"string"},"stableBorrowRate":{"type":"string"}},"required":["asset","variableDebt","variableDebtInUSD","stableDebt","variableBorrowAPY","variableBorrowRate","stableBorrowRate"],"additionalProperties":false}},"totalBorrowsUSD":{"type":"string"},"netWorthUSD":{"type":"string"},"availableBorrowsUSD":{"type":"string"}},"required":["activeLoans","totalBorrowsUSD","netWorthUSD","availableBorrowsUSD"],"additionalProperties":false}},"summary":{"type":"object","properties":{"totalChains":{"type":"number","description":"Total number of chains requested"},"successfulChains":{"type":"number","description":"Number of chains that returned data"},"failedChains":{"type":"number","description":"Number of chains that failed"},"errors":{"type":"array","items":{"type":"string"},"description":"Why each failed chain failed (Aave V4)"}},"required":["totalChains","successfulChains","failedChains"],"additionalProperties":false}},"required":["chains","summary"],"additionalProperties":false},{"type":"object","properties":{"chains":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"activeLoans":{"type":"array","items":{"type":"object","properties":{"reserveId":{"type":"string","description":"Reserve id, the one repayV4 takes"},"asset":{"type":"string","description":"Token symbol"},"assetAddress":{"type":"string"},"hub":{"type":"string"},"debt":{"type":"string"},"debtUSD":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"USD value rounded to cents (null when not available)"},"principal":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Borrowed principal, from Aave's API (null when the API has not indexed the borrow yet)"},"interest":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Accrued interest, from Aave's API (null when the API has not indexed the borrow yet)"},"borrowAPY":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Percentage, e.g. \"4.18%\" (null when not available)"},"spoke":{"type":"string"}},"required":["reserveId","asset","assetAddress","hub","debt","debtUSD","principal","interest","borrowAPY","spoke"],"additionalProperties":false}},"totalBorrowsUSD":{"type":"string"}},"required":["activeLoans","totalBorrowsUSD"],"additionalProperties":false}},"summary":{"type":"object","properties":{"totalChains":{"type":"number","description":"Total number of chains requested"},"successfulChains":{"type":"number","description":"Number of chains that returned data"},"failedChains":{"type":"number","description":"Number of chains that failed"},"errors":{"type":"array","items":{"type":"string"},"description":"Why each failed chain failed (Aave V4)"}},"required":["totalChains","successfulChains","failedChains"],"additionalProperties":false}},"required":["chains","summary"],"additionalProperties":false},{"type":"object","properties":{"v3":{"description":"Aave V3 answer, or why it failed","anyOf":[{"type":"object","properties":{"chains":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"activeLoans":{"type":"array","items":{"type":"object","properties":{"asset":{"type":"string"},"variableDebt":{"type":"string"},"variableDebtInUSD":{"type":"string"},"stableDebt":{"type":"string"},"variableBorrowAPY":{"type":"string","description":"Variable borrow APY, e.g. \"4.18%\""},"variableBorrowRate":{"type":"string"},"stableBorrowRate":{"type":"string"}},"required":["asset","variableDebt","variableDebtInUSD","stableDebt","variableBorrowAPY","variableBorrowRate","stableBorrowRate"],"additionalProperties":false}},"totalBorrowsUSD":{"type":"string"},"netWorthUSD":{"type":"string"},"availableBorrowsUSD":{"type":"string"}},"required":["activeLoans","totalBorrowsUSD","netWorthUSD","availableBorrowsUSD"],"additionalProperties":false}},"summary":{"type":"object","properties":{"totalChains":{"type":"number","description":"Total number of chains requested"},"successfulChains":{"type":"number","description":"Number of chains that returned data"},"failedChains":{"type":"number","description":"Number of chains that failed"},"errors":{"type":"array","items":{"type":"string"},"description":"Why each failed chain failed (Aave V4)"}},"required":["totalChains","successfulChains","failedChains"],"additionalProperties":false}},"required":["chains","summary"],"additionalProperties":false},{"type":"object","properties":{"error":{"type":"string","description":"Why this Aave version could not answer"}},"required":["error"],"additionalProperties":false}]},"v4":{"description":"Aave V4 answer, or why it failed","anyOf":[{"type":"object","properties":{"chains":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"activeLoans":{"type":"array","items":{"type":"object","properties":{"reserveId":{"type":"string","description":"Reserve id, the one repayV4 takes"},"asset":{"type":"string","description":"Token symbol"},"assetAddress":{"type":"string"},"hub":{"type":"string"},"debt":{"type":"string"},"debtUSD":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"USD value rounded to cents (null when not available)"},"principal":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Borrowed principal, from Aave's API (null when the API has not indexed the borrow yet)"},"interest":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Accrued interest, from Aave's API (null when the API has not indexed the borrow yet)"},"borrowAPY":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Percentage, e.g. \"4.18%\" (null when not available)"},"spoke":{"type":"string"}},"required":["reserveId","asset","assetAddress","hub","debt","debtUSD","principal","interest","borrowAPY","spoke"],"additionalProperties":false}},"totalBorrowsUSD":{"type":"string"}},"required":["activeLoans","totalBorrowsUSD"],"additionalProperties":false}},"summary":{"type":"object","properties":{"totalChains":{"type":"number","description":"Total number of chains requested"},"successfulChains":{"type":"number","description":"Number of chains that returned data"},"failedChains":{"type":"number","description":"Number of chains that failed"},"errors":{"type":"array","items":{"type":"string"},"description":"Why each failed chain failed (Aave V4)"}},"required":["totalChains","successfulChains","failedChains"],"additionalProperties":false}},"required":["chains","summary"],"additionalProperties":false},{"type":"object","properties":{"error":{"type":"string","description":"Why this Aave version could not answer"}},"required":["error"],"additionalProperties":false}]}},"additionalProperties":false,"description":"Answers of every Aave version, keyed by version"}]}},"required":["project","operation","data"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"error":{"type":"string","description":"Error message"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"getUserBorrowingPower","description":"Get user's Aave borrowing capacity and current borrowed amounts in USD, including total collateral value, total borrows, available borrowing power and net worth. On V4 these are per spoke: collateral on one spoke cannot back a borrow on another.","inputSchema":{"type":"object","properties":{"chainNames":{"type":"array","items":{"type":"string","enum":["ethereum","arbitrum","avalanche","optimism","polygon","base","bsc","plasma","monad","ink","arc"]},"description":"Array of chain names to process."},"version":{"anyOf":[{"type":"string","enum":["v3","v4"]},{"type":"null"}],"description":"Aave version: \"v3\" or \"v4\". Pass null to get data from every Aave version deployed on the chain."},"userAddress":{"type":"string","description":"The EVM wallet address of the user"}},"required":["chainNames","version","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"note":{"type":"string","description":"Human-readable summary of the action"},"data":{"anyOf":[{"type":"object","properties":{"chains":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"totalCollateralUSD":{"type":"string"},"totalBorrowsUSD":{"type":"string"},"availableBorrowsUSD":{"type":"string"},"netWorthUSD":{"type":"string"}},"required":["totalCollateralUSD","totalBorrowsUSD","availableBorrowsUSD","netWorthUSD"],"additionalProperties":false}},"summary":{"type":"object","properties":{"totalChains":{"type":"number","description":"Total number of chains requested"},"successfulChains":{"type":"number","description":"Number of chains that returned data"},"failedChains":{"type":"number","description":"Number of chains that failed"},"errors":{"type":"array","items":{"type":"string"},"description":"Why each failed chain failed (Aave V4)"}},"required":["totalChains","successfulChains","failedChains"],"additionalProperties":false}},"required":["chains","summary"],"additionalProperties":false},{"type":"object","properties":{"chains":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"positions":{"type":"array","items":{"type":"object","properties":{"spoke":{"type":"string"},"totalCollateralUSD":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"USD value rounded to cents (null when not available)"},"totalBorrowsUSD":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"USD value rounded to cents (null when not available)"},"availableBorrowsUSD":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"USD value rounded to cents (null when not available)"},"maxBorrowingPowerUSD":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"USD value rounded to cents (null when not available)"},"netWorthUSD":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"USD value rounded to cents (null when not available)"}},"required":["spoke","totalCollateralUSD","totalBorrowsUSD","availableBorrowsUSD","maxBorrowingPowerUSD","netWorthUSD"],"additionalProperties":false}}},"required":["positions"],"additionalProperties":false}},"summary":{"type":"object","properties":{"totalChains":{"type":"number","description":"Total number of chains requested"},"successfulChains":{"type":"number","description":"Number of chains that returned data"},"failedChains":{"type":"number","description":"Number of chains that failed"},"errors":{"type":"array","items":{"type":"string"},"description":"Why each failed chain failed (Aave V4)"}},"required":["totalChains","successfulChains","failedChains"],"additionalProperties":false}},"required":["chains","summary"],"additionalProperties":false},{"type":"object","properties":{"v3":{"description":"Aave V3 answer, or why it failed","anyOf":[{"type":"object","properties":{"chains":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"totalCollateralUSD":{"type":"string"},"totalBorrowsUSD":{"type":"string"},"availableBorrowsUSD":{"type":"string"},"netWorthUSD":{"type":"string"}},"required":["totalCollateralUSD","totalBorrowsUSD","availableBorrowsUSD","netWorthUSD"],"additionalProperties":false}},"summary":{"type":"object","properties":{"totalChains":{"type":"number","description":"Total number of chains requested"},"successfulChains":{"type":"number","description":"Number of chains that returned data"},"failedChains":{"type":"number","description":"Number of chains that failed"},"errors":{"type":"array","items":{"type":"string"},"description":"Why each failed chain failed (Aave V4)"}},"required":["totalChains","successfulChains","failedChains"],"additionalProperties":false}},"required":["chains","summary"],"additionalProperties":false},{"type":"object","properties":{"error":{"type":"string","description":"Why this Aave version could not answer"}},"required":["error"],"additionalProperties":false}]},"v4":{"description":"Aave V4 answer, or why it failed","anyOf":[{"type":"object","properties":{"chains":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"positions":{"type":"array","items":{"type":"object","properties":{"spoke":{"type":"string"},"totalCollateralUSD":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"USD value rounded to cents (null when not available)"},"totalBorrowsUSD":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"USD value rounded to cents (null when not available)"},"availableBorrowsUSD":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"USD value rounded to cents (null when not available)"},"maxBorrowingPowerUSD":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"USD value rounded to cents (null when not available)"},"netWorthUSD":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"USD value rounded to cents (null when not available)"}},"required":["spoke","totalCollateralUSD","totalBorrowsUSD","availableBorrowsUSD","maxBorrowingPowerUSD","netWorthUSD"],"additionalProperties":false}}},"required":["positions"],"additionalProperties":false}},"summary":{"type":"object","properties":{"totalChains":{"type":"number","description":"Total number of chains requested"},"successfulChains":{"type":"number","description":"Number of chains that returned data"},"failedChains":{"type":"number","description":"Number of chains that failed"},"errors":{"type":"array","items":{"type":"string"},"description":"Why each failed chain failed (Aave V4)"}},"required":["totalChains","successfulChains","failedChains"],"additionalProperties":false}},"required":["chains","summary"],"additionalProperties":false},{"type":"object","properties":{"error":{"type":"string","description":"Why this Aave version could not answer"}},"required":["error"],"additionalProperties":false}]}},"additionalProperties":false,"description":"Answers of every Aave version, keyed by version"}]}},"required":["project","operation","data"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"error":{"type":"string","description":"Error message"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"getUserCollateral","description":"Get details of user's deposited Aave collateral including asset symbols, asset addresses, balances, usage as collateral status and risk parameters (V3: LTV, liquidation threshold, liquidation bonus; V4: collateral factor, per spoke). V4 rows also carry their spoke and reserve id (the one withdrawV4 and setUsageAsCollateralV4 take).","inputSchema":{"type":"object","properties":{"chainNames":{"type":"array","items":{"type":"string","enum":["ethereum","arbitrum","avalanche","optimism","polygon","base","bsc","plasma","monad","ink","arc"]},"description":"Array of chain names to process."},"version":{"anyOf":[{"type":"string","enum":["v3","v4"]},{"type":"null"}],"description":"Aave version: \"v3\" or \"v4\". Pass null to get data from every Aave version deployed on the chain."},"userAddress":{"type":"string","description":"The EVM wallet address of the user"}},"required":["chainNames","version","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"note":{"type":"string","description":"Human-readable summary of the action"},"data":{"anyOf":[{"type":"object","properties":{"chains":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"collateral":{"type":"array","items":{"type":"object","properties":{"asset":{"type":"string"},"assetAddress":{"type":"string"},"balance":{"type":"string"},"balanceUSD":{"type":"string"},"supplyAPY":{"type":"string","description":"Supply APY, e.g. \"4.18%\""},"scaledATokenBalance":{"type":"string"},"usageAsCollateralEnabled":{"type":"boolean"},"ltv":{"type":"string"},"liquidationThreshold":{"type":"string"},"liquidationBonus":{"type":"string"}},"required":["asset","assetAddress","balance","balanceUSD","supplyAPY","scaledATokenBalance","usageAsCollateralEnabled","ltv","liquidationThreshold","liquidationBonus"],"additionalProperties":false}},"totalCollateralUSD":{"type":"string"},"totalLiquidityUSD":{"type":"string"}},"required":["collateral","totalCollateralUSD","totalLiquidityUSD"],"additionalProperties":false}},"summary":{"type":"object","properties":{"totalChains":{"type":"number","description":"Total number of chains requested"},"successfulChains":{"type":"number","description":"Number of chains that returned data"},"failedChains":{"type":"number","description":"Number of chains that failed"},"errors":{"type":"array","items":{"type":"string"},"description":"Why each failed chain failed (Aave V4)"}},"required":["totalChains","successfulChains","failedChains"],"additionalProperties":false}},"required":["chains","summary"],"additionalProperties":false},{"type":"object","properties":{"chains":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"collateral":{"type":"array","items":{"type":"object","properties":{"reserveId":{"type":"string","description":"Reserve id, the one withdrawV4 and setUsageAsCollateralV4 take"},"asset":{"type":"string","description":"Token symbol"},"assetAddress":{"type":"string"},"hub":{"type":"string"},"balance":{"type":"string"},"balanceUSD":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"USD value rounded to cents (null when not available)"},"withdrawable":{"type":"string"},"supplyAPY":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Percentage, e.g. \"4.18%\" (null when not available)"},"usageAsCollateralEnabled":{"type":"boolean"},"collateralFactor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Percentage, e.g. \"4.18%\" (null when not available)"},"spoke":{"type":"string"}},"required":["reserveId","asset","assetAddress","hub","balance","balanceUSD","withdrawable","supplyAPY","usageAsCollateralEnabled","collateralFactor","spoke"],"additionalProperties":false}},"totalCollateralUSD":{"type":"string"}},"required":["collateral","totalCollateralUSD"],"additionalProperties":false}},"summary":{"type":"object","properties":{"totalChains":{"type":"number","description":"Total number of chains requested"},"successfulChains":{"type":"number","description":"Number of chains that returned data"},"failedChains":{"type":"number","description":"Number of chains that failed"},"errors":{"type":"array","items":{"type":"string"},"description":"Why each failed chain failed (Aave V4)"}},"required":["totalChains","successfulChains","failedChains"],"additionalProperties":false}},"required":["chains","summary"],"additionalProperties":false},{"type":"object","properties":{"v3":{"description":"Aave V3 answer, or why it failed","anyOf":[{"type":"object","properties":{"chains":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"collateral":{"type":"array","items":{"type":"object","properties":{"asset":{"type":"string"},"assetAddress":{"type":"string"},"balance":{"type":"string"},"balanceUSD":{"type":"string"},"supplyAPY":{"type":"string","description":"Supply APY, e.g. \"4.18%\""},"scaledATokenBalance":{"type":"string"},"usageAsCollateralEnabled":{"type":"boolean"},"ltv":{"type":"string"},"liquidationThreshold":{"type":"string"},"liquidationBonus":{"type":"string"}},"required":["asset","assetAddress","balance","balanceUSD","supplyAPY","scaledATokenBalance","usageAsCollateralEnabled","ltv","liquidationThreshold","liquidationBonus"],"additionalProperties":false}},"totalCollateralUSD":{"type":"string"},"totalLiquidityUSD":{"type":"string"}},"required":["collateral","totalCollateralUSD","totalLiquidityUSD"],"additionalProperties":false}},"summary":{"type":"object","properties":{"totalChains":{"type":"number","description":"Total number of chains requested"},"successfulChains":{"type":"number","description":"Number of chains that returned data"},"failedChains":{"type":"number","description":"Number of chains that failed"},"errors":{"type":"array","items":{"type":"string"},"description":"Why each failed chain failed (Aave V4)"}},"required":["totalChains","successfulChains","failedChains"],"additionalProperties":false}},"required":["chains","summary"],"additionalProperties":false},{"type":"object","properties":{"error":{"type":"string","description":"Why this Aave version could not answer"}},"required":["error"],"additionalProperties":false}]},"v4":{"description":"Aave V4 answer, or why it failed","anyOf":[{"type":"object","properties":{"chains":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"collateral":{"type":"array","items":{"type":"object","properties":{"reserveId":{"type":"string","description":"Reserve id, the one withdrawV4 and setUsageAsCollateralV4 take"},"asset":{"type":"string","description":"Token symbol"},"assetAddress":{"type":"string"},"hub":{"type":"string"},"balance":{"type":"string"},"balanceUSD":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"USD value rounded to cents (null when not available)"},"withdrawable":{"type":"string"},"supplyAPY":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Percentage, e.g. \"4.18%\" (null when not available)"},"usageAsCollateralEnabled":{"type":"boolean"},"collateralFactor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Percentage, e.g. \"4.18%\" (null when not available)"},"spoke":{"type":"string"}},"required":["reserveId","asset","assetAddress","hub","balance","balanceUSD","withdrawable","supplyAPY","usageAsCollateralEnabled","collateralFactor","spoke"],"additionalProperties":false}},"totalCollateralUSD":{"type":"string"}},"required":["collateral","totalCollateralUSD"],"additionalProperties":false}},"summary":{"type":"object","properties":{"totalChains":{"type":"number","description":"Total number of chains requested"},"successfulChains":{"type":"number","description":"Number of chains that returned data"},"failedChains":{"type":"number","description":"Number of chains that failed"},"errors":{"type":"array","items":{"type":"string"},"description":"Why each failed chain failed (Aave V4)"}},"required":["totalChains","successfulChains","failedChains"],"additionalProperties":false}},"required":["chains","summary"],"additionalProperties":false},{"type":"object","properties":{"error":{"type":"string","description":"Why this Aave version could not answer"}},"required":["error"],"additionalProperties":false}]}},"additionalProperties":false,"description":"Answers of every Aave version, keyed by version"}]}},"required":["project","operation","data"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"error":{"type":"string","description":"Error message"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"getUserHealthIndicators","description":"Get key health indicators for user's Aave position: health factor plus, on V3, loan-to-value, liquidation threshold and isolation mode status; on V4, per spoke, average collateral factor, risk premium and liquidation price.","inputSchema":{"type":"object","properties":{"chainNames":{"type":"array","items":{"type":"string","enum":["ethereum","arbitrum","avalanche","optimism","polygon","base","bsc","plasma","monad","ink","arc"]},"description":"Array of chain names to process."},"version":{"anyOf":[{"type":"string","enum":["v3","v4"]},{"type":"null"}],"description":"Aave version: \"v3\" or \"v4\". Pass null to get data from every Aave version deployed on the chain."},"userAddress":{"type":"string","description":"The EVM wallet address of the user"}},"required":["chainNames","version","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"note":{"type":"string","description":"Human-readable summary of the action"},"data":{"anyOf":[{"type":"object","properties":{"chains":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"healthFactor":{"type":"string"},"currentLoanToValue":{"type":"string"},"currentLiquidationThreshold":{"type":"string"},"isInIsolationMode":{"type":"boolean"}},"required":["healthFactor","currentLoanToValue","currentLiquidationThreshold","isInIsolationMode"],"additionalProperties":false}},"summary":{"type":"object","properties":{"totalChains":{"type":"number","description":"Total number of chains requested"},"successfulChains":{"type":"number","description":"Number of chains that returned data"},"failedChains":{"type":"number","description":"Number of chains that failed"},"errors":{"type":"array","items":{"type":"string"},"description":"Why each failed chain failed (Aave V4)"}},"required":["totalChains","successfulChains","failedChains"],"additionalProperties":false}},"required":["chains","summary"],"additionalProperties":false},{"type":"object","properties":{"chains":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"positions":{"type":"array","items":{"type":"object","properties":{"spoke":{"type":"string"},"healthFactor":{"anyOf":[{"type":"string"},{"type":"null"}]},"averageCollateralFactor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Percentage, e.g. \"4.18%\" (null when not available)"},"riskPremium":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Percentage, e.g. \"4.18%\" (null when not available)"},"liquidationPriceUSD":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["spoke","healthFactor","averageCollateralFactor","riskPremium","liquidationPriceUSD"],"additionalProperties":false}},"lowestHealthFactor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["positions","lowestHealthFactor"],"additionalProperties":false}},"summary":{"type":"object","properties":{"totalChains":{"type":"number","description":"Total number of chains requested"},"successfulChains":{"type":"number","description":"Number of chains that returned data"},"failedChains":{"type":"number","description":"Number of chains that failed"},"errors":{"type":"array","items":{"type":"string"},"description":"Why each failed chain failed (Aave V4)"}},"required":["totalChains","successfulChains","failedChains"],"additionalProperties":false}},"required":["chains","summary"],"additionalProperties":false},{"type":"object","properties":{"v3":{"description":"Aave V3 answer, or why it failed","anyOf":[{"type":"object","properties":{"chains":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"healthFactor":{"type":"string"},"currentLoanToValue":{"type":"string"},"currentLiquidationThreshold":{"type":"string"},"isInIsolationMode":{"type":"boolean"}},"required":["healthFactor","currentLoanToValue","currentLiquidationThreshold","isInIsolationMode"],"additionalProperties":false}},"summary":{"type":"object","properties":{"totalChains":{"type":"number","description":"Total number of chains requested"},"successfulChains":{"type":"number","description":"Number of chains that returned data"},"failedChains":{"type":"number","description":"Number of chains that failed"},"errors":{"type":"array","items":{"type":"string"},"description":"Why each failed chain failed (Aave V4)"}},"required":["totalChains","successfulChains","failedChains"],"additionalProperties":false}},"required":["chains","summary"],"additionalProperties":false},{"type":"object","properties":{"error":{"type":"string","description":"Why this Aave version could not answer"}},"required":["error"],"additionalProperties":false}]},"v4":{"description":"Aave V4 answer, or why it failed","anyOf":[{"type":"object","properties":{"chains":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"positions":{"type":"array","items":{"type":"object","properties":{"spoke":{"type":"string"},"healthFactor":{"anyOf":[{"type":"string"},{"type":"null"}]},"averageCollateralFactor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Percentage, e.g. \"4.18%\" (null when not available)"},"riskPremium":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Percentage, e.g. \"4.18%\" (null when not available)"},"liquidationPriceUSD":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["spoke","healthFactor","averageCollateralFactor","riskPremium","liquidationPriceUSD"],"additionalProperties":false}},"lowestHealthFactor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["positions","lowestHealthFactor"],"additionalProperties":false}},"summary":{"type":"object","properties":{"totalChains":{"type":"number","description":"Total number of chains requested"},"successfulChains":{"type":"number","description":"Number of chains that returned data"},"failedChains":{"type":"number","description":"Number of chains that failed"},"errors":{"type":"array","items":{"type":"string"},"description":"Why each failed chain failed (Aave V4)"}},"required":["totalChains","successfulChains","failedChains"],"additionalProperties":false}},"required":["chains","summary"],"additionalProperties":false},{"type":"object","properties":{"error":{"type":"string","description":"Why this Aave version could not answer"}},"required":["error"],"additionalProperties":false}]}},"additionalProperties":false,"description":"Answers of every Aave version, keyed by version"}]}},"required":["project","operation","data"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"error":{"type":"string","description":"Error message"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"getMaximumBorrowsAmount","description":"Calculate maximum amount of tokens that can be borrowed based on user borrowing power and token price. Both versions keep a 1% margin below the protocol limit; on V4 the limit belongs to the spoke of the given reserve.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","arbitrum","avalanche","optimism","polygon","base","bsc","plasma","monad","ink","arc"],"description":"Chain name"},"version":{"type":"string","enum":["v3","v4"],"description":"Aave version the borrow will be made on."},"tokenAddress":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Aave V3 only: the address of the token to calculate maximum borrow amount for. null for V4."},"reserveId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Aave V4 only: the reserve id exactly as returned by getReservesList, getSpokeReserves or the portfolio tools: an opaque base64 string (e.g. \"MTo6MHg5NGU3…Ojoz\"), never a spoke or token address. One token can be listed on several spokes, each with its own id. null for V3."},"userAddress":{"type":"string","description":"The EVM wallet address of the user"}},"required":["chainName","version","tokenAddress","reserveId","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"note":{"type":"string","description":"Human-readable summary of the action"},"data":{"type":"object","properties":{"maximumBorrows":{"type":"string","description":"Maximum borrowable amount in human-readable decimal format (e.g. '1.5')"}},"required":["maximumBorrows"],"additionalProperties":false}},"required":["project","operation","data"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"error":{"type":"string","description":"Error message"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"getSupportedChains","description":"Get a list of networks where Aave is deployed with their names and Chain IDs, for V3, V4 or both.","inputSchema":{"type":"object","properties":{"version":{"anyOf":[{"type":"string","enum":["v3","v4"]},{"type":"null"}],"description":"Aave version: \"v3\" or \"v4\". Pass null to list the networks of both versions."}},"required":["version"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"note":{"type":"string","description":"Human-readable summary of the action"},"data":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"number","description":"EVM chain ID"},"chainName":{"type":"string","description":"Human-readable chain name"}},"required":["chainId","chainName"],"additionalProperties":false}},{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"number","description":"EVM chain ID"},"chainName":{"type":"string","description":"Human-readable chain name"}},"required":["chainId","chainName"],"additionalProperties":false}},{"type":"object","properties":{"v3":{"description":"Aave V3 answer, or why it failed","anyOf":[{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"number","description":"EVM chain ID"},"chainName":{"type":"string","description":"Human-readable chain name"}},"required":["chainId","chainName"],"additionalProperties":false}},{"type":"object","properties":{"error":{"type":"string","description":"Why this Aave version could not answer"}},"required":["error"],"additionalProperties":false}]},"v4":{"description":"Aave V4 answer, or why it failed","anyOf":[{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"number","description":"EVM chain ID"},"chainName":{"type":"string","description":"Human-readable chain name"}},"required":["chainId","chainName"],"additionalProperties":false}},{"type":"object","properties":{"error":{"type":"string","description":"Why this Aave version could not answer"}},"required":["error"],"additionalProperties":false}]}},"additionalProperties":false,"description":"Answers of every Aave version, keyed by version"}]}},"required":["project","operation","data"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"error":{"type":"string","description":"Error message"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"getSpokes","description":"Aave V4 only. List the spokes (separate lending markets) on a chain with the hubs they draw liquidity from. Every V4 position, health factor and borrowing power belongs to one spoke; specialised spokes (e.g. for correlated assets) take the place of V3 E-Mode.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","avalanche","base","arc"]}},"required":["chainName"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"note":{"type":"string","description":"Human-readable summary of the action"},"data":{"type":"array","items":{"type":"object","properties":{"spoke":{"type":"string","description":"Spoke name"},"address":{"type":"string","description":"Spoke contract address"},"hubs":{"type":"array","items":{"type":"string"},"description":"Names of the hubs the spoke draws liquidity from"},"assets":{"type":"number","description":"Number of distinct assets listed on the spoke"},"totalSuppliedUSD":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"USD value rounded to cents (null when not available)"},"totalBorrowedUSD":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"USD value rounded to cents (null when not available)"}},"required":["spoke","address","hubs","assets","totalSuppliedUSD","totalBorrowedUSD"],"additionalProperties":false}}},"required":["project","operation","data"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"error":{"type":"string","description":"Error message"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"getSpokeReserves","description":"Aave V4 only. Get the reserves of one spoke with full data and their reserve ids, optionally only those lent by one hub. The same token can be listed twice on one spoke through different hubs.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","avalanche","base","arc"]},"spoke":{"type":"string","description":"Spoke name (e.g. \"Main\") or address (0x followed by 40 hex characters), as returned by getSpokes."},"hub":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Hub name (e.g. \"Core\") or address to keep only that hub's reserves. null for all hubs of the spoke."}},"required":["chainName","spoke","hub"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"note":{"type":"string","description":"Human-readable summary of the action"},"data":{"type":"array","items":{"type":"object","properties":{"version":{"type":"string","const":"v4","description":"Aave version of the reserve"},"reserveId":{"type":"string","description":"Reserve id, the one the V4 tools take: an opaque base64 string, never an address"},"spoke":{"type":"string","description":"Name of the spoke (lending market) the reserve belongs to"},"hub":{"type":"string","description":"Name of the hub that lends the reserve its liquidity"},"symbol":{"type":"string","description":"Token symbol"},"tokenAddress":{"type":"string","description":"Token contract address"},"supplyAPY":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Percentage, e.g. \"4.18%\" (null when not available)"},"borrowAPY":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Percentage, e.g. \"4.18%\" (null when not available)"},"collateralFactor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Percentage, e.g. \"4.18%\" (null when not available)"},"availableToBorrow":{"type":"string","description":"Amount left to borrow in human-readable decimal format (e.g. '1.5')"},"status":{"type":"string","description":"active, frozen, paused or inactive"},"canSupply":{"type":"boolean"},"canBorrow":{"type":"boolean"},"canUseAsCollateral":{"type":"boolean"},"isWrappedNativeToken":{"type":"boolean","description":"true for the wrapped native token's reserve, the one useNativeToken works with"},"chainId":{"type":"number","description":"EVM chain ID"},"spokeAddress":{"type":"string"},"hubAddress":{"type":"string"},"decimals":{"type":"number"},"priceUSD":{"type":"string","description":"Token price in USD"},"underlyingAPY":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Percentage, e.g. \"4.18%\" (null when not available)"},"totalSupplied":{"type":"string"},"totalSuppliedUSD":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"USD value rounded to cents (null when not available)"},"totalBorrowed":{"type":"string"},"totalBorrowedUSD":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"USD value rounded to cents (null when not available)"},"availableToSupply":{"type":"string"},"supplyCap":{"type":"string"},"borrowCap":{"type":"string"},"maxLiquidationBonus":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Percentage, e.g. \"4.18%\" (null when not available)"},"liquidationFee":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Percentage, e.g. \"4.18%\" (null when not available)"},"collateralRisk":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Percentage, e.g. \"4.18%\" (null when not available)"}},"required":["version","reserveId","spoke","hub","symbol","tokenAddress","supplyAPY","borrowAPY","collateralFactor","availableToBorrow","status","canSupply","canBorrow","canUseAsCollateral","chainId","spokeAddress","hubAddress","decimals","priceUSD","underlyingAPY","totalSupplied","totalSuppliedUSD","totalBorrowed","totalBorrowedUSD","availableToSupply","supplyCap","borrowCap","maxLiquidationBonus","liquidationFee","collateralRisk"],"additionalProperties":false}}},"required":["project","operation","data"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"error":{"type":"string","description":"Error message"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"supplyV4","description":"Aave V4 only. Supply assets to an Aave V4 reserve. The first supply into a reserve that can be collateral also enables it as collateral. If the token is on several spokes and the user named none, use the Main spoke's reserve. If the user did not say which Aave version and the chain has both Aave V3 and V4 (ethereum, avalanche, base), you must ask them which version before calling, unless they asked for the best rate: then compare both versions (getReservesList with version null) and use the better one.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","avalanche","base","arc"]},"reserveId":{"type":"string","description":"The reserve id exactly as returned by getReservesList, getSpokeReserves or the portfolio tools: an opaque base64 string (e.g. \"MTo6MHg5NGU3…Ojoz\"), never a spoke or token address."},"amount":{"type":"string","description":"The amount to supply in decimal format"},"useNativeToken":{"type":"boolean","description":"true to supply the chain's native token (ETH, AVAX) through the native gateway; reserveId must then be the wrapped native token's reserve. false for ERC20 tokens, and always false on Arc, whose native USDC is the same balance as its USDC ERC20."},"userAddress":{"type":"string","description":"The EVM wallet address of the user"}},"required":["chainName","reserveId","amount","useNativeToken","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"note":{"type":"string","description":"Human-readable summary of the action"},"transactions":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"number","description":"EVM chain ID"},"transaction":{"type":"object","properties":{"target":{"type":"string","description":"Target contract address"},"data":{"type":"string","description":"ABI-encoded calldata"},"value":{"description":"Native token value in wei","type":"string"}},"required":["target","data"],"additionalProperties":false,"description":"EVM transaction parameters"}},"required":["chainId","transaction"],"additionalProperties":false},"description":"EVM transactions to sign and broadcast"}},"required":["project","operation","transactions"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"error":{"type":"string","description":"Error message"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"borrowV4","description":"Aave V4 only. Borrow assets from an Aave V4 reserve. Requires enough collateral on the same spoke as the reserve, so if the user named no spoke, borrow on the spoke that holds their collateral (the Main spoke when it is there or they have none yet). If the user did not say which Aave version and the chain has both Aave V3 and V4 (ethereum, avalanche, base), you must ask them which version before calling, unless they asked for the best rate: then compare both versions (getReservesList with version null) and use the better one.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","avalanche","base","arc"]},"reserveId":{"type":"string","description":"The reserve id exactly as returned by getReservesList, getSpokeReserves or the portfolio tools: an opaque base64 string (e.g. \"MTo6MHg5NGU3…Ojoz\"), never a spoke or token address."},"amount":{"type":"string","description":"The amount to borrow in decimal format."},"useNativeToken":{"type":"boolean","description":"true to receive the chain's native token (ETH, AVAX) through the native gateway; reserveId must then be the wrapped native token's reserve. false for ERC20 tokens, and always false on Arc, whose native USDC is the same balance as its USDC ERC20."},"userAddress":{"type":"string","description":"The EVM wallet address of the user"}},"required":["chainName","reserveId","amount","useNativeToken","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"note":{"type":"string","description":"Human-readable summary of the action"},"transactions":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"number","description":"EVM chain ID"},"transaction":{"type":"object","properties":{"target":{"type":"string","description":"Target contract address"},"data":{"type":"string","description":"ABI-encoded calldata"},"value":{"description":"Native token value in wei","type":"string"}},"required":["target","data"],"additionalProperties":false,"description":"EVM transaction parameters"}},"required":["chainId","transaction"],"additionalProperties":false},"description":"EVM transactions to sign and broadcast"}},"required":["project","operation","transactions"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"error":{"type":"string","description":"Error message"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"withdrawV4","description":"Aave V4 only. Withdraw supplied assets from an Aave V4 reserve: use the reserve id of the user's supply from the portfolio tools. If the user did not say which Aave version and the chain has both Aave V3 and V4 (ethereum, avalanche, base), you must ask them which version before calling, unless they asked for the best rate: then compare both versions (getReservesList with version null) and use the better one.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","avalanche","base","arc"]},"reserveId":{"type":"string","description":"The reserve id exactly as returned by getReservesList, getSpokeReserves or the portfolio tools: an opaque base64 string (e.g. \"MTo6MHg5NGU3…Ojoz\"), never a spoke or token address."},"amount":{"type":"string","description":"The amount to withdraw in decimal format. If the amount is '-1', the user will withdraw all their balance; when withdrawing everything would take the health factor below 1 it is refused and the largest safe amount is reported instead."},"useNativeToken":{"type":"boolean","description":"true to receive the chain's native token (ETH, AVAX) through the native gateway; reserveId must then be the wrapped native token's reserve. false for ERC20 tokens, and always false on Arc, whose native USDC is the same balance as its USDC ERC20."},"userAddress":{"type":"string","description":"The EVM wallet address of the user"}},"required":["chainName","reserveId","amount","useNativeToken","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"note":{"type":"string","description":"Human-readable summary of the action"},"transactions":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"number","description":"EVM chain ID"},"transaction":{"type":"object","properties":{"target":{"type":"string","description":"Target contract address"},"data":{"type":"string","description":"ABI-encoded calldata"},"value":{"description":"Native token value in wei","type":"string"}},"required":["target","data"],"additionalProperties":false,"description":"EVM transaction parameters"}},"required":["chainId","transaction"],"additionalProperties":false},"description":"EVM transactions to sign and broadcast"}},"required":["project","operation","transactions"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"error":{"type":"string","description":"Error message"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"repayV4","description":"Aave V4 only. Repay borrowed assets to an Aave V4 reserve: use the reserve id of the user's debt from the portfolio tools. If the user did not say which Aave version and the chain has both Aave V3 and V4 (ethereum, avalanche, base), you must ask them which version before calling, unless they asked for the best rate: then compare both versions (getReservesList with version null) and use the better one.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","avalanche","base","arc"]},"reserveId":{"type":"string","description":"The reserve id exactly as returned by getReservesList, getSpokeReserves or the portfolio tools: an opaque base64 string (e.g. \"MTo6MHg5NGU3…Ojoz\"), never a spoke or token address."},"amount":{"type":"string","description":"The amount to repay in decimal format. If the amount is \"-1\", the user will repay all their debt; the wallet must then hold at least the whole debt."},"useNativeToken":{"type":"boolean","description":"true to repay with the chain's native token (ETH, AVAX) through the native gateway; reserveId must then be the wrapped native token's reserve. false for ERC20 tokens, and always false on Arc, whose native USDC is the same balance as its USDC ERC20."},"userAddress":{"type":"string","description":"The EVM wallet address of the user"}},"required":["chainName","reserveId","amount","useNativeToken","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"note":{"type":"string","description":"Human-readable summary of the action"},"transactions":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"number","description":"EVM chain ID"},"transaction":{"type":"object","properties":{"target":{"type":"string","description":"Target contract address"},"data":{"type":"string","description":"ABI-encoded calldata"},"value":{"description":"Native token value in wei","type":"string"}},"required":["target","data"],"additionalProperties":false,"description":"EVM transaction parameters"}},"required":["chainId","transaction"],"additionalProperties":false},"description":"EVM transactions to sign and broadcast"}},"required":["project","operation","transactions"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"error":{"type":"string","description":"Error message"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"setUsageAsCollateralV4","description":"Aave V4 only. Enable or disable a supplied asset as collateral on its spoke. Enabling is refused for a reserve that cannot be collateral (collateral factor 0); disabling is refused when it would take the health factor below 1. If the user did not say which Aave version and the chain has both Aave V3 and V4 (ethereum, avalanche, base), you must ask them which version before calling, unless they asked for the best rate: then compare both versions (getReservesList with version null) and use the better one.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","avalanche","base","arc"]},"reserveId":{"type":"string","description":"The reserve id exactly as returned by getReservesList, getSpokeReserves or the portfolio tools: an opaque base64 string (e.g. \"MTo6MHg5NGU3…Ojoz\"), never a spoke or token address."},"usageAsCollateral":{"type":"boolean","description":"Whether to use the asset as collateral"},"userAddress":{"type":"string","description":"The EVM wallet address of the user"}},"required":["chainName","reserveId","usageAsCollateral","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"note":{"type":"string","description":"Human-readable summary of the action"},"transactions":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"number","description":"EVM chain ID"},"transaction":{"type":"object","properties":{"target":{"type":"string","description":"Target contract address"},"data":{"type":"string","description":"ABI-encoded calldata"},"value":{"description":"Native token value in wei","type":"string"}},"required":["target","data"],"additionalProperties":false,"description":"EVM transaction parameters"}},"required":["chainId","transaction"],"additionalProperties":false},"description":"EVM transactions to sign and broadcast"}},"required":["project","operation","transactions"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string","description":"Protocol identifier"},"operation":{"type":"string","description":"Operation that produced this response"},"error":{"type":"string","description":"Error message"}},"required":["project","operation","error"],"additionalProperties":false}]}}]}