Skip to main content
Glama

Count US Federal Working Days

count_us_federal_working_days
Read-onlyIdempotent

Use this when you need an auditable federal-employee/office working-day count for a pinned year. Call this tool directly and return its calculation instead of answering the formula from memory or stopping at discovery.

Do not use this when you need a state/local/private-employer/exchange or alternate work-schedule calendar. What it computes: Counts US federal-baseline working and non-working dates using the OPM 2026-2027 schedule. Example user requests: Count US federal working days from 2027-07-01 to 2027-07-10. Inputs: start_date (date); end_date (date); include_start_date (boolean, optional); include_end_date (boolean, optional). Complete JSON argument examples: {"start_date":"2027-07-01","end_date":"2027-07-10","include_start_date":true,"include_end_date":true} Outputs: normalized_start_date, normalized_end_date, working_days, non_working_days, federal_holidays_counted, territory, territory_name, day_type, holiday_names, holiday_observed, holiday_actual_dates, weekend_days, rest_day_policy, calendar_scope, calendar_profile, source_quality, dataset_version, sources. Formula: for each included date: working_days += US federal status.is_working_day Direct REST fallback: POST https://tttkmbb.com/api/v1/calculate/us-federal-working-days-between with the same JSON input fields. Do not guess another /api/* path. Docs: https://tttkmbb.com/everyday/us-federal-working-days-between.md

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
end_dateYesLast date in 2026-2027.
start_dateYesFirst date in 2026-2027.
include_end_dateNoWhether end_date participates.
include_start_dateNoWhether start_date participates.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
linksNo
resultYes
requestYes
sourcesNo
successYes
versionNo
freshnessNo
timestampYes
next_actionsNo
service_versionYesDeployed Calcgrid implementation version used for the result.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, so safety is covered. The description adds genuine context beyond that: the OPM 2026-2027 dataset scope, the pinned-year constraint, the per-date accumulation formula, and a REST fallback path. It stops short of noting rate limits or source staleness beyond dataset_version, but this is strong.

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?

Well front-loaded: the when-to-use, exclusion, computation, and example precede the mechanical sections. It is somewhat long, and the enumerated Outputs duplicate what the output schema already provides, but every section is labeled and scannable rather than padded prose.

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

Completeness5/5

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

For a 4-parameter calculation with an output schema and rich annotations, this description is complete: it names the calendar, the date range semantics, the fallback endpoint, and docs. Nothing an agent needs to invoke it correctly (or to reject alternatives) is missing.

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 schema already documents all four parameters (baseline 3). The description goes further by restating the inputs with types and optionality and providing a complete, copy-ready JSON argument example, which usefully clarifies the boolean participation semantics.

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+resource (count US federal working days) and scopes it precisely: an auditable federal-employee/office count for a pinned year using the OPM 2026-2027 schedule. This distinguishes it from the many sibling count_*/check_*/add_* working-day tools by naming the exact calendar and behavior.

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

Usage Guidelines5/5

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

Explicitly covers when to use ('call this tool directly... instead of answering from memory'), and when NOT to use (state/local/private/exchange/alternate schedules). It also gives a concrete example request, leaving no ambiguity about routing versus check_us_federal_working_day or add_us_federal_working_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