Skip to main content
Glama

Mensualités d'un prêt immobilier

calculate_loan_payment
Read-only

Calcule la mensualité d'un prêt immobilier à taux fixe à partir du capital, de la durée et du taux nominal, avec l'assurance emprunteur quand son taux est donné : mensualité, assurance par mois, total par mois, nombre de mensualités, coût des intérêts et de l'assurance, total remboursé. Ce calcul n'est pas un TAEG.

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>",
      "years": "<years>",
      "annualRatePct": "<annualRatePct>"
    },
    "name": "calculate_loan_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearsYesDurée du prêt, en années.
principalYesCapital emprunté, en euros.
annualRatePctYesTaux nominal annuel, en %, pas le TAEG.
insuranceAnnualRatePctNoTaux annuel de l'assurance emprunteur, en % du capital emprunté, pas le TAEA.

Output Schema

NameRequiredDescriptionDefault
rulesYesLes règles de droit qui fondent cette réponse.
statusYesanswered : toujours.
caveatsYesLes réserves qui accompagnent cette réponse, une phrase chacune.
miramoUrlYesLe lien vers l'outil de miramo.fr qui répond à la même question, ou null.
assumptionsYesLes hypothèses Miramo : des chiffres qui viennent de Miramo et non d'un texte.
totalRepaidYesCapital, intérêts et assurance, en euros.
monthlyTotalYesMensualité et assurance, en euros.
paymentCountYesNombre de mensualités (years × 12).
totalInterestYesIntérêts sur toute la durée, en euros.
monthlyPaymentYesMensualité capital et intérêts, en euros, au centime.
totalInsuranceYesAssurance sur toute la durée, en euros.
monthlyInsuranceYesAssurance par mois, en euros ; 0 sans assurance.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered; the description adds useful scope limits (fixed rate only, not a TAEG) and the conditional behavior of the insurance parameter. It does not mention rounding conventions or that results are purely informational, which would have completed the picture.

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?

Two sentences, front-loaded with the computation and followed by the scope disclaimer; no filler. The long enumeration of returned figures is somewhat list-heavy and partly redundant with the output schema, which keeps it from a 5.

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 read-only four-parameter calculator with a full schema and an output schema, the description covers inputs, the optional insurance path, and the key conceptual caveat. Listing the returned fields duplicates the output schema rather than adding completeness, but nothing an agent needs to call it correctly is missing.

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%: all four parameters carry their own units, ranges and caveats ('pas le TAEG', 'pas le TAEA', '% du capital emprunté'). The description only restates the inputs generically and adds no syntax or interpretation beyond what the schema already provides, so the baseline of 3 applies.

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?

The description gives a precise verb+resource ('Calcule la mensualité d'un prêt immobilier à taux fixe') and names the exact inputs (capital, durée, taux nominal) plus the optional insurance rate. It is unmistakably distinct from capacity/affordability siblings by content, but it never names or contrasts an alternative 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the fixed-rate scope and by the disclaimer 'Ce calcul n'est pas un TAEG', which steers agents away from treating the result as an APR. However, there is no explicit when-to-use guidance, no statement about when to prefer calculate_borrowing_capacity, and no note on when to include the insurance parameter beyond the conditional phrase.

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.