Skip to main content
Glama

CalcPronto: exact calculators (tax, payroll, loans, VAT, EU261)

French paid leave (congés payés): days and indemnity

paid_leave_fr_calculate
Read-onlyIdempotent

French paid leave (congés payés) of a private-sector employee over one reference period (1 June to 31 May), rules in force since the law of 22 April 2024: days acquired (2.5 jours ouvrables per month of work or assimilated period, 2 per month of non-occupational sick leave within 24, rounded up, 30 at most), then the indemnity of the leave taken by the one-tenth rule and by salary maintenance, the higher being due. Whole months: months_worked (work and assimilated periods: paid leave, maternity or paternity leave...; default: 12 minus the other months), months_sick_leave (non-occupational illness or accident), months_work_accident (work accident or occupational disease: counts as work). monthly_gross_salary in euros; reference_gross_total: gross pay of the reference period if it varied (default: salary x months worked + 80 % of it for each sick leave month). leave_days: whole days of leave taken, in leave_unit 'ouvres' (Monday-Friday) or 'ouvrables' (Monday-Saturday); default: the whole leave acquired. month_working_days: working days of the month of the leave in the same unit (default: average month, 21.67 jours ouvrés or 26 jours ouvrables). Not covered: extra days for children, seniority or collective agreements, split leave days, absences counted in days.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "paid_leave_fr_calculate"
  }
}

Input Schema

NameRequiredDescriptionDefault
leave_daysNo
leave_unitNoouvres
months_workedNo
months_sick_leaveNo
month_working_daysNo
monthly_gross_salaryNo
months_work_accidentNo
reference_gross_totalNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety is covered. The description still adds substantial context: the legal basis, the 2.5 jours ouvrables accrual rule with rounding and a 30-day cap, the one-tenth vs salary-maintenance comparison with the higher being due, and per-parameter default behaviour. Output format is left to the output schema, which is appropriate.

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

Conciseness3/5

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

Nearly every clause carries information, but it is delivered as one dense run-on paragraph where accrual rules, parameter semantics and exclusions are interleaved. It would scan far better with the calculation rules front-loaded and the parameter defaults enumerated separately, since an agent must read the whole block to find any single parameter's meaning.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool is a pure calculator with zero required parameters, an output schema handling return values, and full annotation coverage for safety. Given that, the description supplies everything needed to invoke it correctly: legal basis, accrual formula, indemnity comparison, every default, and explicit coverage boundaries.

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

Parameters5/5

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

With schema description coverage at 0%, the description carries the full burden and does so for all eight parameters, including several non-obvious defaults: months_worked defaults to 12 minus the other months, reference_gross_total defaults to salary x months worked plus 80% per sick-leave month, leave_days defaults to the whole leave acquired, and month_working_days defaults to 21.67 jours ouvrés or 26 jours ouvrables. It also defines the leave_unit values ('ouvres' Monday-Friday vs 'ouvrables' Monday-Saturday) that the schema does not constrain with an enum.

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?

States a specific verb and resource (calculate French paid leave days and indemnity) plus a precise scope: one private-sector employee, one reference period (1 June to 31 May), rules in force since the 22 April 2024 law. An agent can tell this apart from the sibling paid_leave_fr_parameters, which by name supplies reference parameters rather than a calculation.

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?

The closing 'Not covered' sentence gives real when-not guidance: extra days for children, seniority, collective agreements, split leave days, and absences counted in days all route the agent elsewhere. What is missing is an explicit positive statement of when to prefer this over the sibling parameters tool, so routing is only implied.

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.