Skip to main content
Glama

FactLot

Lease vs. own

calc_lease_vs_own
Read-onlyIdempotent

Compare leasing with buying over a fixed horizon: NPV of each case's annual cash costs (rent, free rent, tenant expenses, and move-in costs versus equity, debt service, owner expenses, reserves, and a sale at the horizon by stated value or exit cap rate), optionally after tax, with the year-by-year tables and the break-even residual value at which owning equals leasing. Deterministic: use this instead of doing the math yourself; cite formula calc.lease_vs_own@2 and the returned steps, and surface any warnings.

Input Schema

NameRequiredDescriptionDefault
ownYesThe purchase alternative.
leaseYesThe lease alternative.
horizon_yearsYesAnalysis horizon in years. Both cases are compared over this period; the own case sells at the end of it.
discount_rate_annualYesAnnual discount rate as a decimal, e.g. 0.08, applied to both cases' year-end cash flows (year 0 = closing / move-in).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare a safe read-only, idempotent, closed-world operation, and the description adds substantial context beyond them: determinism, the optional after-tax mode, the year-by-year tables, the break-even residual output, and possible warnings. It also tells the agent to cite the formula version, which is genuine behavioral guidance.

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 core comparison, then the determinism/citation instruction. The first sentence is long and parenthetical-heavy, but nearly every clause carries model detail that the schema does not restate in aggregate.

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?

Even with no output schema, the description explains what comes back (year-by-year tables, break-even residual, steps, warnings) and how the two cases are constructed. For a complex nested four-parameter model with full schema coverage, an agent has what it needs to call it correctly.

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 parameter-level meaning is already covered. The description still adds model-level semantics by mapping which inputs belong to which cash-flow stream (rent, free rent, tenant expenses, move-in costs vs. equity, debt service, reserves, sale) and clarifying the after-tax toggle, going beyond the field 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 verb and comparison (lease vs. own over a fixed horizon) and enumerates the cash-flow components of each case, including the horizon sale via stated value or exit cap rate. An agent can distinguish this from generic calculators such as calc_npv or calc_renew_vs_relocate without opening the schema.

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?

Explicitly directs the agent to use this rather than doing the math manually and to cite formula calc.lease_vs_own@2 and surface warnings. It does not, however, state exclusions against close siblings like calc_renew_vs_relocate or calc_npv, so the when-not guidance is partial.

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.