Calculate journey time
calculate_journey_timeCalculate journey duration from distance and average speed.
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": {
"distance": "<distance>",
"speed": "<speed>"
},
"name": "calculate_journey_time"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| speed | Yes | Average speed. Must be finite and greater than zero. | |
| distance | Yes | Journey distance. Must be finite and non-negative. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| duration | Yes | Duration split into whole hours, minutes, and seconds. | |
| formatted | Yes | H:MM:SS presentation of the duration. | |
| totalHours | Yes | Total duration in decimal hours. | |
| totalSeconds | Yes | Total duration in seconds, full precision. |