date_math
Calculate dates by adding or subtracting years, months, days, hours, minutes, and seconds from a specified date.
Instructions
Add or subtract time from a date. Supports years, months, days, hours, minutes, seconds.
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>",
"add": "<add>"
},
"name": "date_math"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| add | Yes | Time to add (use negative values to subtract) | |
| date | Yes | Starting date (ISO 8601 or 'now') |