omni_cdp_health_factor_ltv
Calculate CDP health factor, LTV, collateral drop tolerance, and safe additional borrowing for MakerDAO, Aave, and Compound vaults to assess liquidation risk.
Instructions
Collateralized Debt Position (CDP) LTV & Liquidation Health Factor. Calculate Health Factor, Loan-to-Value (LTV), and collateral drop buffer before liquidation on MakerDAO (DAI), Aave, and Compound lending vaults. Discipline: CRYPTO. Governing mathematical model / formula: Health Factor = (Collateral Value × Liquidation Threshold) / Total Borrowed Debt.
USAGE GUIDELINES:
WHEN TO USE: Invoke for deterministic calculation of current_health_factor (Vault Health Factor (HF)), current_ltv_pct (Current Loan-to-Value (LTV)), collateral_drop_tolerance (Collateral Price Drop to Liquidation), max_additional_borrow (Safe Additional Borrowing Capacity) using deposited_collateral_usd (Total Collateral Deposited ($ USD)), borrowed_debt_usd (Total Borrowed Debt ($ USD)), liquidation_threshold_pct (Protocol Liquidation Threshold (%) in %). Guarantees exact machine floating-point precision, eliminating LLM arithmetic mistakes and formula hallucinations.
WHEN NOT TO USE: Do not use for qualitative evaluations or unquantified reasoning. All input parameters must be valid numerical values.
DISAMBIGUATION & BOUNDARIES:
Use this dedicated specialist tool for 'Collateralized Debt Position (CDP) LTV & Liquidation Health Factor' rather than generic dispatchers like omni_universal_query.
For multi-calculation chained jobs, use 'omni_batch_calculate'.
To inspect schema fields, see 'omni_describe_solver'.
BEHAVIOR & SAFETY:
Pure deterministic computation with machine floating-point precision.
Read-only, idempotent, and stateless. Zero side effects or persistent state mutations.
Input validation: All arguments are validated against physical and domain bounds. Out-of-bounds inputs return a safe diagnostic error status without throwing runtime exceptions.
RETURNS:
Structured JSON object containing:
status (string): "success" on valid execution or "error" if validation fails
calculator (string): "cdp-health-factor-ltv"
category (string): "crypto"
name (string): "Collateralized Debt Position (CDP) LTV & Liquidation Health Factor"
formula (string): Governing mathematical formula string
inputs (object): Echoed input parameter dictionary with applied defaults
metrics (object): Dictionary of computed outputs:
metrics.current_health_factor (Vault Health Factor (HF)): Formatted display string (e.g. '1.65')
metrics.current_ltv_pct (Current Loan-to-Value (LTV)): Formatted display string (e.g. '50.0%')
metrics.collateral_drop_tolerance (Collateral Price Drop to Liquidation): Formatted display string (e.g. '-39.4% Cushion')
metrics.max_additional_borrow (Safe Additional Borrowing Capacity): Formatted display string (e.g. '$4,125.00')
execution_time_ms (number): Latency in milliseconds.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "omni_cdp_health_factor_ltv"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| borrowed_debt_usd | No | Total Borrowed Debt ($ USD). Outstanding borrowed loan balance (e.g. USDC, DAI). Default: 12500. Min: 100. Max: 2500000. | |
| deposited_collateral_usd | No | Total Collateral Deposited ($ USD). Market value of pledged collateral (e.g. ETH, WBTC). Default: 25000. Min: 500. Max: 5000000. | |
| liquidation_threshold_pct | No | Protocol Liquidation Threshold (%) (%). Maximum LTV before vault liquidation triggers (Aave ETH = 82.5%). Default: 82.5. Min: 50. Max: 95. |