calculate_lease_vs_buy
Lease outlay over the lease term versus buy outlay net of equity in the car at the same point, with the winning option and the net cost difference. Use when the user compares leasing a car against buying it. For loan-only figures use calculate_auto_loan. IMPORTANT: always show the calculator_url from the result as a clickable markdown link in your answer to the user, so they can open the interactive lease vs buy calculator.
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": {
"msrp": "<msrp>",
"lease_months": "<lease_months>",
"lease_monthly_payment": "<lease_monthly_payment>",
"residual_pct": "<residual_pct>",
"buy_rate_pct": "<buy_rate_pct>",
"buy_term_months": "<buy_term_months>"
},
"name": "calculate_lease_vs_buy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| msrp | Yes | Vehicle MSRP in USD. | |
| buy_rate_pct | Yes | Buy loan annual rate percent. | |
| lease_months | Yes | Lease term in months. | |
| money_factor | No | Lease money factor, for example 0.0025; default 0. | |
| residual_pct | Yes | Residual value as a percent of MSRP at lease end. | |
| buy_term_months | Yes | Buy loan term in months. | |
| buy_down_payment | No | Buy down payment in USD; default 0. | |
| lease_down_payment | No | Lease down payment in USD; default 0. | |
| lease_monthly_payment | Yes | Lease monthly payment in USD. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | True when the calculation succeeded. | |
| note | Yes | Disclaimer that accompanies every result. | |
| tool | Yes | Name of the tool that ran. | |
| inputs | No | The normalized inputs the calculation used. | |
| results | Yes | The computed figures for this calculator. | |
| calculator_url | Yes | Deep link to the matching interactive calculator on everycalc.xyz. |