Utilities
Calculate working days between two dates, excluding weekends and holidays
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/working-days-calculator' \
-H 'Content-Type: application/json' \
-d '{"startDate":"2024-01-01","endDate":"2024-12-31","country":"US","includeHolidays":true,"excludeWeekends":true,"customHolidays":"2024-12-25, 2024-12-26","precision":2}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/working-days-calculator| Name | Type | Required | Description |
|---|---|---|---|
| startDate | text | Yes | — |
| endDate | text | Yes | — |
| country | select | No | — |
| includeHolidays | checkbox | No | — |
| excludeWeekends | checkbox | No | — |
| customHolidays |
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-working-days-calculator": {
"name": "working-days-calculator",
"description": "Calculate working days between two dates, excluding weekends and holidays",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=working-days-calculator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "working-days-calculator",
"arguments": {
"startDate": "2024-01-01",
"endDate": "2024-12-31",
"country": "US",
"includeHolidays": true,
"excludeWeekends": true,
"customHolidays": "2024-12-25, 2024-12-26",
"precision": 2
}
}
}Questions or issues? Contact [email protected]
| text |
| No |
| — |
| precision | number | No | — |
JSON result
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}