Skip to main content
Glama

UK Data: Maths and working days

working_days

Read-onlyIdempotent

UK working days between two dates, or the date N working days after/before a date, skipping weekends and bank holidays. (cost: 1 credit)

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "working_days"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoYYYY-MM-DD
fromNoYYYY-MM-DD, required
addDaysNonumber
divisionNoengland-and-wales|scotland|northern-ireland

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so safety is covered. The description adds genuinely new behavior beyond that: weekends and bank holidays are excluded, the calendar is UK-specific, and each call costs 1 credit — the credit cost is exactly the kind of rate/consumption detail annotations don't carry. It doesn't say which bank-holiday set applies by default or how division interacts with the result.

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?

A single front-loaded sentence that defines both modes and the exclusion rule, with the cost placed in a trailing parenthetical. No filler, no restatement of the tool name.

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 four-parameter, no-annotations-beyond-safety, no-output-schema calculation tool, this covers the essential behavior: what is counted, what is skipped, and the cost. Remaining gaps are the default division and what exactly is returned when both a range and an offset are supplied.

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 the baseline would be 3, but the description adds meaning the schema does not: the schema labels addDays only as 'number', while the description makes clear it is an offset counted in working days and that negative/'before' directions are supported. It leaves 'division' (england-and-wales|scotland|northern-ireland) and the to/from vs. addDays interaction for the agent to infer.

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 concrete computation ('UK working days between two dates, or the date N working days after/before a date') that an agent can match to a task immediately, and the 'skipping weekends and bank holidays' clause pins down the exact semantics. It stops short of naming how it differs from the sibling bank_holidays/public_holidays tools, so it doesn't fully clear the sibling-differentiation bar for 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?

The two operating modes (difference between two dates vs. date offset by N working days) implicitly tell the agent which parameters to drive, and the '(cost: 1 credit)' note gives a spend signal. However, there is no explicit when-not guidance, no mention of what to use for non-UK calendars, and no pointer to bank_holidays for date listing.

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