Skip to main content
Glama

Calculer un rachat de trimestres

simulate_rachat
Read-onlyIdempotent

Calcule le coût d'un rachat de trimestres (versement pour la retraite) au barème de la CNAV 2026 et le supplément de pension correspondant. Entrées : âge, revenu, nombre de trimestres, option. Sortie : coût brut, coût après déduction, supplément de pension annuel (supplementPensionAnnuel). Le supplément est chiffré par la liquidation CNAV et Agirc-Arrco avant et après le rachat : il demande samSaisi, anneeNaissance, ageDepart, trimestresValides et pointsAgirc. Sans eux, le coût est calculé et la réponse dit « Pour un chiffre exact, il me manque : … ». Calcul couvert par des cas de référence Marcel : résultat indicatif. Rendu des écarts : une différence entre deux montants est un écart, à présenter comme tel, sans pourcentage calculé et sans désigner d'option à retenir.

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": {
      "ageRachat": "<ageRachat>",
      "revenuAnnuelMoyen": "<revenuAnnuelMoyen>",
      "option": "<option>",
      "nbTrimestres": "<nbTrimestres>"
    },
    "name": "simulate_rachat"
  }
}

Input Schema

NameRequiredDescriptionDefault
optionYestaux_seul : améliore le taux ; taux_et_duree : allonge aussi la durée
samSaisiNoSalaire annuel moyen retenu par la CNAV, en euros. Sert au supplément de pension.
ageDepartNoÂge de départ à la retraite, en années. Sert au supplément de pension.
ageRachatYesÂge au moment du versement
pointsAgircNoPoints Agirc-Arrco acquis. Sert au supplément de pension.
nbTrimestresYesNombre de trimestres à racheter
anneeNaissanceNoAnnée de naissance. Sert au supplément de pension.
trimestresRequisNoDurée requise pour la génération (défaut 172)
revenuAnnuelMoyenYesRevenu annuel moyen — détermine la tranche A/B/C
trimestresValidesNoTrimestres validés avant le rachat. Sert au supplément de pension.
salaireAnnuelMoyenNoSalaire moyen (mode proxy si pension inconnue)
trimestresManquantsNoTrimestres manquants pour le taux plein
pensionAnnuelleEstimeeNoPension annuelle estimée (mode exact)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / ageDepart
      Added value: +{
      +  "description": "Âge de départ à la retraite, en années. Sert au supplément de pension.",
      +  "maximum": 75,
      +  "minimum": 50,
      +  "type": "number"
      +}
    • addedInput schema / properties / anneeNaissance
      Added value: +{
      +  "description": "Année de naissance. Sert au supplément de pension.",
      +  "maximum": 2010,
      +  "minimum": 1940,
      +  "type": "integer"
      +}
    • addedInput schema / properties / pointsAgirc
      Added value: +{
      +  "description": "Points Agirc-Arrco acquis. Sert au supplément de pension.",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / samSaisi
      Added value: +{
      +  "description": "Salaire annuel moyen retenu par la CNAV, en euros. Sert au supplément de pension.",
      +  "exclusiveMinimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / trimestresValides
      Added value: +{
      +  "description": "Trimestres validés avant le rachat. Sert au supplément de pension.",
      +  "minimum": 0,
      +  "type": "integer"
      +}
  2. Added

TDQS

A4.2/5.0
Behavior4/5

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

Beyond the readOnly/idempotent annotations, it discloses the degraded-mode behaviour, the missing-input prompt text, that results are indicative (reference cases Marcel), and how differences must be rendered — as an écart, without a computed percentage and without recommending an option. With annotations already covering the safety profile, this is substantive added context, though it stops short of describing the response structure in a formal way.

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?

Purpose is front-loaded in the first sentence, followed by inputs, outputs and the degraded mode. Every sentence carries information, though the closing écart-rendering rule is an output-format instruction that sits awkwardly in a tool definition and could be tightened.

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?

With 13 parameters and no output schema, the description carries the burden of describing returns and does so explicitly (coût brut, coût après déduction, supplémentPensionAnnuel). It also covers the partial-input path and the indicative nature of results, leaving nothing an agent needs before calling it.

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%, so each of the 13 parameters is already documented inline. The description adds grouping meaning — which five parameters drive the supplement calculation and what happens if they are absent — but it does not clarify the proxy/exact distinction (salaireAnnuelMoyen, pensionAnnuelleEstimee, trimestresRequis, trimestresManquants), leaving half the surface to the schema alone.

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 resource — calculating the cost of a trimestres buyback (versement pour la retraite) under the CNAV 2026 scale — plus the secondary output (supplément de pension). The scope is narrow and unmistakable against the sibling simulators (PER, AV, immobilier, holding), none of which touch rachat de trimestres.

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?

Clearly explains the two operating modes: full calculation when samSaisi, anneeNaissance, ageDepart, trimestresValides and pointsAgirc are supplied, versus a cost-only answer when they are not, including the exact fallback message. It does not name an alternative tool, but no sibling covers this subject, so routing guidance is effectively implicit.

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.