Skip to main content
Glama

Draft a rent-revision lease amendment

avenant_revision_irl
Read-only

QUAND la révision IRL est calculée et qu'il faut la NOTIFIER au locataire par courrier. Calculez d'abord avec irl_revision_loyer. Courrier de révision de loyer IRL prêt à envoyer au locataire (HTML imprimable ; PDF via /api/v1/documents/avenant-irl). Calcule et notifie le nouveau loyer. TOUJOURS mis en page pour ENVELOPPE À FENÊTRE (destinataire à DROITE). Preférer locataire_adresse (postale) ≠ logement_adresse (bien). Garde-fou : code postal 5 chiffres obligatoire.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
lieuNoLieu d'émission imprimé avant la date (« Fait à … »).
date_effetYesDate d'application du nouveau loyer. Format ISO AAAA-MM-JJ. Par défaut, la date du jour. La révision ne rétroagit pas au-delà d'un an (art. 17-1, loi 89-462).
irl_nouveauYesValeur de l'IRL du même trimestre, publiée par l'INSEE cette année.
bailleur_nomYesBailleur qui notifie la révision.
loyer_actuelYesLoyer hors charges en vigueur avant révision, en euros.
irl_referenceYesValeur de l'IRL du trimestre de référence inscrit au bail.
locataire_nomYesLocataire destinataire de la notification.
bailleur_adresseNoAdresse du bailleur, en en-tête.
logement_adresseYesAdresse du bien loué (objet du courrier).
locataire_adresseNoAdresse POSTALE du locataire (fenêtre) — ex. "12 rue de la Paix\n75002 Paris".
trimestre_nouveauNoTrimestre correspondant de l'année en cours — « T2 2026 ».
trimestre_referenceNoTrimestre de référence du bail — « T2 2025 ». C'est le bail qui le fixe, pas l'usage.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • addedInput schema / properties / bailleur_adresse / description
      Added value: +"Adresse du bailleur, en en-tête."
    • addedInput schema / properties / bailleur_nom / description
      Added value: +"Bailleur qui notifie la révision."
    • addedInput schema / properties / date_effet / description
      Added value: +"Date d'application du nouveau loyer. Format ISO AAAA-MM-JJ. Par défaut, la date du jour. La révision ne rétroagit pas au-delà d'un an (art. 17-1, loi 89-462)."
    • addedInput schema / properties / irl_nouveau / description
      Added value: +"Valeur de l'IRL du même trimestre, publiée par l'INSEE cette année."
    • addedInput schema / properties / irl_reference / description
      Added value: +"Valeur de l'IRL du trimestre de référence inscrit au bail."
    • addedInput schema / properties / lieu / description
      Added value: +"Lieu d'émission imprimé avant la date (« Fait à … »)."
    • addedInput schema / properties / locataire_nom / description
      Added value: +"Locataire destinataire de la notification."
    • addedInput schema / properties / loyer_actuel / description
      Added value: +"Loyer hors charges en vigueur avant révision, en euros."
    • addedInput schema / properties / trimestre_nouveau / description
      Added value: +"Trimestre correspondant de l'année en cours — « T2 2026 »."
    • addedInput schema / properties / trimestre_reference / description
      Added value: +"Trimestre de référence du bail — « T2 2025 ». C'est le bail qui le fixe, pas l'usage."
  2. Changed2 schema fields changed
    • addedInput schema / properties / locataire_adresse
      Added value: +{
      +  "description": "Adresse POSTALE du locataire (fenêtre) — ex. \"12 rue de la Paix\\n75002 Paris\".",
      +  "type": "string"
      +}
    • addedInput schema / properties / logement_adresse / description
      Added value: +"Adresse du bien loué (objet du courrier)."
  3. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations cover the safety profile (readOnlyHint=true, destructiveHint=false, openWorldHint=false), but the description adds substantial extra context: the return artifact is printable HTML with a PDF endpoint, the layout is always formatted for a window envelope (recipient on the right), and a hard validation guard requires a 5-digit postal code. This is exactly the beyond-annotations detail an agent needs.

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 trigger condition and free of filler, but the heavy parenthetical (HTML/PDF endpoint plus envelope rule) and the all-caps emphasis make it dense and slightly harder to scan than a clean multi-sentence form would be.

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 12-parameter draft-generation tool with no output schema, the description covers the trigger, the dependency on irl_revision_loyer, the output formats, and the address/validation constraints. It does not say whether the HTML is returned in the response body versus fetched from the endpoint, which leaves one operational gap for an agent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning by contrasting locataire_adresse (postal, must be used) with logement_adresse (the property itself) and by stating the postal-code format constraint that is not encoded in the schema. It stops short of explaining the IRL/trimestre value pairing, which the schema already handles.

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?

States a concrete deliverable: an IRL rent-revision letter ready to send to the tenant (printable HTML, PDF via a named endpoint), and distinguishes itself from irl_revision_loyer. Minor tension: the sentence 'Calcule et notifie le nouveau loyer' implies it computes the revision, while the preceding sentence tells the agent to compute first elsewhere, so the scope is slightly muddied even though the instruction resolves it.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Opens with an explicit trigger ('QUAND la révision IRL est calculée et qu'il faut la NOTIFIER au locataire par courrier') and names the prerequisite sibling tool: compute first with irl_revision_loyer. The when-to-use condition and the ordering relative to alternatives are both spelled out.

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