Skip to main content
Glama

Calculate Vacation Days FR

calculate_vacation_days_fr
Read-onlyIdempotent

Compute French paid vacation days earned (congés payés). Use for HR planning. Inputs: months worked, contract type. Returns days earned (2.5 working days per month, max 30, rounded up; same entitlement full-time or part-time) and equivalent in working days; RTT are not statutory and are not computed. See list_bundles for related 'finance-france' calculators.

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": {
      "months_worked": "<months_worked>"
    },
    "name": "calculate_vacation_days_fr"
  }
}

Input Schema

NameRequiredDescriptionDefault
full_timeNoFull-time
months_workedYesMonths worked

Output Schema

NameRequiredDescriptionDefault
resultNoComputed result. Object whose fields depend on the tool (e.g. {tax, marginal_rate, brackets} for tax tools, {volume_l, gallons} for volume tools).
sourceNoAuthoritative source for the rule or formula (e.g. "Article 197 CGI", "NF DTU 21").
formulaNoHuman-readable formula or method used (e.g. "I=P·r·t", "Magnus formula").
reference_urlNoLink to a calcul2 page documenting the calculation in detail.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "formula": {
      +      "description": "Human-readable formula or method used (e.g. \"I=P·r·t\", \"Magnus formula\").",
      +      "type": "string"
      +    },
      +    "reference_url": {
      +      "description": "Link to a calcul2 page documenting the calculation in detail.",
      +      "type": "string"
      +    },
      +    "result": {
      +      "description": "Computed result. Object whose fields depend on the tool (e.g. {tax, marginal_rate, brackets} for tax tools, {volume_l, gallons} for volume tools)."
      +    },
      +    "source": {
      +      "description": "Authoritative source for the rule or formula (e.g. \"Article 197 CGI\", \"NF DTU 21\").",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotation coverage already establishes a safe, idempotent, closed-world read; beyond that the description discloses the actual accrual rule (2.5 working days per month, max 30, rounded up) and explicitly notes part-time parity and that RTT are non-statutory and not computed - exactly the behavioral context an agent cannot get from structured fields.

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 inputs, then output rules, then a cross-reference - each clause carries information. The 'Inputs:'/'Returns:' phrasing is slightly mechanical and the calculation detail is packed into one long sentence, but nothing is dispensable.

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 two-parameter statutory calculator with an output schema, the definition supplies the accrual formula, cap, rounding, part-time treatment and RTT exclusion, leaving little ambiguity. The remaining gap is routing guidance versus the vacation/leave siblings.

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 baseline is 3, but the description adds real meaning by stating the entitlement is identical full-time or part-time, which tells the agent the full_time flag does not change the payout. Minor deduction: it calls the second input 'contract type' while the schema is a boolean 'full_time'.

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 ('Compute French paid vacation days earned (congés payés)') with the statutory scope pinned down (2.5 days/month, 30-day cap, RTT excluded), so an agent knows exactly which calculation this is.

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?

'Use for HR planning' gives a usage context, and the RTT exclusion implicitly marks a boundary, but no alternative is named or excluded - siblings like calculate_leave_days or calculate_vacation_days_optimal are not addressed, so the agent must infer the split.

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