date_math
Calculate dates by adding or subtracting durations from a start date, or compute the difference between two dates, optionally counting business days only.
Instructions
Date arithmetic. Two modes: provide start + add (e.g. "+90 days", "-2 weeks") to compute the resulting date, OR provide start + end to compute the diff. Diff mode optionally counts business days 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": {
"start": "<start>"
},
"name": "date_math"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| add | No | Relative duration like "+90 days", "-2 weeks", "next friday". | |
| end | No | Optional end date — when present, returns a diff instead. | |
| start | Yes | ISO 8601 / human-readable date. | |
| business_days | No |