API & MCP
Everything a person can do on Crewdesk Working Days Calculator, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://crewdeskworkingdays.usefulweb.site/api/v1/calculate– run Crewdesk Working Days CalculatorGET https://crewdeskworkingdays.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Crewdesk Working Days Calculator
Counts the working days from a first to a last day (both included) for your own working pattern — Mon–Fri, a four-day week or shifts — minus the public holidays of your country and state or region (all 16 German states, Austrian and Swiss regions, US states, UK nations and more) and any extra company holidays. Half days at the start or end count 0.5. Lists every holiday and a month-by-month breakdown.
| Field | Type | Default | Description |
|---|---|---|---|
from | text | "2026-12-21" | First day (YYYY-MM-DD) |
to | text | "2027-01-08" | Last day (YYYY-MM-DD) |
country | text | "DE" | Country (two letters) |
subdivision | text | "DE-BY" | State or region (optional). ISO 3166-2 code such as DE-BY (Bavaria), DE-BE (Berlin), AT-9 (Vienna), CH-ZH or US-CA. Without it only nationwide holidays count. |
workingDays | text | "Mon-Fri" | Working days. Mon-Fri, Mon-Thu, Tue-Sat or Mon+Wed+Fri. |
halfFrom | boolean | false | The first day counts half |
halfTo | boolean | false | The last day counts half |
extraHolidays | textarea | — | Extra holidays (one per line: YYYY-MM-DD, name). Company closing days or local holidays that are not in the national data, e.g. 2026-12-24, Christmas Eve. |
Example request
Christmas break in Bavaria
curl -X POST https://crewdeskworkingdays.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"from":"2026-12-21","to":"2027-01-08","country":"DE","subdivision":"DE-BY"}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://crewdeskworkingdays.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
crewdesk_working_days - Local stdio connector:
node src/mcp-stdio.ts --tool=crewdesk-working-days
{
"mcpServers": {
"crewdesk-working-days": { "type": "http", "url": "https://crewdeskworkingdays.usefulweb.site/mcp" }
}
}