quote_borrow
Get pre-sign borrow metrics: health factor, liquidation price, and cap compliance. Validate the loan against Cluby's exact market arithmetic.
Instructions
What a borrow would do before it is signed: health factor, liquidation price, and whether it exceeds the cap the app enforces.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"market": "<market>",
"collateralAmount": "<collateralAmount>",
"borrowAmount": "<borrowAmount>"
},
"name": "quote_borrow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| market | Yes | ||
| borrowAmount | Yes | Loan asset in whole units (USDG) | |
| collateralAmount | Yes | Collateral in whole tokens |