date_add
Add or subtract days, weeks, months, years, or business days from any date, correctly handling leap years and month boundaries for accurate results.
Instructions
Add or subtract days/weeks/months/years/businessDays from a date, handling leap years and month boundaries correctly
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>",
"unit": "<unit>"
},
"name": "date_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ISO 8601 date/datetime, e.g. "2026-03-03" | |
| unit | Yes | ||
| amount | Yes | Positive or negative integer amount |