Skip to main content
Glama

Free Tool Directory

rent-vs-buy-calculator

Rent vs. Buy Calculator — Compare the total long-term cost of renting vs buying a home over a horizon you choose, including mortgage, tax, insurance, maintenance and equity.

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": {
      "price": "<price>",
      "rent": "<rent>"
    },
    "name": "rent-vs-buy-calculator"
  }
}

Input Schema

NameRequiredDescriptionDefault
taxNoProperty tax, % of price per year.
downNoDown payment, % of price.
rateNoMortgage rate, % per year.
rentYesMonthly rent.
termNoMortgage term, years.
priceYesHome purchase price.
horizonNoComparison horizon, years.
insuranceNoHome insurance per year.
rentGrowthNoAnnual rent growth, %.
maintenanceNoMaintenance, % of price per year.
appreciationNoAnnual home appreciation, %.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changed
    • addedInput schema / properties / appreciation
      Added value: +{
      +  "default": 3,
      +  "description": "Annual home appreciation, %.",
      +  "type": "number"
      +}
    • addedInput schema / properties / down
      Added value: +{
      +  "default": 20,
      +  "description": "Down payment, % of price.",
      +  "type": "number"
      +}
    • addedInput schema / properties / horizon
      Added value: +{
      +  "default": 10,
      +  "description": "Comparison horizon, years.",
      +  "type": "integer"
      +}
    • addedInput schema / properties / insurance
      Added value: +{
      +  "default": 1500,
      +  "description": "Home insurance per year.",
      +  "type": "number"
      +}
    • addedInput schema / properties / maintenance
      Added value: +{
      +  "default": 1,
      +  "description": "Maintenance, % of price per year.",
      +  "type": "number"
      +}
    • addedInput schema / properties / price
      Added value: +{
      +  "description": "Home purchase price.",
      +  "type": "number"
      +}
    • addedInput schema / properties / rate
      Added value: +{
      +  "default": 6,
      +  "description": "Mortgage rate, % per year.",
      +  "type": "number"
      +}
    • addedInput schema / properties / rent
      Added value: +{
      +  "description": "Monthly rent.",
      +  "type": "number"
      +}
    • addedInput schema / properties / rentGrowth
      Added value: +{
      +  "default": 3,
      +  "description": "Annual rent growth, %.",
      +  "type": "number"
      +}
    • addedInput schema / properties / tax
      Added value: +{
      +  "default": 1,
      +  "description": "Property tax, % of price per year.",
      +  "type": "number"
      +}
    • addedInput schema / properties / term
      Added value: +{
      +  "default": 30,
      +  "description": "Mortgage term, years.",
      +  "type": "integer"
      +}
    • addedInput schema / required
      Added value: +[
      +  "price",
      +  "rent"
      +]
  2. First observed

TDQS

A3.5/5.0
Behavior3/5

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

No annotations exist, so the description carries the full behavioral burden. It usefully discloses the calculation model's inputs (mortgage, tax, insurance, maintenance) and that equity is accounted for, which is real value beyond the schema. However, it says nothing about the underlying assumptions, whether the down payment's opportunity cost is modeled, or what form the comparison result takes.

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?

A single sentence, front-loaded with the tool name and the core comparison, with the em-dash clause adding scope rather than filler. Nothing is redundant or padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 11 parameters, no annotations, and no output schema, the definition is thinner than the tool's complexity warrants. It covers the inputs conceptually but leaves the return value and key modeling assumptions unexplained, which matters for an agent interpreting or relaying 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%, so every one of the 11 parameters is already documented with units and defaults in the schema. The description reinforces the model's components but adds no format or interaction detail (e.g., that rentGrowth and appreciation drive the divergence over the horizon) beyond what the schema states.

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 description uses a specific verb ('Compare') and a well-scoped resource ('total long-term cost of renting vs buying a home over a horizon you choose'), and enumerates the cost components included. It clearly is not a plain mortgage payment tool, but it never names a sibling such as loan-calculator or interest-only-mortgage-calculator to draw the boundary explicitly.

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 only implied by the phrase 'over a horizon you choose' — the reader infers this is for long-run rent-vs-buy decisions. There is no statement of when to prefer this over a simple mortgage calculator, no prerequisites, and no exclusions (e.g., that it ignores closing costs or investment returns on the down payment).

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