Estimate a commercial mortgage prepayment penalty
prepayment_estimateEstimate the prepayment premium on a commercial mortgage: Fannie Mae-style yield maintenance (Form 6104.01, annual discounting), Freddie Mac yield maintenance (monthly), CMBS yield maintenance, a defeasance cost estimate, a Fannie Mae declining (step-down) schedule, or an SBA 504 debenture premium. Treasury yields default to today's readings, interpolated to the time left. Same math as the site's prepayment calculator; schedules and minimums come from the verified loan-document facts.
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": {
"method": "<method>",
"balance": "<balance>"
},
"name": "prepayment_estimate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | Yes | Which prepayment provision the note has. | |
| balance | Yes | Principal being prepaid (or the debenture balance), in dollars. | |
| schedule | No | For step_down: a Fannie Mae declining schedule, or custom with custom_schedule. | |
| loan_year | No | For step_down and sba_504: the loan (or debenture) year of the prepayment, 1 = first year. | |
| fixed_costs | No | For defeasance: legal, accountant, rating agency and servicer costs in dollars to add (default 0). | |
| note_rate_pct | No | Note rate in percent (for sba_504, the debenture rate). Required except for step_down. | |
| custom_schedule | No | For step_down with schedule custom: percent of balance by loan year, e.g. [5, 4, 3, 2, 1]. | |
| debenture_years | No | For sba_504: debenture term in years. | |
| months_remaining | No | Months from the prepayment date to the end of the yield maintenance period (Fannie/Freddie) or to the open date or maturity (CMBS, defeasance). | |
| amortization_years | No | For CMBS yield maintenance and defeasance: amortization in years; 0 = interest only (default). | |
| treasury_yield_pct | No | Treasury yield to discount at, in percent. Default: today's 5/7/10-year Treasury interpolated to months_remaining. |