Skip to main content
Glama

Commercial.Mortgage: programs, rates and loan sizer

Estimate a commercial mortgage prepayment penalty

prepayment_estimate
Read-onlyIdempotent

Estimate 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

NameRequiredDescriptionDefault
methodYesWhich prepayment provision the note has.
balanceYesPrincipal being prepaid (or the debenture balance), in dollars.
scheduleNoFor step_down: a Fannie Mae declining schedule, or custom with custom_schedule.
loan_yearNoFor step_down and sba_504: the loan (or debenture) year of the prepayment, 1 = first year.
fixed_costsNoFor defeasance: legal, accountant, rating agency and servicer costs in dollars to add (default 0).
note_rate_pctNoNote rate in percent (for sba_504, the debenture rate). Required except for step_down.
custom_scheduleNoFor step_down with schedule custom: percent of balance by loan year, e.g. [5, 4, 3, 2, 1].
debenture_yearsNoFor sba_504: debenture term in years.
months_remainingNoMonths from the prepayment date to the end of the yield maintenance period (Fannie/Freddie) or to the open date or maturity (CMBS, defeasance).
amortization_yearsNoFor CMBS yield maintenance and defeasance: amortization in years; 0 = interest only (default).
treasury_yield_pctNoTreasury yield to discount at, in percent. Default: today's 5/7/10-year Treasury interpolated to months_remaining.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare read-only, idempotent, closed-world, so the safety profile is covered elsewhere. The description adds real value by disclosing the default Treasury interpolation behavior and that schedules/minimums come from verified loan-document facts rather than free-form input.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the purpose, then the method list, then the defaults and provenance notes. The six-method enumeration partially repeats the enum but is justified as scope signaling; no filler sentences.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 11-parameter calculator with no output schema, the description covers methodology, defaults and data provenance well. It stops short of saying what the response contains (a single premium figure, a breakdown by year, minimums applied), which is the main remaining gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so every parameter is already documented at the field level. The description only reinforces the Treasury default and the loan-document provenance of schedules, adding little beyond the schema; baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Estimate') and resource ('prepayment premium on a commercial mortgage'), then enumerates the six supported methodologies. This makes it instantly distinguishable from the sibling rate/program tools, which do not compute penalties.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Names the six methods and ties each to the note's prepayment provision, which effectively tells the agent which case to pick. It doesn't state exclusions (e.g. when to defer to size_loan or program_rules for the underlying loan terms), but the usage context is clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources