{"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":"borrow","description":"Borrow assets from the Aave V3 protocol lending pool. Requires enough collateral to cover the debt.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","arbitrum","avalanche","optimism","polygon","metis","base","bsc","scroll","gnosis","plasma"]},"assetAddress":{"type":"string","description":"The address of the asset to borrow"},"amount":{"type":"string","description":"The amount to borrow in human-readable decimal format (e.g. '1.5')"},"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":"supply","description":"Supply assets to the Aave V3 protocol lending pool","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","arbitrum","avalanche","optimism","polygon","metis","base","bsc","scroll","gnosis","plasma"]},"assetAddress":{"type":"string","description":"The address of the asset to supply"},"amount":{"type":"string","description":"The amount to supply in human-readable decimal format (e.g. '1.5')"},"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":"withdraw","description":"Withdraw supplied assets from the Aave V3 protocol","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","arbitrum","avalanche","optimism","polygon","metis","base","bsc","scroll","gnosis","plasma"]},"assetAddress":{"type":"string","description":"The address of the asset to withdraw"},"amount":{"type":"string","description":"The amount to withdraw in human-readable decimal format (e.g. '1.5'). Use '-1' to withdraw entire 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":"repay","description":"Repay borrowed assets to the Aave V3 protocol","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","arbitrum","avalanche","optimism","polygon","metis","base","bsc","scroll","gnosis","plasma"]},"assetAddress":{"type":"string","description":"The address of the borrowed asset to repay"},"amount":{"type":"string","description":"The amount to repay in human-readable decimal format (e.g. '1.5'). Use '-1' to repay entire 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":"repayWithATokens","description":"Repay borrowed assets using aTokens without requiring approval","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","arbitrum","avalanche","optimism","polygon","metis","base","bsc","scroll","gnosis","plasma"]},"assetAddress":{"type":"string","description":"The address of the borrowed asset to repay"},"amount":{"type":"string","description":"The amount to repay in human-readable decimal format (e.g. '1.5'). Use '-1' to repay entire 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":"liquidationCall","description":"Liquidate an undercollateralized position","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","arbitrum","avalanche","optimism","polygon","metis","base","bsc","scroll","gnosis","plasma"]},"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 in human-readable decimal format (e.g. '1.5')"},"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":"setEModeCategory","description":"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","metis","base","bsc","scroll","gnosis","plasma"]},"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":"setUsageAsCollateral","description":"Enable or disable an asset to be used as collateral","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","arbitrum","avalanche","optimism","polygon","metis","base","bsc","scroll","gnosis","plasma"]},"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":"swapBorrowRateMode","description":"Switch between stable and variable borrow rate modes","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","arbitrum","avalanche","optimism","polygon","metis","base","bsc","scroll","gnosis","plasma"]},"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":"getReserveAssociatedTokens","description":"Get addresses of associated tokens (aToken, stableDebtToken, variableDebtToken) for specific reserves.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","arbitrum","avalanche","optimism","polygon","metis","base","bsc","scroll","gnosis","plasma"]},"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":"getReserveHumanized","description":"Get humanized Aave V3 comprehensive reserve data: name, symbol, decimals, collateral/borrowing settings, interest rates, token addresses, liquidity metrics, supply/borrow caps, isolation mode, supply/borrow incentives, and market prices.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","arbitrum","avalanche","optimism","polygon","metis","base","bsc","scroll","gnosis","plasma"]},"reserveAddress":{"type":"string","description":"The address of the reserve (token) to get data for"}},"required":["chainName","reserveAddress"],"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":{"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"},"isIsolated":{"type":"string"},"debtCeiling":{"type":"string"},"supplyCap":{"type":"string"},"borrowCap":{"type":"string"},"borrowableInIsolation":{"type":"string"},"flashloanEnabled":{"type":"string"},"eModes":{"type":"array","items":{}},"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","isIsolated","debtCeiling","supplyCap","borrowCap","borrowableInIsolation","flashloanEnabled","eModes","priceInMarketReferenceCurrency","priceOracle","aIncentiveData","vIncentiveData"],"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":"getUserReservesHumanized","description":"Get humanized Aave V3 comprehensive user reserves data: array of user aave positions and active assets/debts, liquidity, collateral, borrowing, financial ratios, health factor, E-Mode status, and isolation mode.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","arbitrum","avalanche","optimism","polygon","metis","base","bsc","scroll","gnosis","plasma"]},"userAddress":{"type":"string","description":"The EVM wallet address of the user"}},"required":["chainName","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":{"userReservesData":{"type":"array","items":{"type":"object","properties":{"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"},"unbacked":{"type":"string"},"virtualAccActive":{"type":"boolean"},"virtualUnderlyingBalance":{"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"}},"required":["ltv","liquidationThreshold","liquidationBonus","collateralBitmap","label","borrowableBitmap","formattedLtv","formattedLiquidationThreshold","formattedLiquidationBonus"],"additionalProperties":false},"collateralEnabled":{"type":"boolean"},"borrowingEnabled":{"type":"boolean"}},"required":["id","eMode","collateralEnabled","borrowingEnabled"],"additionalProperties":false}},"totalLiquidityUSD":{"type":"string"},"availableLiquidityUSD":{"type":"string"},"totalDebtUSD":{"type":"string"},"totalVariableDebtUSD":{"type":"string"},"borrowCapUSD":{"type":"string"},"supplyCapUSD":{"type":"string"},"unbackedUSD":{"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","unbacked","virtualAccActive","virtualUnderlyingBalance","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","unbackedUSD","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":["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"},"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}},"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":"getReservesList","description":"Get ordered list of underlying assets of all initialized reserves with their symbols and addresses.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","arbitrum","avalanche","optimism","polygon","metis","base","bsc","scroll","gnosis","plasma"]}},"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":{"symbol":{"type":"string","description":"Token symbol"},"address":{"type":"string","description":"Token contract address"}},"required":["symbol","address"],"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 available in the Aave V3 lending pool for specific chains.","inputSchema":{"type":"object","properties":{"chainNames":{"type":"array","items":{"type":"string","enum":["ethereum","arbitrum","avalanche","optimism","polygon","metis","base","bsc","scroll","gnosis","plasma"]},"description":"Array of chain names to process"},"userAddress":{"type":"string","description":"The EVM wallet address of the user"}},"required":["chainNames","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":"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"}},"required":["totalChains","successfulChains","failedChains"],"additionalProperties":false}},"required":["chains","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":"batchBalanceOf","description":"Get user balances for multiple tokens in a single call. Returns only non-zero balances.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","arbitrum","avalanche","optimism","polygon","metis","base","bsc","scroll","gnosis","plasma"]},"tokens":{"type":"array","items":{"type":"string"},"description":"Array of token addresses to check balances for"},"userAddress":{"type":"string","description":"The EVM wallet address of the user"}},"required":["chainName","tokens","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":"array","items":{"type":"object","properties":{"token":{"type":"string","description":"Token contract address"},"balance":{"type":"string","description":"Token balance in raw units"}},"required":["token","balance"],"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":"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 borrowed positions with details including borrowed amounts and interest rates.","inputSchema":{"type":"object","properties":{"chainNames":{"type":"array","items":{"type":"string","enum":["ethereum","arbitrum","avalanche","optimism","polygon","metis","base","bsc","scroll","gnosis","plasma"]},"description":"Array of chain names to process"},"userAddress":{"type":"string","description":"The EVM wallet address of the user"}},"required":["chainNames","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":{"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"},"variableBorrowRate":{"type":"string"},"stableBorrowRate":{"type":"string"}},"required":["asset","variableDebt","variableDebtInUSD","stableDebt","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"}},"required":["totalChains","successfulChains","failedChains"],"additionalProperties":false}},"required":["chains","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":"getUserBorrowingPower","description":"Get user's borrowing capacity and current borrowed amounts in USD.","inputSchema":{"type":"object","properties":{"chainNames":{"type":"array","items":{"type":"string","enum":["ethereum","arbitrum","avalanche","optimism","polygon","metis","base","bsc","scroll","gnosis","plasma"]},"description":"Array of chain names to process"},"userAddress":{"type":"string","description":"The EVM wallet address of the user"}},"required":["chainNames","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":{"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"}},"required":["totalChains","successfulChains","failedChains"],"additionalProperties":false}},"required":["chains","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":"getMaximumBorrowsAmount","description":"Calculate maximum amount of tokens that can be borrowed based on user borrowing power and token price","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","arbitrum","avalanche","optimism","polygon","metis","base","bsc","scroll","gnosis","plasma"]},"tokenAddress":{"type":"string","description":"The address of the token to calculate maximum borrow amount for"},"userAddress":{"type":"string","description":"The EVM wallet address of the user"}},"required":["chainName","tokenAddress","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":"getUserCollateral","description":"Get details of user's deposited collateral including asset balances and risk parameters.","inputSchema":{"type":"object","properties":{"chainNames":{"type":"array","items":{"type":"string","enum":["ethereum","arbitrum","avalanche","optimism","polygon","metis","base","bsc","scroll","gnosis","plasma"]},"description":"Array of chain names to process"},"userAddress":{"type":"string","description":"The EVM wallet address of the user"}},"required":["chainNames","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":{"chains":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"collateral":{"type":"array","items":{"type":"object","properties":{"asset":{"type":"string"},"balance":{"type":"string"},"balanceUSD":{"type":"string"},"scaledATokenBalance":{"type":"string"},"usageAsCollateralEnabled":{"type":"boolean"},"ltv":{"type":"string"},"liquidationThreshold":{"type":"string"},"liquidationBonus":{"type":"string"}},"required":["asset","balance","balanceUSD","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"}},"required":["totalChains","successfulChains","failedChains"],"additionalProperties":false}},"required":["chains","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":"getUserHealthIndicators","description":"Get key health indicators for user's position including health factor, LTV, liquidation threshold, and isolation mode status.","inputSchema":{"type":"object","properties":{"chainNames":{"type":"array","items":{"type":"string","enum":["ethereum","arbitrum","avalanche","optimism","polygon","metis","base","bsc","scroll","gnosis","plasma"]},"description":"Array of chain names to process"},"userAddress":{"type":"string","description":"The EVM wallet address of the user"}},"required":["chainNames","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":{"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"}},"required":["totalChains","successfulChains","failedChains"],"additionalProperties":false}},"required":["chains","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":"getAaveV3SupportedChains","description":"Get a list of Aave V3 supported networks with their names and Chain IDs","inputSchema":{"type":"object","properties":{},"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":{"chainId":{"type":"number","description":"EVM chain ID"},"chainName":{"type":"string","description":"Human-readable chain name"}},"required":["chainId","chainName"],"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}]}}]}