Skip to main content
Glama

calculate uk irregular hours holiday

calculate_uk_irregular_hours_holiday
Read-onlyIdempotent

UK irregular-hours and part-year workers: holiday accrues at 12.07% of hours worked in each pay period (leave years from 1 April 2024). Rounding and rolled-up pay not applied. General information only, not legal advice, as of 2026-11-22.

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": {
      "hours": "<hours>"
    },
    "name": "calculate_uk_irregular_hours_holiday"
  }
}

Input Schema

NameRequiredDescriptionDefault
hoursYesHours worked in each pay period

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description's added value is the substantive rule set: 12.07% accrual, leave years starting 1 April 2024, no rounding, and no rolled-up pay. That is meaningful behavioral context, but it omits what the response actually contains (e.g., accrued hours vs. pay) and any handling of the 60-period cap.

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?

Three tight clauses: the formula and rate first, then the temporal scope, then the caveats and disclaimer. No redundancy and nothing buried behind filler.

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 one-parameter read-only calculator, the description supplies the rate, the effective-date scope, and the exclusions an agent needs to trust the result, plus a disclaimer. The only shortfall is that the return value's shape and units are not stated, though this is minor for such a simple tool.

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 100% and the single parameter is described as 'Hours worked in each pay period', so the baseline applies. The description reinforces the per-pay-period semantics of the array but adds no further constraints, ordering rules, or edge-case handling.

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?

The description names a specific domain, population ('UK irregular-hours and part-year workers'), and the calculation performed ('holiday accrues at 12.07% of hours worked'), so the agent knows exactly what is computed. It does not explicitly state how it differs from lookalike siblings such as calculate_annual_leave, which keeps it just short of a 5.

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 implied by the population named ('irregular-hours and part-year workers'), which is enough for an agent to route most cases here. However, there is no explicit when-to-use statement, no exclusion of the standard leave calculator sibling, and no statement of prerequisites or inputs beyond the schema.

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.