Facts and arithmetic for a date
date_infoRetrieve weekday, ISO week, day of year, and leap year for a date, plus calculate dates after adding intervals and days until another date.
Instructions
Weekday, ISO week, day of year and leap year of a date ('today' = UTC); optionally the date after adding '+1 month' (month ends clamp) and the days until another date.
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": {
"date": "<date>"
},
"name": "date_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| add | No | '+1 month', '-3 weeks', 'P1Y2M' | |
| date | Yes | YYYY-MM-DD or 'today' | |
| until | No | YYYY-MM-DD |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ||
| weekday | Yes |