Skip to main content
Glama

MaCalculatriceEnLigne

Calculate Overtime FR

calculate_overtime_fr
Read-onlyIdempotent

Compute French overtime pay (heures supplémentaires) per labor code. Use for HR or employee verification. Inputs: hourly rate, normal hours, overtime hours. Returns gross overtime pay with 25%/50% premiums.

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": {
      "actual_hours": "<actual_hours>",
      "hourly_rate": "<hourly_rate>"
    },
    "name": "calculate_overtime_fr"
  }
}

Input Schema

NameRequiredDescriptionDefault
base_hoursNoBase weekly hours
hourly_rateYesHourly rate EUR
actual_hoursYesActual weekly hours

Output Schema

NameRequiredDescriptionDefault
resultNoComputed result (fields depend on the tool).
sourceNoLegal or official source.
formulaNoMethod used.
reference_urlNomacalculatriceenligne.com page to share.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedOutput schema / properties / formula / description
      Previous value: -"Human-readable formula or method used (e.g. \"I=P·r·t\", \"Magnus formula\")."New value: +"Method used."
    • changedOutput schema / properties / reference_url / description
      Previous value: -"Link to a calcul2 page documenting the calculation in detail."New value: +"macalculatriceenligne.com page to share."
    • changedOutput schema / properties / result / description
      Previous value: -"Computed result. Object whose fields depend on the tool (e.g. {tax, marginal_rate, brackets} for tax tools, {volume_l, gallons} for volume tools)."New value: +"Computed result (fields depend on the tool)."
    • changedOutput schema / properties / source / description
      Previous value: -"Authoritative source for the rule or formula (e.g. \"Article 197 CGI\", \"NF DTU 21\")."New value: +"Legal or official source."
  2. First observed

TDQS

B3.2/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds only that the result is gross pay with 25%/50% premium tiers, and since an output schema exists the return summary is largely redundant; it does not explain the hour thresholds that trigger each premium rate.

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?

Three short sentences, front-loaded with the purpose, then use case, then inputs and output. Efficient overall, with the only waste being the return-value sentence that duplicates the output schema.

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

Completeness3/5

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

The tool is simple and richly annotated, and an output schema exists, so most structured burden is carried elsewhere. However, the description leaves the parameter mapping inconsistent with the schema and does not clarify how base_hours defaulting to 35 interacts with actual_hours, which is the one thing an agent must get right to call it correctly.

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

Parameters2/5

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

Schema description coverage is 100%, so the baseline would be 3, but the description's parameter list ("hourly rate, normal hours, overtime hours") does not match the actual schema (hourly_rate, base_hours with default 35, actual_hours). An agent could reasonably look for a nonexistent overtime_hours argument, so the description actively misleads rather than merely adding nothing.

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 specific verb and resource ("Compute French overtime pay (heures supplémentaires) per labor code"), which is clearly distinct from the income tax, VAT, and salary siblings by jurisdiction and subject. It stops short of naming an alternative for related payroll questions, so it is clear but not differentiated against siblings.

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 or employee verification" gives a broad usage context but no when-not conditions and no routing to alternatives such as calculate_french_income_tax or get_smic_france. The guidance is implied rather than operational.

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.