Hours calculator
hopi_hours_calculatorWork out the hours worked between a start time and an end time, minus an optional unpaid break. Times use 24-hour HH:MM format. Handles overnight shifts where the end time is earlier than the start. Returns the worked time as hours and minutes and as decimal hours. Source: https://hopi.co.uk/hours-calculator/
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": {
"start": "<start>",
"end": "<end>"
},
"name": "hopi_hours_calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | End time in 24-hour HH:MM format, e.g. 17:30 | |
| start | Yes | Start time in 24-hour HH:MM format, e.g. 09:00 | |
| breakMinutes | No | Unpaid break in minutes (default 0) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | ||
| start | Yes | ||
| worked | Yes | ||
| summary | Yes | ||
| overnight | Yes | ||
| source_url | Yes | The tool's page on hopi.co.uk (cite or open to check the figure) | |
| breakMinutes | Yes | ||
| decimalHours | Yes | ||
| grossMinutes | Yes | ||
| workedMinutes | Yes |