Skip to main content
Glama

Mesurer l'effet d'une décision sur la trajectoire

marcel_simulate_decision
Read-onlyIdempotent

Calcule l'effet d'une décision (dépense, retrait, financement) sur la trajectoire patrimoniale, selon la source de financement : assurance-vie, PEA, compte-titres, PER, liquidités, crédit lombard. Entrées : profil, actifs, décision. Sortie : coût fiscal immédiat et effet sur le revenu futur de chaque source. 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": {
      "profile": "<profile>",
      "decision": "<decision>"
    },
    "name": "marcel_simulate_decision"
  }
}

Input Schema

NameRequiredDescriptionDefault
assetsNoActifs patrimoniaux détenus
fiscalNoContexte fiscal pour le calcul des retraits
lombardNoOption de financement par nantissement de portefeuille — à inclure pour comparer avec les cessions
profileYesProfil du foyer. Le net de pension est chiffré à partir du brut, du revenu fiscal de référence d'avis et des parts, ou d'un net fourni avec sa provenance ; sinon il est null.
decisionYesDécision à simuler

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / assets / items / properties / inputs / description
      Previous value: -"Paramètres de l'actif. valeurActuelle : valeur de l'enveloppe aujourd'hui. versementsCumules : total versé depuis l'ouverture, base non taxable ; l'écart avec valeurActuelle est le gain imposable. Sans versementsCumules, la base est reconstituée par capitalisation et baseFiscale vaut ESTIMATED. Sans versementsCumules ni capitalInitial, l'imposition n'est pas calculée et la réponse est une erreur. openingYear : année d'ouverture du contrat, telle que fournie ; elle fixe l'ancienneté fiscale (assurance-vie : 8 ans, PEA : 5 ans), reprise dans le champ detail de chaque option. Autres champs : versementMensuel, tauxRendementAnnuel, liquidationYear, startYear, capitalInitial lorsque valeurActuelle est inconnue."New value: +"Paramètres de l'actif. valeurActuelle : valeur de l'enveloppe aujourd'hui. versementsCumules : total versé depuis l'ouverture, base non taxable ; l'écart avec valeurActuelle est la plus-value imposable. Sans versementsCumules, la base est reconstituée par capitalisation et baseFiscale vaut ESTIMATED. Sans versementsCumules ni capitalInitial, l'imposition n'est pas calculée et la réponse est une erreur. openingYear : année d'ouverture du contrat, telle que fournie ; elle fixe l'ancienneté fiscale (assurance-vie : 8 ans, PEA : 5 ans), reprise dans le champ detail de chaque option. Autres champs : versementMensuel, tauxRendementAnnuel, liquidationYear, startYear, capitalInitial lorsque valeurActuelle est inconnue."
  2. Added

TDQS

A3.7/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 the safety profile is covered. The description adds real context beyond that: the return content (immediate tax cost plus effect on future income, per source), the caveat that results are indicative and backed only by Marcel reference cases, and a reporting constraint on how deltas may be presented. It does not mention the error paths (missing TMI on a PER withdrawal, missing contribution basis), which live only in the schema.

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?

Well front-loaded: purpose and funding sources first, then inputs, output, the indicative-result caveat, and finally the reporting rule. Five dense sentences with no filler, though the phrasing is compressed enough that the final delta-presentation sentence takes a second read.

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 heavily nested tool with no output schema, the description does state what comes back (immediate tax cost and future-income effect per source) and flags that the figures are indicative. Combined with a 100%-covered schema and clear read-only annotations, an agent has enough to call it and to frame the result. Only the failure modes and the shape of the output per source remain undocumented in prose.

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 the schema already explains profile, assets, decision, fiscal context and the lombard block in depth. The description only restates the three top-level inputs ('profil, actifs, décision') and translates decision into spend/withdraw/finance, adding little beyond the enum values. Baseline 3 is appropriate when the schema carries the parameter burden.

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 opens with a specific verb and object — computing the effect of a decision (spending, withdrawal, financing) on the wealth trajectory — and enumerates the funding wrappers it covers (assurance-vie, PEA, compte-titres, PER, liquidités, crédit lombard). It is clearly a multi-source simulator rather than a single-wrapper calculator. It never names a sibling such as simulate_av or marcel_compare_scenarios, so differentiation is left to inference.

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 framing: use it when a decision must be evaluated across several funding sources. There is no explicit when-not-to-use statement and no named alternative for a single-wrapper case, even though the sibling list is full of per-wrapper simulators. The presentation rule ('présenter comme un écart, sans pourcentage, sans désigner d'option') constrains how to report results but not when to call the tool.

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.