Skip to main content
Glama
real-estate-mcp

real-estate-mcp

Cap rate and cash-on-cash

investment_returns
Read-onlyIdempotent

Estimate cap rate and cash-on-cash return for a rental property, factoring vacancy, operating expenses, and optional financing to compare all-cash and leveraged purchases.

Instructions

Estimate cap rate and cash-on-cash return for a rental property. Cap rate is net operating income divided by purchase price and ignores the loan. Cash-on-cash is annual cash flow after debt service divided by cash invested. Vacancy defaults to 5 percent. Omit the down payment for an all-cash purchase. Do not put the mortgage in operating expenses. Results are estimates.

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": {
      "purchasePrice": "<purchasePrice>",
      "grossAnnualRent": "<grossAnnualRent>",
      "operatingExpensesAnnual": "<operatingExpensesAnnual>"
    },
    "name": "investment_returns"
  }
}

Input Schema

NameRequiredDescriptionDefault
termYearsNoLoan term in years when the purchase is financed. Defaults to 30.
downPaymentNoCash down payment in dollars. Omit it for an all-cash purchase.
closingCostsNoBuyer closing costs in dollars, added to cash invested. Defaults to 0.
purchasePriceYesPurchase price in dollars.
vacancyPercentNoVacancy and credit loss as a percent of gross rent. Defaults to 5.
grossAnnualRentYesYearly scheduled rent in dollars, before vacancy.
otherAnnualIncomeNoOther yearly income, such as parking or laundry, in dollars. Defaults to 0.
annualInterestRateNoAnnual loan rate as a percent, used only when the purchase is financed. Defaults to 0.
operatingExpensesAnnualYesYearly operating expenses in dollars: taxes, insurance, repairs, management, utilities you pay, and HOA. Do not include the mortgage.

Output Schema

NameRequiredDescriptionDefault
allCashYes
termYearsYes
loanAmountYes
vacancyLossYes
cashInvestedYesDown payment plus closing costs. For all cash, the purchase price plus closing costs.
purchasePriceYes
annualCashFlowYesNet operating income minus annual debt service.
capRatePercentYesNet operating income divided by purchase price, as a percent.
vacancyPercentYes
grossAnnualRentYes
annualDebtServiceYes
cashOnCashPercentYesAnnual cash flow divided by cash invested, as a percent. Null when no cash is invested.
otherAnnualIncomeYes
annualInterestRateYes
netOperatingIncomeYesEffective gross income minus operating expenses. The mortgage is not deducted.
effectiveGrossIncomeYes
operatingExpensesAnnualYes
monthlyPrincipalAndInterestYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and non-destructive behavior, so the safety profile is covered. The description adds real behavioral context beyond that: the vacancy default of 5 percent and the caveat 'Results are estimates,' which manages expectations about precision. It doesn't describe the return payload, but an output schema exists.

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 sentences, each doing distinct work: purpose, definition of cap rate, definition of cash-on-cash, and then assumptions and pitfalls. It is front-loaded with the purpose and contains no padding.

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 read-only calculator with a full output schema and complete parameter documentation, the description covers what is missing elsewhere: the formulas behind the outputs, the vacancy default, and the common mistake of bundling the mortgage into operating expenses. An agent can invoke this correctly without further context.

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 are documented in the schema itself. The description restates a few of those rules ('Vacancy defaults to 5 percent') and reinforces one exclusion ('Do not put the mortgage in operating expenses'), but adds little meaning beyond what the schema provides, so the baseline 3 applies.

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 opens with a specific verb and resource, 'Estimate cap rate and cash-on-cash return for a rental property,' and then defines both metrics. This tells the agent exactly what each metric means, including that cap rate ignores the loan, which implicitly distinguishes it from the mortgage-oriented siblings.

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 guidance is implied through the rental-property analysis framing and input conditionals ('Omit the down payment for an all-cash purchase'), but the description never names when to use this tool versus affordability, mortgage_payment, or rent_vs_buy. It handles input hygiene, not tool selection.

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