Parse a duration
parse_durationConvert duration strings like "1h30", "1:30", or "2.5" into whole minutes for UseHourly, so time entries are parsed correctly for logging and invoicing.
Instructions
Turn text like "1h30", "1:30" or "2.5" into whole minutes, the way UseHourly reads it.
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": {
"text": "<text>"
},
"name": "parse_duration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The duration text to read, e.g. 1h30 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| hours | No | ||
| minutes | Yes | Whole minutes, or null when the text could not be read |