lending.risk.assess
ActiveTool of Syenite
Evaluates the risk of a proposed lending position before it is opened — fetching live rates, current asset price, and available liquidity from Aave v3, Morpho Blue, and Spark to compute position-specific risk metrics. Call this before `lending.supply` and `lending.borrow` whenever an agent is about to open or resize a collateralized borrow; it surfaces the protocol with the lowest borrow APY that accepts the target LTV. Provide `collateral` asset symbol (e.g. "wBTC", "wstETH"), `collateralAmount` (token units), `targetLTV` (percentage, e.g. 60), and optionally `borrowAsset` (default "USDC") and `protocol` preference ("aave-v3", "spark", "morpho-blue", or "best"). Returns a risk score (1–10), liquidation price and distance, liquidation penalty in USD, position sizing warnings if the borrow is large relative to pool liquidity, collateral-specific depeg notes, protocol oracle and governance notes, estimated annual borrow cost, and an actionable plain-language summary; does not execute any transaction.
Parameters schema
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"collateral",
"collateralAmount",
"targetLTV"
],
"properties": {
"protocol": {
"enum": [
"aave-v3",
"morpho",
"spark",
"best"
],
"type": "string",
"default": "best",
"description": "Protocol preference"
},
"targetLTV": {
"type": "number",
"maximum": 99,
"minimum": 1,
"description": "Desired LTV percentage (1-99)"
},
"collateral": {
"type": "string",
"description": "Collateral asset: \"wBTC\", \"tBTC\", \"cbBTC\", \"WETH\", \"wstETH\", \"rETH\", \"cbETH\", \"weETH\""
},
"borrowAsset": {
"type": "string",
"default": "USDC",
"description": "Asset to borrow"
},
"collateralAmount": {
"type": "number",
"description": "Amount of collateral",
"exclusiveMinimum": 0
}
}
}No endpoints wrapped at confidence ≥ 0.70.
Parent server
Syenite
https://github.com/syenite-ai/syenite
1/7 registries