Skip to main content
Glama

Commercial.Mortgage: programs, rates and loan sizer

Match a deal to commercial mortgage programs

match_programs
Read-onlyIdempotent

Rank the commercial mortgage programs (agency, FHA/HUD, bank, credit union, life company, CMBS, bridge, debt fund, DSCR, construction and more) that fit a deal, with the reasons and cautions for each, today's indicative rate (live index plus the program's published spread), and an estimate of the largest loan each program's published LTV/LTC, DSCR and debt-yield limits allow. Programs that do not fit are listed with the reason. Same rules as the site's /find-your-loan/ matcher.

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": "<property>",
      "purpose": "<purpose>",
      "loan_amount": "<loan_amount>"
    },
    "name": "match_programs"
  }
}

Input Schema

NameRequiredDescriptionDefault
noiNoAnnual net operating income in dollars (for DSCR and debt yield).
costNoTotal project cost in dollars, for construction (land plus hard and soft costs, for LTC).
limitNoHow many ranked programs to return (default 6).
unitsNoApartment units, for multifamily (5 to 50 units also matches small-balance programs).
valueNoProperty value or purchase price in dollars (for LTV).
creditNoSponsor credit: strong, fair (some blemishes) or challenged (recent bankruptcy, foreclosure or serious late payments). Default strong.
purposeYespurchase, refinance (rate and term), cash-out, construction, bridge (value-add or lease-up), renovation.
propertyYesProperty type, one of the listed values. Specialty types list only programs confirmed to accept them.
recourseNoNon-recourse required, preferred, or any. Default any.
timelineNoClosing need: urgent (under 30 days), soon (30 to 60), normal (60 to 90), flexible. Default flexible.
occupancyNostabilized (leased up, steady income), transitional (lease-up or value-add) or vacant. Default stabilized.
loan_amountYesLoan wanted, in dollars.
ground_leaseNoTrue if the property sits on a ground lease.
credit_tenantNoTrue if one creditworthy tenant leases the whole building long term.
existing_loanNoFor a refinance: the current loan (agency = Fannie Mae or Freddie Mac, fha = FHA-insured). Needed for supplemental and 223(a)(7) loans.
owner_occupiedNoTrue if the borrower's own business occupies the building.
existing_balanceNoBalance of the existing first loan, in dollars. Supplemental loans are sized on combined debt, so they need it.
existing_paymentNoMonthly payment on the existing first loan, in dollars (for the combined coverage test on a supplemental loan).
multiple_propertiesNoTrue to finance several properties in one loan.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / property / description
      Previous value: -"Property type: multifamily, mixed-use, retail, office, medical-office, industrial, self-storage, manufactured-housing, hotel, senior-housing, student-housing, affordable-housing, special-purpose, land."New value: +"Property type, one of the listed values. Specialty types list only programs confirmed to accept them."
    • changedInput schema / properties / property / enum
      Previous value: -[
      -  "multifamily",
      -  "mixed-use",
      -  "retail",
      -  "office",
      -  "medical-office",
      -  "industrial",
      -  "self-storage",
      -  "manufactured-housing",
      -  "hotel",
      -  "senior-housing",
      -  "student-housing",
      -  "affordable-housing",
      -  "special-purpose",
      -  "land"
      -]New value: +[
      +  "multifamily",
      +  "mixed-use",
      +  "retail",
      +  "office",
      +  "medical-office",
      +  "industrial",
      +  "self-storage",
      +  "manufactured-housing",
      +  "hotel",
      +  "senior-housing",
      +  "student-housing",
      +  "affordable-housing",
      +  "special-purpose",
      +  "land",
      +  "cooperative-apartments",
      +  "build-to-rent-communities",
      +  "single-family-rental-portfolios",
      +  "rv-parks-campgrounds",
      +  "grocery-anchored-shopping-centers",
      +  "regional-malls",
      +  "restaurants",
      +  "quick-service-restaurants",
      +  "bars-nightclubs",
      +  "gas-stations-convenience-stores",
      +  "car-washes",
      +  "auto-repair-shops",
      +  "auto-dealerships",
      +  "pharmacies",
      +  "bank-branches",
      +  "cold-storage",
      +  "truck-terminals-outdoor-storage",
      +  "manufacturing-facilities",
      +  "data-centers",
      +  "life-science-labs",
      +  "dental-offices",
      +  "veterinary-clinics",
      +  "urgent-care-clinics",
      +  "ambulatory-surgery-centers",
      +  "coworking-buildings",
      +  "extended-stay-hotels",
      +  "motels",
      +  "resorts",
      +  "short-term-rental-portfolios",
      +  "marinas",
      +  "golf-courses",
      +  "fitness-centers",
      +  "entertainment-venues",
      +  "event-venues",
      +  "movie-theaters",
      +  "churches",
      +  "private-schools",
      +  "daycare-centers",
      +  "funeral-homes",
      +  "hospitals",
      +  "nursing-homes",
      +  "behavioral-health-facilities",
      +  "parking-facilities",
      +  "laundromats",
      +  "farms-ranches",
      +  "vineyards-wineries",
      +  "cannabis-facilities",
      +  "condominium-projects"
      +]
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already establish the safety profile (read-only, idempotent, non-destructive, closed-world), and the description adds real behavior beyond them: non-fitting programs are still returned with a stated reason, the rate is explicitly indicative (live index plus published spread), and the loan maximum is an estimate derived from published LTV/LTC, DSCR and debt-yield limits. That tells the agent how to interpret and caveat the output.

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 verb and the ranked output, and the long parenthetical program-family list is informative rather than filler. It is a single dense sentence plus a short pointer sentence, though the inline enumeration could be trimmed without losing meaning.

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 19-parameter tool with no output schema, the description still explains what comes back: ranked fits with reasons and cautions, an indicative rate with its derivation, a maximum-loan estimate, and the rejected programs with reasons. Combined with full schema coverage and annotations, an agent has everything needed to call it and interpret results.

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% and every one of the 19 parameters carries an inline description, including enum meanings and defaults, so the schema does the heavy lifting. The description only indirectly links inputs to computations (LTV/LTC, DSCR, debt yield) and does not add syntax or edge-case meaning for parameters such as existing_loan, ground_lease or credit_tenant. Baseline 3 is appropriate.

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?

A specific verb (rank) applied to a specific resource (commercial mortgage programs), with the program families named and the return contents spelled out: reasons, cautions, indicative rate, max loan estimate, and explicitly-flagged non-fits. An agent can tell this is a deal-to-program matcher and not a rate lookup or a sizing calculator.

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?

The context of use is clear: given a deal's property, purpose and loan amount, rank fitting programs. The reference to the site's /find-your-loan/ matcher reinforces the intent. However, no sibling is named as an alternative or exclusion (e.g., compare_programs, size_loan, program_rules), so the agent must infer routing from sibling names alone.

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