Skip to main content
Glama
real-estate-mcp

real-estate-mcp

Affordability

affordability
Read-onlyIdempotent

Estimate maximum home price from gross income, monthly debts, down payment, rate, and term using DTI limits. Add property tax, insurance, and PMI for realistic estimates.

Instructions

Estimate the maximum home price from gross income, monthly debts, down payment, rate, and term. Uses front-end and back-end DTI limits (defaults 28 and 36). Property tax and insurance are optional percents of the price, and PMI is an optional percent of the loan charged above 80 percent LTV. Leaving tax and insurance at zero overstates the price. Results are estimates, not a preapproval.

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": {
      "annualGrossIncome": "<annualGrossIncome>",
      "annualInterestRate": "<annualInterestRate>",
      "termYears": "<termYears>"
    },
    "name": "affordability"
  }
}

Input Schema

NameRequiredDescriptionDefault
termYearsYesLoan term in years, from 1 to 40.
monthlyHoaNoMonthly HOA dues in dollars. Defaults to 0.
downPaymentNoCash down payment in dollars. Defaults to 0.
annualPmiRateNoYearly PMI as a percent of the loan amount, charged only when the loan is above 80 percent of the price. 0.5 means 0.5 percent. Defaults to 0.
annualGrossIncomeYesGross yearly income in dollars, before taxes.
annualInterestRateYesAnnual mortgage rate as a percent. 6.5 means 6.5 percent.
annualInsuranceRateNoYearly homeowners insurance as a percent of the home price. 0.35 means 0.35 percent. Defaults to 0.
monthlyDebtPaymentsNoMonthly debt payments other than the new mortgage, such as auto and student loans. Defaults to 0.
maxBackEndDtiPercentNoMaximum housing payment plus other debts, as a percent of gross monthly income. Defaults to 36.
annualPropertyTaxRateNoYearly property tax as a percent of the home price. 1.1 means 1.1 percent. Defaults to 0.
maxFrontEndDtiPercentNoMaximum housing payment as a percent of gross monthly income. Defaults to 28.

Output Schema

NameRequiredDescriptionDefault
termYearsYes
monthlyHoaYes
monthlyPmiYes
pmiAppliedYes
downPaymentYes
maxHomePriceYesHighest price whose housing payment fits the tighter DTI limit.
maxLoanAmountYes
housingAllowanceYesMonthly housing payment allowed by the tighter DTI limit.
monthlyInsuranceYes
backEndDtiPercentYesHousing payment plus other debts, divided by gross monthly income, as a percent.
bindingConstraintYes
annualInterestRateYes
frontEndDtiPercentYesHousing payment divided by gross monthly income, as a percent.
loanToValuePercentYes
monthlyGrossIncomeYes
monthlyPropertyTaxYes
totalMonthlyPaymentYes
monthlyPrincipalAndInterestYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already establish that this is a read-only, idempotent, non-destructive calculation. The description adds substantive domain behavior beyond that: DTI limits with defaults of 28 and 36, PMI charged above 80% LTV, optional tax and insurance percentages, and the caveat that results are estimates rather than a preapproval.

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

Conciseness5/5

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

The description is front-loaded with the tool's purpose, then moves efficiently through DTI defaults, PMI behavior, and the tax/insurance caveat. Every sentence contributes useful context, and the closing disclaimer is appropriate rather than filler.

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 financial estimator with complete schema coverage and an output schema, the description supplies enough about the calculation mechanics, defaults, and limitations. The main missing piece is routing guidance versus sibling tools, which is primarily a usage-guidelines gap rather than a computational one.

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 11 parameters already have documented units, defaults, and bounds. The description reinforces key inputs and explains DTI/PMI mechanics, but it adds little parameter-level meaning beyond what the schema provides.

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

Purpose4/5

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

The first sentence states a specific verb and resource—estimating maximum home price—and lists the key driving inputs. It is clear on its own, but it does not explicitly differentiate this from siblings such as mortgage_payment, so a 4 rather than 5.

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

Usage Guidelines3/5

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

The description explains the estimation context and warns that leaving tax and insurance at zero overstates the price, which implies when the tool is appropriate. However, it never states when to use this versus mortgage_payment, rent_vs_buy, or the other siblings, and gives no explicit when-not conditions.

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