Skip to main content
Glama

Count UAE working days between two dates

working_days_between
Read-onlyIdempotent

Count working days between two dates for a UAE emirate/sector (choose which endpoints to include), with the number of Friday half days and the list of non-working days in the range. Use for leave calculations, payroll, project durations and lateness. Example: {start_date:'2026-05-18', end_date:'2026-06-05', emirate:'federal', sector:'public'} → working_days 10, of_which_half_days 2. Response always includes data_confidence ('high' = all dates officially announced/confirmed, 'medium' = something is estimated), estimated_items[], sources[] (official URLs) and data_version.

Input Schema

NameRequiredDescriptionDefault
sectorNoSector: public (government) | private. Government employees, courts and ministries → 'public'. Companies → 'private' (weekend is employer-set; the common Sat–Sun default is used and flagged).public
emirateNoCalendar profile emirate: federal | abu_dhabi | dubai | sharjah | ajman | umm_al_quwain | ras_al_khaimah | fujairah. Use 'federal' unless the user named an emirate's government. Emirates other than Sharjah currently follow the federal weekend.federal
end_dateYesISO date. May be before start_date (result is negative).
inclusiveNoWhich endpoints to count: both (default) | start | end | none.both
start_dateYesISO date.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/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), and the description goes further by explaining the data_confidence levels ('high' = officially announced, 'medium' = estimated) and the presence of estimated_items, sources and data_version. It also flags the half-day counting behavior. It stops short of describing weekend/weekday handling for private sector beyond what the schema says, so not a full 5.

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?

Front-loaded with the core operation and the output shape, with the example placed mid-text where it supports comprehension. The final sentence enumerating response metadata is slightly list-heavy but each element (confidence, sources, version) carries real decision value, so little is wasted.

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, the description needn't re-document return values, yet it usefully clarifies confidence semantics and half-day behavior. Combined with 100% schema coverage, an agent has everything needed to call this correctly; only edge behavior for private-sector weekend assumptions is left to the schema.

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 description coverage is 100% — the emirate, sector, inclusive and date parameters are all documented with defaults and semantics in the schema itself. The description's 'choose which endpoints to include' and the example reuse that information rather than adding syntax or format detail, so baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('count working days between two dates') with explicit scope ('for a UAE emirate/sector') and what it returns (Friday half days, non-working day list). This is clearly separable from siblings like add_working_days or is_working_day, which operate on offsets or single dates.

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?

Names concrete use cases (leave calculations, payroll, project durations, lateness) and a worked example with parameters, which gives a strong sense of when to reach for it. However, it never explicitly excludes alternatives — e.g., it doesn't say to use is_working_day for a single date or add_working_days for offsets, so routing between siblings still requires inference.

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