Skip to main content
Glama

Working days calculator

hopi_working_days_calculator
Read-onlyIdempotent

Count the working days (Monday to Friday) between two dates, inclusive of both ends, optionally excluding England and Wales bank holidays. Dates use the YYYY-MM-DD format. Bank holiday data covers 2026 to 2028 only, so outside those years just weekends are excluded. Source: https://hopi.co.uk/working-days-calculator/

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": {
      "from": "<from>",
      "to": "<to>"
    },
    "name": "hopi_working_days_calculator"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesEnd date in YYYY-MM-DD format
fromYesStart date in YYYY-MM-DD format
bankHolidaysNoExclude England and Wales bank holidays as well as weekends (default true)

Output Schema

NameRequiredDescriptionDefault
toNo
fromNo
summaryYes
swappedNo
completeNo
warningsNo
totalDaysNo
source_urlYesThe tool's page on hopi.co.uk (cite or open to check the figure)
weekendDaysNo
workingDaysNo
bankHolidaysNo
holidayCoverageNo
bankHolidaysExcludedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedOutput schema / properties / complete
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / holidayCoverage
      Added value: +{
      +  "type": "object"
      +}
    • addedOutput schema / properties / warnings
      Added value: +{
      +  "type": "array"
      +}
    • addedOutput schema / required
      Added value: +[
      +  "source_url",
      +  "summary"
      +]
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), yet the description still adds real behavior: inclusivity of both endpoints, the 2026–2028 holiday-coverage limit, and the England/Wales jurisdiction. It does not state what happens for an inverted range (from > to), which is the one behavioral gap.

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 core computation before the caveats, and the year limitation is placed before the source link. The date-format sentence duplicates the schema and the source URL is incidental, so it is tight but not perfectly trimmed.

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?

With an output schema present and annotations covering safety, the description only needs the computation semantics — and it supplies inclusivity, holiday jurisdiction and the year coverage limit. The sole omission is edge-case behavior (reversed dates, identical dates, non-holiday-covered years returning weekend-only counts is stated, but errors are not).

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; the description earns above that by explaining that from/to are inclusive at both bounds and that bankHolidays only has effect for 2026–2028 — semantics the schema's own text does not convey. The 'YYYY-MM-DD' sentence merely repeats the schema and adds 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?

A specific verb+resource ('Count the working days between two dates') with explicit scope: Monday–Friday, both ends inclusive, optional England/Wales bank holidays. It is clearly not a calendar-days tool, though it never names the nearest siblings (hopi_days_between_dates, hopi_add_working_days), so the agent has to infer the split.

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 weekday-only scope plus the note that bank holiday data covers 2026–2028 only (outside which just weekends are excluded) gives a clear conditional for when bankHolidays is meaningful. It stops short of explicit when-to-use/when-not guidance against the date-based siblings, so nothing routes the agent away if it actually wanted calendar days.

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