Skip to main content
Glama

MaliMoney Calculators

Rent Vs Buy

rent_vs_buy
Read-onlyIdempotent

Compares the financial outcomes of renting and buying over a planned stay using housing costs, appreciation, and investment assumptions. Use when evaluating whether a home purchase makes financial sense relative to 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
homePriceNoHome purchase price in dollars; defaults to 0.
monthlyRentNoStarting monthly rent in dollars; defaults to 0.
insurancePctNoAnnual homeowners insurance cost as a percentage of home value, expressed as 0.5 for 0.5%, not 0.005.
yearsStayingNoPlanned length of stay in years; defaults to 7.
buyingCostPctNoBuying transaction costs as a percentage of home purchase price, expressed as 3 for 3%, not 0.03.
loanTermYearsNoMortgage term in years, with a minimum of 1; defaults to 30, and a zero value is treated as 30.
downPaymentPctNoDown payment as a percentage of home price, expressed as 20 for 20%, not 0.20; defaults to 20 and is limited to 0–100.
maintenancePctNoAnnual maintenance cost as a percentage of home value, expressed as 1 for 1%, not 0.01.
propertyTaxPctNoAnnual property tax as a percentage of home value, expressed as 1 for 1%, not 0.01.
sellingCostPctNoSelling transaction costs as a percentage of home sale price, expressed as 6 for 6%, not 0.06.
mortgageRatePctNoAnnual mortgage interest percentage, expressed as 6.5 for 6.5%, not 0.065; defaults to 6.5.
rentInflationPctNoAnnual rent increase percentage, expressed as 3 for 3%, not 0.03; defaults to 3.
homeAppreciationPctNoAnnual home value appreciation percentage, expressed as 3 for 3%, not 0.03; defaults to 3.
investmentReturnPctNoAnnual return percentage on invested savings, expressed as 6 for 6%, not 0.06; defaults to 6.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is fully covered. The description adds that the model accounts for housing costs, appreciation, and investment assumptions, which hints at the opportunity-cost logic, but says nothing about the result shape, break-even framing, or assumptions' sensitivity. With annotations carrying the behavior burden, this is adequate but thin.

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?

Two sentences, zero filler, with the purpose front-loaded before the usage cue. Every sentence earns its place and nothing is repeated from the schema or annotations.

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?

This is a 14-parameter modeling tool with no output schema, so the description should at minimum characterize what comes back (e.g., a cost comparison or break-even horizon). It explains inputs conceptually but leaves the agent guessing about the return value and whether unsupplied defaults meaningfully shape the answer.

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%, and the schema already spells out percentage conventions (e.g., '20 for 20%, not 0.20') and defaults. The description only gestures at three assumption families (appreciation, investment returns, housing costs) without adding meaning beyond the schema. Baseline 3 is appropriate when the schema does the heavy lifting.

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?

Uses a specific verb and resource ('Compares the financial outcomes of renting and buying') plus the scope ('over a planned stay'), so the agent knows exactly what computation is performed. It stops short of differentiating itself from nearby siblings such as home_affordability or mortgage_payoff_what_if, which an agent might plausibly confuse with this tool.

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?

The second sentence gives a clear selection context: 'Use when evaluating whether a home purchase makes financial sense relative to renting.' That is a real when-to-use cue, but there is no when-not guidance and no sibling is named as the alternative for adjacent questions like affordability or payoff timing.

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