Quote a loan
quote_borrowExact loan quote using the same math the contract runs: USDC you receive after the fee, buyback cost, due date, and how much collateral is used. It replays the lender queue, so the funded amount matches what the loan would really get, and warns (with a suggested amount) when a loan would be funded short.
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": {
"asset": "<asset>",
"collateral_amount": "<collateral_amount>",
"term": "<term>"
},
"name": "quote_borrow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| term | Yes | Loan term: short, medium or long (or 0/1/2). Durations and costs come from get_protocol_info. | |
| asset | Yes | Token contract address on Base (preferred) or its symbol, e.g. WETH, VIRTUAL, esALB | |
| loan_amount_usdc | No | Loan amount before the fee. Omit to borrow the most the collateral allows. | |
| collateral_amount | Yes | Collateral to offer, in token units, e.g. 0.5 |