Skip to main content
Glama

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

French home loan early repayment (IRA)

mortgage_prepayment_fr_calculate
Read-onlyIdempotent

Early repayment (remboursement anticipé) of a French fixed-rate home loan with constant monthly payments: outstanding capital after payments_made monthly payments (schedule to the cent), prepayment indemnity (IRA), then the new payment or term, interest and insurance saved and the net saving. principal and prepayment in euros (prepayment omitted = the whole balance), annual_rate_pct nominal (at most 3 decimals), term_years or term_months of the original loan. mode: 'reduce_term' (same payment, shorter loan) or 'reduce_payment' (same end date). indemnity_rule: 'legal_max' (default: min of 6 months of interest on the amount repaid and 3 % of the outstanding capital, art. R313-25), 'none' (no clause in the contract) or 'contract_pct' with contract_indemnity_pct (% of the amount repaid, capped by the legal maximum). sale_exemption=True: sale of the home after a change of place of work, death or forced end of work of the borrower or spouse, no indemnity (art. L313-48). monthly_insurance: borrower insurance on the initial capital (saved for the months removed). Prepayment on a payment date. Not covered: variable rates, consumer credit, PTZ, deferred loans.

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>"
    },
    "name": "mortgage_prepayment_fr_calculate"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoreduce_term
principalYes
prepaymentNo
term_yearsNo
term_monthsNo
payments_madeNo
indemnity_ruleNolegal_max
sale_exemptionNo
annual_rate_pctYes
monthly_insuranceNo
contract_indemnity_pctNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnlyHint, idempotent, non-destructive), so the description's job is domain behavior—and it delivers: the legal cap formula under art. R313-25, the capping of contract_pct by the legal maximum, the art. L313-48 sale exemption conditions, treatment of omitted prepayment as the whole balance, and that insurance is saved only for the months removed. These are substantive rules an agent could not infer from any structured field.

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?

The most decision-relevant facts (what is computed, units, mode semantics) are front-loaded and every sentence carries information; there is no filler. However, it is one dense paragraph with heavy parenthetical stacking, which makes the later parameter rules harder to scan than a short structured list would.

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 an 11-parameter financial calculator with no schema descriptions, this covers required inputs, units, defaults, legal rules, and exclusions. An output schema exists, so return-value documentation is not required—the description's output enumeration is bonus framing rather than a gap-filler.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must carry all parameter meaning—and it does for nearly every one of the 11: prepayment omission semantics, annual_rate_pct precision limit ('at most 3 decimals'), term_years vs term_months, payments_made as the count already paid, and the enumerated meanings of mode and indemnity_rule including defaults. Only contract_indemnity_pct is described indirectly (through 'contract_pct'), a minor residual gap.

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?

The description opens with a precise verb+resource ('Early repayment (remboursement anticipé) of a French fixed-rate home loan with constant monthly payments') and then enumerates the exact outputs: outstanding capital, IRA, new payment or term, interest/insurance saved, net saving. That scope ('fixed-rate, constant payments') implicitly separates it from a generic sibling like loan_early_repayment, and an agent can tell what it produces 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?

It gives concrete applicability conditions ('Prepayment on a payment date', fixed-rate home loan) and explicit exclusions ('Not covered: variable rates, consumer credit, PTZ, deferred loans'), which is exactly the when-not-to-use information agents need. It stops short of naming the alternative tool to use for those excluded cases, so it is not a full 5.

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.