get_calc_dates
Exact date arithmetic — the calendar math LLMs guess at. ?from=&to= → days, business days, weeks, hours between; ?date=&add=30d|2w|3m|1y|10bd → the resulting date (bd = business days); ?date= alone → weekday, ISO week, day-of-year, leap year, unix. All UTC, Mon-Fri business days, real-calendar validation (Feb 30 is rejected). ($0.001 per call, paid via x402)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_calc_dates"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| add | No | e.g. 30d, -2w, 3m, 1y, 10bd | |
| date | No | ISO date — alone: info; with add: arithmetic | |
| from | No | ISO date — with to: difference |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| date | No | ||
| diff | No | ||
| from | No | ||
| result | No |