Date math
date_mathAdd or subtract days, hours, or business days (Monday to Friday, holidays not skipped), or diff two dates. Intl and UTC calendar dates only.
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_math"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | YYYY-MM-DD or an ISO timestamp. | |
| diff | No | Second date. Returns days, hours, and business days between them. | |
| add_days | No | ||
| add_hours | No | ||
| subtract_days | No | ||
| subtract_hours | No | ||
| add_business_days | No | ||
| subtract_business_days | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| diff | No | ||
| result | No |