Skip to main content
Glama

ChatHome — Luxembourg Real Estate

Calculate Mortgage

calculate_mortgage
Read-onlyIdempotent

Calculate monthly loan payments, total interest and extra-payment scenarios using explicit principal, annualRatePct and years. A rate is a stated assumption, not a bank offer. Returns excluded costs; this is not an all-in housing budget. includeSchedule adds a detailed repayment table. Link toolUrl to let users explore the scenario. No account, profile write or loan application is needed.

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": {
      "principal": "<principal>",
      "annualRatePct": "<annualRatePct>",
      "years": "<years>"
    },
    "name": "calculate_mortgage"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearsYesRepayment term in years
principalYesLoan principal in EUR, after the down payment; excludes acquisition costs unless explicitly financed
annualRatePctYesExplicit annual interest-rate assumption in percent; do not invent a current bank quote
includeScheduleNoInclude the month-by-month schedule only when requested
extraMonthlyPaymentNo

Output Schema

NameRequiredDescriptionDefault
inputsYes
toolUrlYes
currencyYes
scheduleNo
rateBasisYes
assumptionsYes
totalRepaidYes
excludedCostsYes
schemaVersionYes
totalInterestYes
monthlyPaymentYes
repaymentMonthsYes
extraMonthlyPaymentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / toolUrl
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "schemaVersion",
      -  "currency",
      -  "inputs",
      -  "rateBasis",
      -  "monthlyPayment",
      -  "extraMonthlyPayment",
      -  "totalInterest",
      -  "totalRepaid",
      -  "repaymentMonths",
      -  "excludedCosts",
      -  "assumptions"
      -]New value: +[
      +  "schemaVersion",
      +  "currency",
      +  "inputs",
      +  "rateBasis",
      +  "monthlyPayment",
      +  "extraMonthlyPayment",
      +  "totalInterest",
      +  "totalRepaid",
      +  "repaymentMonths",
      +  "toolUrl",
      +  "excludedCosts",
      +  "assumptions"
      +]
  2. Added

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint, idempotentHint), the description clarifies that no account, profile write, or loan application is involved, and that the outputs deliberately exclude acquisition costs. It also flags the epistemic status of the rate input, which matters for how the agent presents results. It does not cover the output fields, but an output schema exists to carry that.

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 purpose and outputs, then assumptions and exclusions in short sentences — efficient overall. The clipped, telegraphic phrasing ('Returns excluded costs', 'Link toolUrl to let users explore the scenario') reads a bit terse and the toolUrl instruction floats without obvious anchoring, but nothing is genuinely redundant.

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 a five-parameter read-only calculator with an output schema, the description covers scope, input assumptions, what is excluded from returns, and the optional schedule flag. The remaining return-detail burden is properly delegated to the annotations and output schema, leaving only sibling routing for whole-budget exploration unaddressed.

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 80%, and the description reinforces the two semantically risky inputs: annualRatePct is an assumption, not a quote, and includeSchedule produces a month-by-month repayment table (effect, not just type). 'Extra-payment scenarios' implicitly documents extraMonthlyPayment, the one parameter lacking a schema description.

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 (calculate) and precise outputs (monthly payments, total interest, extra-payment scenarios) plus the three inputs that drive it. It also draws an explicit boundary against the acquisition-cost side of the domain with 'Returns excluded costs; this is not an all-in housing budget', so an agent can tell it apart from sibling calculators.

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?

Gives clear preconditions for use: the rate must be treated as a stated assumption rather than a bank quote, and the result is a loan calculation, not an all-in housing budget or a loan application. It also instructs the agent to link toolUrl so users can explore the scenario. It stops short of explicitly naming alternatives such as calculate_buy_vs_rent or get_affordability for whole-budget questions.

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