time_duration_calculator
Calculate duration between two times or add a duration to a time. Choose between finding time difference or adding hours and minutes.
Instructions
Calculate duration between two times, or add a duration to a time.
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": {
"mode": "<mode>",
"time1": "<time1>",
"time2": "<time2>"
},
"name": "time_duration_calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | duration_between = time between two times | add_duration = add HH:MM to a time | |
| time1 | Yes | First time in HH:MM or HH:MM:SS format | |
| time2 | Yes | Second time / duration to add in HH:MM or HH:MM:SS | |
| spans_midnight | No | Set true if the duration crosses midnight |