Skip to main content
Glama

Estimate how much home a buyer can afford

estimate_home_affordability
Read-onlyIdempotent

Estimates a comfortable maximum home price from gross income, monthly debts, down payment, interest rate and expected taxes, insurance and HOA, using common 28% housing and 36% total debt-to-income guidelines. Use it when someone asks how much house or condo they can afford on Florida's Emerald Coast. Lenders' actual limits vary by loan program.

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": {
      "annual_gross_income": "<annual_gross_income>",
      "down_payment": "<down_payment>"
    },
    "name": "estimate_home_affordability"
  }
}

Input Schema

NameRequiredDescriptionDefault
loan_yearsNoLoan term in years. Default 30
monthly_hoaNoHOA or condo dues per month. Default 0
down_paymentYesCash available for the down payment, in dollars
annual_insuranceNoHomeowners, wind and flood insurance per year, in dollars. Default 6,000
annual_gross_incomeYesHousehold gross (pre-tax) income per year, in US dollars
interest_rate_percentNoMortgage interest rate. Default 7
monthly_debt_paymentsNoOther monthly debt payments (car, student loans, minimum card payments), in dollars. Default 0
annual_property_tax_percentNoProperty tax as a percent of price per year. Default 1

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety burden is lifted. The description adds genuine context beyond them: the 28/36 guideline basis, the 'comfortable maximum' framing that signals an estimate rather than an approval, and the caveat that lenders' actual limits vary by loan program.

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?

Three sentences ordered as what-it-does, when-to-use, and caveat, with the calculation basis front-loaded. No filler or duplicated title phrasing; each sentence carries distinct information.

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?

With 8 parameters fully described and no output schema, the description covers intent, method and caveat, and the first sentence implies the returned value is a single maximum price. It could be tighter about what the response contains and how the default assumption values affect results, but nothing essential to calling it correctly is missing.

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 including defaults, ranges and units is already documented. The description enumerates the same drivers (gross income, debts, down payment, rate, taxes, insurance, HOA) without adding format, interaction or weighting guidance, so it does little beyond restating 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?

States a specific verb and resource (estimates a maximum affordable home price) plus the exact input drivers and the 28%/36% DTI methodology. It is clearly distinguishable from value-oriented siblings like get_home_value_report and cost-oriented siblings like estimate_florida_closing_taxes.

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?

Gives an explicit trigger: 'Use it when someone asks how much house or condo they can afford on Florida's Emerald Coast.' That scopes both intent and geography. It stops short of naming a sibling to use instead (e.g., for the value of a specific listing) or stating when-not to use it.

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.