Skip to main content
Glama

simuler_apl

Estime l'aide au logement (APL/ALS/ALF) d'un locataire du parc privé en France à partir du barème CNAF appliqué par Locataire Averti (millésime 2026, à revérifier) : loyer, zone APL, composition du foyer, ressources. Retourne : montant mensuel estimé, loyer restant après aide, zone retenue et si elle est estimée. IMPORTANT : cette estimation n'ouvre aucun droit — seule la CAF ou la MSA calcule et décide l'aide réelle. Ne jamais présenter le montant comme un droit acquis. À UTILISER quand l'utilisateur veut savoir combien lui resterait à payer, ou vérifier si un loyer est finançable.

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": {
      "loyer_mensuel_hors_charges": "<loyer_mensuel_hors_charges>",
      "revenus_mensuels_nets": "<revenus_mensuels_nets>"
    },
    "name": "simuler_apl"
  }
}

Input Schema

NameRequiredDescriptionDefault
villeNoCommune du logement (sert à déterminer la zone APL)
est_coupleNo
code_postalNoCode postal du logement
est_boursierNo
est_etudiantNo
nombre_enfantsNoNombre de personnes à charge
logement_meubleNo
revenus_mensuels_netsYesRevenus nets mensuels du foyer en € (les revenus annuels sont reconstitués sur 12 mois)
loyer_mensuel_hors_chargesYesLoyer mensuel hors charges en € (le forfait de charges est ajouté par le barème)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the data vintage ('millésime 2026, à revérifier'), states the estimate confers no rights, that only CAF/MSA decides, and warns never to present the amount as an acquired right. It also flags that the zone may be estimated. It stops short of stating that this is a side-effect-free computation with no persistence.

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 purpose, then returns, then the legal disclaimer, then the use condition — a logical order with no filler. The no-rights caveat is restated twice ('n'ouvre aucun droit' and 'ne jamais présenter le montant comme un droit acquis'), which is mild redundancy justified by the stakes.

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?

There is no output schema, so the description correctly enumerates what comes back (amount, remaining rent, zone, estimated flag). For a 9-parameter computation with no annotations, the legal caveat and vintage warning cover the highest-risk gaps; only the semantics of the four undocumented booleans remain thin.

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 56%, just above the baseline threshold, so the schema does much of the work. The description adds framing (household composition and resources feed the barème) but does not explain how the undocumented booleans — est_couple, est_boursier, est_etudiant, logement_meuble — change the computed amount.

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 names a precise verb and resource: estimating APL/ALS/ALF housing aid for a private-sector tenant in France under the CNAF barème (2026 vintage). The scope (loyer, zone APL, household composition, resources) and the outputs (monthly amount, remaining rent, retained zone and whether it was estimated) make it unmistakable against siblings such as calculer_depot_garantie or diagnostic_eligibilite_hlm.

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 gives an explicit trigger: 'À UTILISER quand l'utilisateur veut savoir combien lui resterait à payer, ou vérifier si un loyer est finançable.' That is a clear positive-use condition, but no negative conditions or named alternatives (e.g., when to prefer diagnostic_eligibilite_hlm instead) are 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.

Resources