Skip to main content
Glama

Calculer une plus-value immobilière des particuliers

simulate_pv_immo_ir
Read-onlyIdempotent

Calcule la plus-value immobilière imposable à l'impôt sur le revenu (particulier ou SCI à l'IR) : abattements pour durée de détention (CGI art. 150 VC), exonération de la résidence principale, frais d'acquisition au forfait de 7,5 %. Entrées : prix d'achat, prix de vente, durée, nature du bien, frais. Sortie : plus-value brute, abattements, impôt et prélèvements sociaux. Calcul non couvert par les jeux 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": {
      "prixAcquisition": "<prixAcquisition>",
      "prixCession": "<prixCession>",
      "anneesDetention": "<anneesDetention>"
    },
    "name": "simulate_pv_immo_ir"
  }
}

Input Schema

NameRequiredDescriptionDefault
prixCessionYesPrix de vente en euros
natureCessionNoRequis par Marcel au-delà de 5 ans de détention : immeuble ou parts_societe. parts_societe : parts de SCPI ou de société à prépondérance immobilière (CGI art. 150 UB), sans les forfaits de 7,5 % (frais d'acquisition) et de 15 % (travaux).
anneesDetentionYesDurée de détention en années entières
prixAcquisitionYesPrix d'achat du bien en euros
travauxNonDeduitsNoTravaux majorant le prix d'acquisition
residencePrincipaleNoRésidence principale — exonération totale si true
fraisAcquisitionReelsNoFrais réels si connus (sinon forfait 7,5%)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / natureCession / description
      Previous value: -"immeuble (défaut) ou parts_societe : parts de SCPI ou de société à prépondérance immobilière (CGI art. 150 UB), sans les forfaits de 7,5 % (frais d'acquisition) et de 15 % (travaux)."New value: +"Requis par Marcel au-delà de 5 ans de détention : immeuble ou parts_societe. parts_societe : parts de SCPI ou de société à prépondérance immobilière (CGI art. 150 UB), sans les forfaits de 7,5 % (frais d'acquisition) et de 15 % (travaux)."
  2. Changed1 schema field changed
    • addedInput schema / properties / natureCession
      Added value: +{
      +  "description": "immeuble (défaut) ou parts_societe : parts de SCPI ou de société à prépondérance immobilière (CGI art. 150 UB), sans les forfaits de 7,5 % (frais d'acquisition) et de 15 % (travaux).",
      +  "enum": [
      +    "immeuble",
      +    "parts_societe"
      +  ],
      +  "type": "string"
      +}
  3. Added

TDQS

A4.1/5.0
Behavior4/5

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

The readOnly/idempotent/closed-world annotations already cover the safety profile, and the description adds real behavioral context: the default 7.5% acquisition-cost forfait, the 15% travaux forfait being unavailable for parts_societe, and the caveat that the output is indicative rather than a validated reference figure. Error handling and rounding or threshold behavior are still undisclosed.

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 dense sentences organized as purpose, tax mechanics, inputs, outputs plus a caveat — front-loaded and free of filler. Slightly compact for the amount of legal detail, but every clause carries a distinct fact.

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 usefully enumerates what is returned (plus-value brute, abattements, impôt, prélèvements sociaux) and covers the main computational levers, which is enough for a 7-parameter simulation tool. It omits edge-case behavior (e.g. how exoneration interacts with the other fields), keeping it below a 5.

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 parameters are already fully documented, including the natureCession enum and its 7.5%/15% forfait exclusions. The description's input list (prix d'achat, prix de vente, durée, nature, frais) only restates the schema and adds no syntax or default information, so the baseline of 3 applies.

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?

The description leads with a specific verb and resource ('Calcule la plus-value immobilière imposable à l'impôt sur le revenu') and scopes it to 'particulier ou SCI à l'IR', which implicitly excludes the SCI à l'IS case and the foreign-property siblings. Legal anchors (CGI art. 150 VC) confirm this is the French regime tool, so an agent can route to it without opening the 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?

It names the applicable context (individuals or SCI taxed at IR, résidence principale exoneration) and flags the result as indicative because it is not covered by the Marcel reference datasets — a useful condition for an agent deciding whether to trust or cross-check. It never states when not to use it or names an explicit alternative tool, so it stops short of a 5.

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.