Skip to main content
Glama

HomeCalc — Canadian Mortgage & Tax Calculators

Rent vs Buy Calculator (Canada)

rent_vs_buy
Read-only

Compare renting with buying over a time horizon: net cost and net wealth of each, the break-even year, and milestone years. Both households start with the same cash (the buyer's down payment and buying costs); each month whoever pays less for housing invests the difference. Net wealth = home equity after selling (+ the buyer's invested savings) vs the renter's portfolio; net cost counts only investment GAINS, so the difference in net cost equals the difference in net wealth. breakEvenYear = first year (1–30) the buyer's net wealth exceeds the renter's.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "monthlyRent": 2200,
      "purchasePrice": 600000
    },
    "name": "rent_vs_buy"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNoCity; Toronto adds municipal LTT, Montreal uses its own welcome-tax bracketsToronto
provinceNoProvince or territory; sets the land transfer taxOntario
monthlyRentYesMonthly rent for a comparable home in CAD
yearsToStayNoHow many years you plan to stay
purchasePriceYesPurchase price of the home in CAD
rentGrowthPctNoYearly rent increase as a percent
downPaymentPctNoDown payment as a percent of the price
sellingCostPctNoCost of selling as a percent of the sale price
landTransferTaxNoYour own land transfer tax figure in CAD, replacing the computed one
mortgageRatePctNoAnnual mortgage rate as a percent
condoFeesMonthlyNoMonthly condo fees in CAD
isFirstTimeBuyerNoEligible for the first-time buyer land transfer tax rebate
amortizationYearsNoAmortization in years
homePriceGrowthPctNoYearly home price growth as a percent
maintenanceMonthlyNoMonthly maintenance and repairs in CAD
propertyTaxRatePctNoAnnual property tax as a percent of value
homeInsuranceAnnualNoAnnual home insurance in CAD
investmentReturnPctNoYearly return the renter earns on invested savings

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / mortgageRatePct / default
      Previous value: -5.23New value: +5.25
  2. Changed4 schema fields changed
    • changedInput schema / properties / city / description
      Previous value: -"City name; 'Toronto' adds the municipal land transfer tax"New value: +"City; Toronto adds municipal LTT, Montreal uses its own welcome-tax brackets"
    • addedInput schema / properties / landTransferTax
      Added value: +{
      +  "description": "Your own land transfer tax figure in CAD, replacing the computed one",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • changedInput schema / properties / province / description
      Previous value: -"Province (land transfer tax is computed for Ontario only)"New value: +"Province or territory; sets the land transfer tax"
    • changedInput schema / properties / province / enum
      Previous value: -[
      -  "Ontario",
      -  "British Columbia",
      -  "Alberta",
      -  "Quebec",
      -  "Nova Scotia",
      -  "Manitoba",
      -  "Saskatchewan",
      -  "New Brunswick",
      -  "PEI",
      -  "Newfoundland and Labrador"
      -]New value: +[
      +  "Ontario",
      +  "British Columbia",
      +  "Quebec",
      +  "Alberta",
      +  "Manitoba",
      +  "Nova Scotia",
      +  "New Brunswick",
      +  "Saskatchewan",
      +  "PEI",
      +  "Newfoundland & Labrador",
      +  "Northwest Territories",
      +  "Nunavut",
      +  "Yukon",
      +  "Newfoundland and Labrador"
      +]
  3. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds real behavioral context beyond that: the equal-cash starting assumption, the monthly invest-the-difference mechanic, how net wealth is composed (home equity after selling plus invested savings vs renter portfolio), and that net cost counts only investment gains.

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

Conciseness4/5

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

The core comparison is front-loaded in the first clause, followed by the modeling assumptions and the breakEvenYear definition. Three dense sentences with no filler, though the net-cost/net-wealth explanation is compressed enough to require careful reading.

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 18-parameter simulation with no output schema, the description carries the necessary burden by defining the returned metrics and the break-even semantics. What remains unstated is the output shape for milestone years and whether the horizon is capped at 30 years, a minor but real gap.

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 18 parameters is already documented in the schema; the baseline of 3 applies. The description contributes only indirectly, referencing the down payment and buying costs as the shared starting cash, but adds no format, unit, or interaction detail beyond 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 ('Compare renting with buying over a time horizon') and enumerates the outputs: net cost, net wealth, break-even year, milestone years. This clearly separates it from point-solution siblings like cap_rate, mortgage_affordability, or rent_increase, which answer narrower questions.

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 tool name and the comparison framing, but there is no explicit when-to-use guidance, no statement of when a sibling (e.g., mortgage_affordability for pure affordability, cap_rate for investment yield) is the better choice, and no mention of prerequisites or limits on the Canadian scope assumptions.

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