Skip to main content
Glama

MaCalculatriceEnLigne

Calculate Vacation Days Optimal

calculate_vacation_days_optimal
Read-onlyIdempotent

Compute optimal vacation usage by chaining bridge days with public holidays. Use for HR or worker planning. Inputs: vacation days, country, year. Returns best plan with day count. See list_bundles for related 'voyage' calculators.

Input Schema

NameRequiredDescriptionDefault
public_holidays_countYesNumber of public holidays near weekends
vacation_days_availableYesAnnual vacation days available

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. First observed

TDQS

C2.7/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds only 'Returns best plan with day count', a thin return hint that an output schema already covers; no insight into computation assumptions or constraints.

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?

Four short sentences with the core purpose front-loaded, which is good. But the trailing 'See list_bundles for related voyage calculators' sentence earns little and injects a confusing reference; trimming it would tighten the definition.

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

Completeness2/5

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

With a simple two-parameter, read-only tool and an output schema, the burden is light, yet the description still fails the basics by naming parameters that do not exist and by not distinguishing itself from calculate_vacation_days_fr. The parameter mismatch alone leaves an agent unable to call the tool reliably from the description.

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

Parameters1/5

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

The description declares inputs as 'vacation days, country, year', but the schema has no country or year parameter at all – it takes public_holidays_count and vacation_days_available. An agent following the description would try to pass parameters that do not exist, which is actively misleading despite 100% schema coverage.

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+resource ('Compute optimal vacation usage by chaining bridge days with public holidays') that is meaningfully distinct from a plain leave-days counter. However, it never names its closest sibling (calculate_vacation_days_fr or calculate_leave_days), so the agent cannot tell from the description alone which of the near-identical vacation calculators to pick.

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

Usage Guidelines2/5

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

'Use for HR or worker planning' names an audience, not a condition for selecting this tool over alternatives. The pointer to list_bundles for 'voyage calculators' is a listing tool, not an alternative calculator, and reads like noise rather than routing guidance.

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.