Count workdays
count_workdaysCount workdays between two dates, inclusive, excluding Fridays and official Iranian holidays; accepts Gregorian or Jalali dates.
Instructions
Count the days from start to end (both included) that are not Fridays or
official holidays. Thursdays count as workdays. Not a legal deadline calculator:
legal periods have their own rules.
Args: start: First day, Gregorian YYYY-MM-DD or Jalali YYYY/MM/DD. end: Last day, same formats (at most ten years after start).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"start": "<start>",
"end": "<end>"
},
"name": "count_workdays"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | ||
| start | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | ||
| days | Yes | Calendar days in the range, both ends included. | |
| start | Yes | ||
| days_off | Yes | The Fridays and holidays in the range. | |
| workdays | Yes | Days that are neither a Friday nor an official holiday. | |
| estimated | Yes | True when an estimated lunar holiday affected the count. | |
| end_jalali | Yes | ||
| start_jalali | Yes |