Skip to main content
Glama

rent vs buy

rent_vs_buy
Read-onlyIdempotent

Renting vs buying a home (US, UK, Canada, Australia, Ireland, Switzerland or New Zealand): the net cost of each over the years you stay, counting the deposit's lost investment return, buying and selling costs, mortgage interest, property tax, maintenance, price growth and rent increases; returns which is cheaper and by how much, and the break-even year. Inputs left out use that country's defaults (the calculator page's example). Use this when someone asks whether to rent or buy, or when buying beats renting.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

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

Input Schema

NameRequiredDescriptionDefault
countryNoCountry (default us)
downPctNoDeposit, % of price
homePriceNoHome price
monthlyRentNoMonthly rent for a comparable home
yearsToStayNoYears you expect to stay (default 10)
investReturnNoReturn on money not put into the home, % a year
mortgageRateNoMortgage rate, %
rentIncreaseNoRent increase, % a year
homeAppreciationNoHouse price growth, % a year

Output Schema

NameRequiredDescriptionDefault
nextNoOptional paid follow-on (name, url, what) where it genuinely helps
noteNoWhen the figures were read, and that this is general information, not advice
pageYesThe calculator page to cite or link, https://decisionscalc.com/...
resultYesThe calculation (usually an object), same engine and figures as the calculator page
sourcesYesOfficial source URLs for the figures used

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "next": {
      +      "description": "Optional paid follow-on (name, url, what) where it genuinely helps",
      +      "properties": {
      +        "name": {
      +          "type": "string"
      +        },
      +        "url": {
      +          "type": "string"
      +        },
      +        "what": {
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "note": {
      +      "description": "When the figures were read, and that this is general information, not advice",
      +      "type": "string"
      +    },
      +    "page": {
      +      "description": "The calculator page to cite or link, https://decisionscalc.com/...",
      +      "type": "string"
      +    },
      +    "result": {
      +      "description": "The calculation (usually an object), same engine and figures as the calculator page"
      +    },
      +    "sources": {
      +      "description": "Official source URLs for the figures used",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "result",
      +    "page",
      +    "sources"
      +  ],
      +  "type": "object"
      +}
  2. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare a safe, read-only, idempotent, closed-world calculation, so the safety profile is covered. The description adds real behavioral context beyond that: the methodology (lost investment return on deposit, buying/selling costs, mortgage interest, tax, maintenance, growth, rent increases) and the fact that omitted inputs fall back to country-specific defaults derived from the calculator page's example. It does not discuss rounding, currency handling, or error cases, but those are minor here.

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?

Front-loaded with the purpose and scope in the opening clause, then the cost components, then the usage trigger. It is a single dense sentence chain that verges on a run-on, but nearly every clause carries distinct information, so little could be cut without losing coverage.

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 9-parameter, all-optional calculator with an output schema and full annotation coverage, the description supplies everything an agent needs: the domain, the countries, the defaulting rule for missing inputs, and the trigger condition. Return-value details are correctly left to the output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, and the description earns an extra point by disclosing defaulting behavior that the schema does not state: omitted inputs take that country's defaults rather than being required or zero. It does not add units or interaction notes (e.g. how downPct and mortgageRate interact) beyond the schema's own descriptions.

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 comparison (net cost of renting vs buying) plus the exact cost components counted, the supported countries, and the two outputs (cheaper option with magnitude, break-even year). This clearly separates it from siblings like home_buying_cash_needed and home_buying_first_year_cost, which compute one-off purchase costs rather than a rent/buy comparison.

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?

Explicit trigger conditions are given: 'Use this when someone asks whether to rent or buy, or when buying beats renting.' That covers the primary invocation context well, but no when-not-to-use cases or named alternatives (e.g. first-year-cost or cash-needed tools) are offered for a user who only wants upfront outlay.

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.