time_math
Performs compound time calculations, including adding days or business days, date differences, time zone conversion, natural-language parsing, and duration formatting for multi-step scheduling tasks.
Instructions
Performs compound time-math operations. Dispatches to the appropriate sub-operation based on the 'operation' parameter. Operations: add_days, add_business_days, diff, convert_tz, parse_nl, format_duration. Use this for multi-step or dynamic time operations; for single-purpose calls use get_current_time, convert_timezone, parse_duration, add_business_days, or count_business_days.
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": {
"operation": "<operation>",
"operands": "<operands>"
},
"name": "time_math"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operands | Yes | Key-value pairs matching the chosen operation's expected fields. See operation documentation for required keys. | |
| operation | Yes | The time arithmetic operation to perform. Each operation expects specific operands. |