date_add
Add or subtract days, weeks, months, years, hours, minutes, or seconds from an ISO-8601 date, with calendar-correct results across month ends and leap years.
Instructions
Offset an ISO-8601 date by days, weeks, months, years, hours, minutes or seconds. Negative amounts subtract. Calendar-correct across month ends and leap years.
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>",
"amount": "<amount>"
},
"name": "date_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Base date, e.g. 2026-01-31 | |
| unit | No | Unit (default days) | |
| amount | Yes | Amount to add; negative to subtract |