Skip to main content
Glama

Comparer un même actif dans plusieurs enveloppes

compare_allocation
Read-onlyIdempotent

Compare le capital net après fiscalité d'un même actif détenu en PEA, assurance-vie, compte-titres personnel, compte-titres de société ou holding, à rendement identique. Entrées : montant, rendement, horizon, enveloppes candidates ; pour une SCPI : taux de distribution. Sortie : capital net par enveloppe et règles appliquées. 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": {
      "asset": "<asset>",
      "candidates": "<candidates>",
      "objective": "<objective>"
    },
    "name": "compare_allocation"
  }
}

Input Schema

NameRequiredDescriptionDefault
assetYes
objectiveYesObjectif patrimonial
candidatesYesVéhicules à comparer — minimum 2
situationFamilialeNoAbattement assurance-vie après 8 ans. seul : 4 600 euros, couple : 9 200 euros. Sans ce champ, l'abattement n'est pas appliqué.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / asset / properties / dateSouscription
      Added value: +{
      +  "description": "Contrat de capitalisation (CONTRAT_CAPITALISATION) : date de souscription, AAAA-MM-JJ. Requise : absente, la question est posée.",
      +  "type": "string"
      +}
    • addedInput schema / properties / asset / properties / dureeMaximaleContratAns
      Added value: +{
      +  "description": "Contrat de capitalisation : durée maximale prévue au contrat, en années. Requise.",
      +  "exclusiveMinimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / asset / properties / tmeSouscription
      Added value: +{
      +  "description": "Contrat de capitalisation : TME connu à la souscription, en décimal (0.03 pour 3 pour cent). Requis, aucun TME n'est supposé (CGI art. 238 septies E, II-3).",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / asset / properties / valeurGarantie
      Added value: +{
      +  "anyOf": [
      +    {
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Contrat de capitalisation : valeur minimale garantie, ou null s'il n'y a pas de clause de garantie. Requise."
      +}
  2. Changed3 schema fields changed
    • addedInput schema / properties / asset / properties / distributionRate
      Added value: +{
      +  "description": "Taux de distribution annuel publié de la SCPI, en décimal (0.0491 pour 4,91 %). Requis pour une SCPI détenue en direct, en société ou en démembrement : absent, la question est posée. Le prix de part varie de expectedReturn moins distributionRate par an.",
      +  "maximum": 0.2,
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / candidates / items / properties / primesAvant2017
      Added value: +{
      +  "description": "Primes de ce contrat versées avant le 27 septembre 2017 (taux de 7,5 % sans seuil). Absentes : déduites de openingYear (ouverture avant 2017 : toutes ; après 2017 : aucune) ; ouverture en 2017 avec un seuil de 150 000 euros en jeu : la question est posée.",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / candidates / items / properties / primesTotalesAssure
      Added value: +{
      +  "description": "Primes versées sur tous les contrats d'assurance-vie de l'assuré, celui-ci compris (seuil de 150 000 euros du taux de 7,5 %). Absentes : seuil apprécié sur ce seul contrat, et la réponse le dit.",
      +  "minimum": 0,
      +  "type": "number"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / candidates / items / properties / fraisGestionContrat
      Added value: +{
      +  "description": "Frais de gestion annuels du contrat d'assurance-vie, en taux décimal (0.0085 pour 0,85 %), pour AV et AV_SCPI. Absents : aucun frais retenu, et la réponse signale que le capital de l'assurance-vie est surestimé de ces frais.",
      +  "maximum": 0.05,
      +  "minimum": 0,
      +  "type": "number"
      +}
  4. 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. Beyond that the description adds two genuinely useful behavioural facts: the result is purely indicative and backed by Marcel reference cases, and the comparison assumes an identical return across all wrappers. It does not mention whether results are cached or how the referenced rules are surfaced, but that is minor at this bar.

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?

Four compact sentences: purpose first, then inputs, then output, then the caveat — a sensible front-loaded order with no filler. Slight redundancy in re-listing the inputs, which the schema already carries, but nothing wasteful.

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?

With no output schema, the description correctly states what comes back (capital net par enveloppe and applied rules), which is a real gap-filler. Together with the indicative-result disclaimer and the identical-return assumption, an agent has enough to call the tool and interpret the answer, even without guidance on sibling choice.

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 already 75% and the nested asset/candidates objects are thoroughly documented in-schema, including defaults and error behaviour. The description only summarises the inputs (montant, rendement, horizon, enveloppes candidates, plus taux de distribution for SCPI) and adds no syntax, units or edge-case meaning beyond the schema. Baseline 3 is appropriate.

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 states a specific verb and resource: comparing net after-tax capital of the same asset held in PEA, assurance-vie, CTO, CTO de société or holding, at identical return. That is far more precise than the title alone. It does not, however, distinguish itself from the many neighbouring compare_* tools (compare_chemin, compare_remuneration, compare_transmission), so an agent must infer the boundary from the wrapper list.

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 rather than stated: the tool compares wrappers for one identical asset at an identical return, which is a clear scenario, and the 'pour une SCPI : taux de distribution' note hints at a condition. There is no explicit when-to-use / when-not guidance and no named alternative, so the agent gets no routing help against siblings.

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.