Skip to main content
Glama
pwnera

Simulateurs FR

Préavis

preavis
Read-onlyIdempotent

Calculate the notice period duration and end date from the notification date for resignation, dismissal, retirement, or trial-period termination under French labor rules.

Instructions

Calcule la durée du préavis (démission, licenciement, rupture de période d'essai) et sa date de fin à partir de la date de notification.

Input Schema

NameRequiredDescriptionDefault
typeYesPréavis : durée selon le type de rupture et l'ancienneté (Code du travail). - Licenciement (art. L1234-1) : < 6 mois → pas de minimum légal (convention / usage) ; 6 mois à < 2 ans → 1 mois ; ≥ 2 ans → 2 mois. Pas de préavis en cas de faute grave ou lourde. Travailleur handicapé (art. L5213-9) : durée doublée, dans la limite de 3 mois. - Démission : aucune durée légale ; elle est fixée par la convention collective, un accord, le contrat ou les usages (souvent 1 mois non-cadre, 3 mois cadre). - Départ ou mise à la retraite (art. L1237-6 et L1237-10) : mêmes durées que le licenciement. - Rupture de la période d'essai (art. L1221-25 et L1221-26) : délai de prévenance. Quand une convention ou le contrat prévoit une durée plus longue (licenciement, retraite), c'est la durée la plus favorable au salarié qui s'applique.
cadreNo
fauteGraveNoLicenciement pour faute grave ou lourde : pas de préavis.
presenceJoursNoPrésence dans l'entreprise en jours calendaires (rupture de période d'essai).
ancienneteMoisNo
ancienneteAnneesYes
dateNotificationNoDate de notification (point de départ du préavis), format AAAA-MM-JJ.
travailleurHandicapeNoBénéficiaire de l'obligation d'emploi (travailleur handicapé).
dureeConventionnelleMoisNoDurée conventionnelle ou contractuelle connue, en mois (prioritaire si plus favorable).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and openWorldHint=false, so the safety profile is fully covered and the description carries a lighter burden. It usefully states that the result is a duration plus an end date, but adds nothing about how legal/conventionnel precedence is arbitrated at runtime or what happens when required data is missing.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence naming the computation, its outputs, and the starting input, with no filler. The parenthetical rupture-type list earns its place by scoping the tool.

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 does the necessary work by naming both return values (durée and date de fin). For a nine-parameter, two-required pure calculation tool the main remaining gap is per-type parameter applicability, which the schema partially covers via its enum documentation.

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 67%, so roughly a third of the nine parameters (cadre, ancienneteMois, ancienneteAnnees) are documented only by name. The description does not clarify which optional parameters matter for which rupture type (e.g. presenceJours only for essai, dureeConventionnelleMois only when more favourable), so it adds little beyond the schema's own enum description.

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?

Specific verb (calcule) plus two concrete outputs (durée du préavis, date de fin) and an explicit input basis (date de notification). It also enumerates the covered rupture types (démission, licenciement, rupture de période d'essai), which cleanly separates it from siblings like indemnite_licenciement or rupture_conventionnelle.

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 only implied: the sentence establishes that the calculation starts from the notification date, so an agent can infer it is a calculation helper. There is no explicit when-to-use/when-not statement and no sibling is named as an alternative, even though indemnite_licenciement and rupture_conventionnelle overlap in domain.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.