Skip to main content
Glama
real-estate-mcp

real-estate-mcp

Rent versus buy

rent_vs_buy
Read-onlyIdempotent

Compare the long-term wealth impact of renting versus buying a home, including mortgage interest, carrying costs, closing costs, rent growth, appreciation, and investment returns.

Instructions

Compare renting and buying over a horizon on a change-in-wealth basis. Buying includes interest, carrying costs, closing costs, selling costs, and appreciation. Renting includes rent growth and an investment return on the cash the buyer would have used. Principal paydown is equity, not a loss. Results are estimates, not advice.

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": {
      "homePrice": "<homePrice>",
      "downPayment": "<downPayment>",
      "annualInterestRate": "<annualInterestRate>",
      "termYears": "<termYears>",
      "monthlyRent": "<monthlyRent>",
      "horizonYears": "<horizonYears>"
    },
    "name": "rent_vs_buy"
  }
}

Input Schema

NameRequiredDescriptionDefault
homePriceYesHome price in dollars.
termYearsYesLoan term in years.
monthlyHoaNoMonthly HOA dues in dollars. Defaults to 0.
monthlyPmiNoMonthly PMI in dollars, charged only while the loan term is still running. Defaults to 0.
downPaymentYesCash down payment in dollars.
monthlyRentYesCurrent monthly rent in dollars for a comparable home.
horizonYearsYesHow many years to compare. Payments stop if the loan term ends first.
annualInsuranceNoYearly homeowners insurance in dollars. Held flat over the horizon. Defaults to 0.
annualPropertyTaxNoYearly property tax in dollars. Held flat over the horizon. Defaults to 0.
annualInterestRateYesAnnual mortgage rate as a percent. 6.5 means 6.5 percent.
buyingClosingCostsNoBuyer closing costs in dollars. Defaults to 0.
monthlyMaintenanceNoMonthly maintenance reserve in dollars. Defaults to 0.
sellingCostPercentNoCost to sell at the end, as a percent of the future home value. Defaults to 6.
annualAppreciationPercentNoYearly home appreciation as a percent. Defaults to 3.
annualRentIncreasePercentNoYearly rent increase as a percent. Defaults to 3.
alternateInvestmentReturnPercentNoYearly return the renter could earn on the cash the buyer uses for the down payment and buying closing costs. Defaults to 5.

Output Schema

NameRequiredDescriptionDefault
totalHoaYes
totalPmiYes
homePriceYes
wealthGapYesHow much more wealth the better choice produces. Zero when they tie.
loanAmountYes
downPaymentYes
betterChoiceYes
horizonYearsYes
saleProceedsYesFuture value minus selling costs and the remaining loan.
sellingCostsYes
totalRentPaidYes
totalInsuranceYes
endingHomeValueYes
totalMaintenanceYes
totalPropertyTaxYes
buyerWealthChangeYesSale proceeds after selling costs, minus the price, buying costs, interest, and carrying costs. Principal paid is equity, so it is not treated as a loss.
totalInterestPaidYes
buyingClosingCostsYes
renterWealthChangeYesInvestment gain on the avoided cash outlay, minus rent paid.
sellingCostPercentYes
totalPrincipalPaidYes
firstMonthOwnerCashYesFirst monthly owner check: principal, interest, tax, insurance, HOA, maintenance, and PMI.
startingMonthlyRentYes
remainingLoanBalanceYes
renterInvestmentGainYes
totalOwnerCashOutlayYesCash the buyer writes: down payment, closing costs, mortgage payments, and carrying costs.
annualAppreciationPercentYes
annualRentIncreasePercentYes
alternateInvestmentReturnPercentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the description needn't cover safety. It adds real value beyond that by disclosing the model's inclusions on each side (interest, carrying costs, closing/selling costs, appreciation; rent growth, opportunity return on buyer cash) and by clarifying that principal paydown is equity, not a loss — a modeling assumption an agent could otherwise misreport.

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?

Four short sentences, front-loaded with the core comparison and its basis, followed by the model's scope and caveats. Nothing is redundant and the estimate/not-advice disclaimer earns its place.

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 a 16-parameter financial model with full schema coverage, full annotations and an output schema, the description covers the essential methodology and limits its own authority appropriately. It stops short of explaining the default assumptions (appreciation, rent growth, alternate return, selling costs) that materially shape results, though the schema does supply them.

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 one of the 16 parameters is already documented with units, defaults and bounds. The description adds conceptual meaning (rent growth, alternate investment return on the buyer's cash) but no parameter-specific detail beyond what the schema provides, making the baseline 3 correct.

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 ('Compare renting and buying') plus the exact accounting frame ('change-in-wealth basis'), which alone separates it from mortgage_payment or affordability. An agent can tell this is a full rent-vs-buy wealth comparison without opening the schema.

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?

Usage is implied by the comparison framing, but there is no explicit when-to-use or when-not guidance and no sibling is named. The agent must infer that affordability or mortgage_payment should be used for narrower questions.

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