Hours Calculator
hours_calculatorCalculate worked minutes, decimal hours and H:MM from clock times, an overnight flag and an unpaid break.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"end": "06:00",
"start": "22:00",
"overnight": true,
"breakMinutes": 30
},
"name": "hours_calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | End clock time HH:MM (24-hour) | |
| start | Yes | Start clock time HH:MM (24-hour) | |
| overnight | No | End is on the next day; shift at most 24 hours | |
| breakMinutes | No | Unpaid break in whole minutes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||