Preview next invoice number
peek_invoice_numberPreview the next invoice number that will be assigned before issuing an invoice; read-only and reserves nothing, so the number may change if another invoice is issued first.
Instructions
Return the invoice number that issue_invoice would assign next, in the form YYMMNNN (year, month of the issue date, 3-digit sequence), e.g. '2610001'.
Read-only and reserves nothing: the number is computed again when issue_invoice runs, so it can change if another invoice is issued in between. Takes into account the ledger (~/.ucetka/invoices) and PDFs already in the issued-invoices folder. Use it to tell the user the number in advance; to create the invoice use issue_invoice.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "peek_invoice_number"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| issue_date | No | Issue date YYYY-MM-DD, e.g. '2026-10-04'; the number series restarts every month. Omitted = today. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |