Skip to main content
Glama

Commercial.Mortgage: programs, rates and loan sizer

Size a commercial mortgage

size_loan
Read-onlyIdempotent

The largest commercial mortgage a property supports under a lender type's loan-to-value, DSCR and debt-yield limits, which test binds, the monthly payment, and the resulting LTV, DSCR, debt yield and cap rate. Same math and defaults as the site's loan sizer; omit lender_type to size the deal under all five lender types.

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": {
      "property_value": "<property_value>",
      "noi": "<noi>"
    },
    "name": "size_loan"
  }
}

Input Schema

NameRequiredDescriptionDefault
noiYesAnnual net operating income in dollars, e.g. 350000.
min_dscrNoOverride the minimum debt service coverage ratio, e.g. 1.25.
lender_typeNobank, life-company, cmbs, agency (multifamily only) or debt-fund. Omit to compare all five.
max_ltv_pctNoOverride the lender type's maximum loan-to-value, in percent.
property_valueYesProperty value or purchase price in dollars, e.g. 5000000.
requested_loanNoOptional loan amount you want, in dollars; the answer says whether it fits.
interest_rate_pctNoYour note rate in percent, e.g. 6.25. Default: the lender type's index today plus the middle of its published spread range.
amortization_yearsNoAmortization in years; 0 means interest only. Default: the lender type's (25 or 30; debt funds 0).
min_debt_yield_pctNoOverride the minimum debt yield in percent; 0 turns the debt-yield test off.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare the safe read-only, idempotent profile, and the description adds real context beyond them: it discloses that default rate/amortization come from the lender type's index plus mid-spread and that the math matches the site's loan sizer, so results are predictable. It stops short of noting limits or that missing lender_type widens output fivefold beyond the earlier hint.

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?

Two sentences with no filler; the core computation and its outputs are front-loaded before the lender_type routing note. The first sentence is long and dense with output names, but every clause carries information.

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

Completeness5/5

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

For a nine-parameter, no-output-schema computation tool, the description explicitly enumerates what comes back (binding test, monthly payment, LTV, DSCR, debt yield, cap rate), so an agent knows the return shape and default behavior without an output schema.

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 all nine parameters, including defaults and the 0-means-interest-only and 0-turns-off-debt-yield semantics, are already documented in the schema. The description adds only the modeling context that requested_loan yields a fits/doesn't-fit verdict, which is marginal over the schema.

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?

The description states a specific computation ('largest commercial mortgage a property supports under a lender type's LTV, DSCR and debt-yield limits') and enumerates the outputs, which cleanly separates it from siblings like match_programs and compare_programs that match or compare rather than size.

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?

It gives a concrete routing rule — 'omit lender_type to size the deal under all five lender types' — which tells an agent how to use the tool for comparison. It does not explicitly say when to prefer this over match_programs or compare_programs, so it falls short of full when/when-not guidance.

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