Skip to main content
Glama

CalcPronto: exact calculators (tax, payroll, loans, VAT, EU261)

French home loan renegotiation or buy-out gain

mortgage_renegotiation_fr_calculate
Read-onlyIdempotent

Net gain of renegotiating a French fixed-rate home loan or having it bought out by another lender (rachat de crédit immobilier): remaining cost of the current loan after payments_made monthly payments (interest and insurance still due) minus the cost of the operation (interest and insurance of the new loan, prepayment indemnity, fees), new payment, months to recoup upfront costs and the break-even new rate. Amounts in euros, rates nominal in % a year. New loan over new_term_years or new_term_months (default: the remaining term). indemnity_rule: 'legal_max' (default, buy-out by another lender: min of 6 months of interest and 3 % of the outstanding capital, art. R313-25), 'none' (renegotiation by amendment with the same lender, or no clause) or 'contract_pct' with contract_indemnity_pct. fees: application, guarantee, broker and mortgage release fees. costs_financed=True adds the indemnity and fees to the new loan. monthly_insurance and new_monthly_insurance: borrower insurance per month (new defaults to the current one). Sums are not discounted.

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>",
      "annual_rate_pct": "<annual_rate_pct>",
      "new_rate_pct": "<new_rate_pct>"
    },
    "name": "mortgage_renegotiation_fr_calculate"
  }
}

Input Schema

NameRequiredDescriptionDefault
feesNo
principalYes
term_yearsNo
term_monthsNo
new_rate_pctYes
payments_madeNo
costs_financedNo
indemnity_ruleNolegal_max
new_term_yearsNo
annual_rate_pctYes
new_term_monthsNo
monthly_insuranceNo
new_monthly_insuranceNo
contract_indemnity_pctNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/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 covered. The description still adds useful traits: units (euros, nominal % per year), defaults (new term = remaining term, new insurance = current), and crucially 'sums are not discounted' — a modeling assumption an agent must know. However, it does not discuss result format or any edge-case behavior, so it sits modestly above baseline.

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 computation before the deduction formula and parameter notes, so the agent gets the essence immediately. It is a single dense paragraph with parenthetical breaks and no wasted sentences, though the density slightly hurts scannability for 14 parameters.

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?

An output schema exists, so return values need not be explained. For a 14-parameter calculator the description covers purpose, units, defaults, the legal indemnity rule reference, and the non-discounting assumption, making it essentially callable as-is; only minor param-level gaps remain.

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 0%, so the description carries the full burden and largely meets it: indemnity_rule options, contract_indemnity_pct pairing, fees composition, costs_financed behavior, insurance defaults, and new-term defaults are all explained. Some params (principal, annual_rate_pct, new_rate_pct, term_years vs term_months, payments_made semantics) are only inferable from names, leaving a residual gap.

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?

Names a specific computation ('net gain of renegotiating a French fixed-rate home loan or buy-out') and the domains involved (remaining cost, new payment, months to recoup, break-even rate). It clearly differentiates the renegotiation/buy-out scenario from a plain prepayment or loan-payment calculator by scope, though it never names a sibling tool explicitly.

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 description maps the key decision to real-world scenarios: indemnity_rule 'legal_max' for buy-out by another lender, 'none' for renegotiation by amendment with the same lender, and 'contract_pct' with contract_indemnity_pct. It gives clear context but does not name alternative sibling tools or state when not to use this one.

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.