Skip to main content
Glama

Calculer des rachats partiels d'assurance-vie

simulate_av_strategie
Read-onlyIdempotent

Calcule une suite de rachats partiels d'assurance-vie qui utilisent l'abattement annuel de l'article 125-0 A (contrat de 8 ans ou plus, personne seule ou couple), avec le même calcul de rachat que la sortie simple. Entrées : valeur, versements, ancienneté, situation, plus-values par support. Sortie : rachats par année, impôt, prélèvements sociaux et net. Calcul couvert par des cas de référence Marcel : résultat indicatif.

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": {
      "valeurContrat": "<valeurContrat>",
      "versementsTotal": "<versementsTotal>",
      "ancienneteAns": "<ancienneteAns>"
    },
    "name": "simulate_av_strategie"
  }
}

Input Schema

NameRequiredDescriptionDefault
tmiNoTMI du foyer (ex: 0.41)
maxAnneesNoHorizon max de simulation (defaut 20)
tauxAvanceNoTaux annuel de l'avance alternative (defaut 0.04)
plusValuesUCNoPlus-values d'unités de compte. Prélèvements sociaux de 17,2 % sur cette part seulement.
ancienneteAnsYesAnciennete du contrat en annees
valeurContratYesValeur de rachat actuelle
dureeAvanceAnsNoDuree de l'avance alternative (defaut 3)
versementsTotalYesTotal des primes versees
plafondGainsAnnuelNoPlafond de plus-values visé par an (défaut : abattement légal)
situationFamilialeNoPersonne seule ou couple.
plusValuesFondsEurosNoPlus-values du fonds en euros. Avec plusValuesUC, même contrôle qu'au rachat.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / plafondGainsAnnuel / description
      Previous value: -"Plafond de gains vise par an (defaut = abattement legal)"New value: +"Plafond de plus-values visé par an (défaut : abattement légal)"
    • changedInput schema / properties / plusValuesFondsEuros / description
      Previous value: -"Gains du fonds en euros. Avec plusValuesUC, même contrôle qu'au rachat."New value: +"Plus-values du fonds en euros. Avec plusValuesUC, même contrôle qu'au rachat."
    • changedInput schema / properties / plusValuesUC / description
      Previous value: -"Gains d'unités de compte. Prélèvements sociaux de 17,2 % sur cette part seulement."New value: +"Plus-values d'unités de compte. Prélèvements sociaux de 17,2 % sur cette part seulement."
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so safety is covered. The description goes further by enumerating the returned figures (rachats par année, impôt, prélèvements sociaux, net) and flagging that results are indicative and validated against Marcel reference cases — a meaningful trust/interpretation caveat not present in structured fields.

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 purpose, then inputs, then output, then the disclaimer — a logical checklist order with no filler. The only redundancy is that the first clause largely restates the title.

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 an 11-parameter tool with no output schema, the description usefully summarizes both inputs and returned values, and states eligibility and the indicative-result caveat. The residual gap is the absence of any explanation of the advance-alternative parameters (tauxAvance, dureeAvanceAns), which a caller would only learn from the schema.

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 coverage is 100% and the schema descriptions are detailed (TMI example, default horizon 20, 17.2% social levies on UC only), so the schema carries the semantic load. The description lists a partial subset of inputs (valeur, versements, ancienneté, situation, plus-values) but adds no meaning beyond the schema and says nothing about the advance/alternative-rate parameters.

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 ('Calcule une suite de rachats partiels d'assurance-vie') plus the tax mechanism used (abattement annuel de l'article 125-0 A). It also explicitly anchors itself to a sibling behavior ('avec le même calcul de rachat que la sortie simple'), so an agent can separate it from simulate_av/simulate_rachat without opening a 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?

Gives clear applicability conditions — contract of 8+ years, single person or couple — which function as implicit when-to-use guidance. It does not explicitly say when to prefer this over a single-withdrawal simulation, so the routing to alternatives is only partially stated.

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.