Unbilled time and what the invoice would be
unbilled_timeThe unbilled billable time for one client in a period, per project, with the amount an invoice would come to and the entry ids behind each line. Worked out with the same rules as create_invoice: time already on an invoice, running timers, non-billable projects and non-billable days are left out, and the client's rounding applies. It creates nothing. Use it to answer 'what would I bill this client?' before create_invoice.
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": {
"client": "<client>",
"from": "<from>",
"to": "<to>"
},
"name": "unbilled_time"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Last day of the period | |
| from | Yes | First day of the period | |
| client | Yes | Client id or exact client name |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| from | Yes | ||
| total | Yes | What the invoice would come to, in dollars (no tax) | |
| client | Yes | Client name | |
| currency | Yes | ISO 4217 code the amounts are in | |
| projects | Yes | One per project, sorted by name; empty when nothing is unbilled | |
| total_hours | Yes | ||
| total_minutes | Yes | Billed minutes (after the client's rounding) |