date_math
Date utilities: now (current UTC time), add (add a duration to a date), diff (difference between two dates), weekday (day name for a date).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "date_math"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ISO date for add/weekday | |
| unit | No | millisecond/second/minute/hour/day/week | day |
| date1 | No | ||
| date2 | No | ||
| value | No | Amount for add | |
| operation | No | now |