Invoice generator
hopi_invoice_generatorWork out the totals for a UK invoice or full VAT invoice from its line items, in whole pence. Each line has a quantity, a unit price before VAT and, when vatRegistered is true, a VAT rate of 20, 5, 0, exempt or outside (the scope of VAT). VAT is rounded to the nearest penny on each line and summed per rate, as HMRC VAT Notice 700 allows. Returns line, per-rate and invoice totals, the total VAT in sterling for a foreign-currency VAT invoice (needs exchangeRate), the due date from termsDays, whether a simplified VAT invoice is allowed, the late payment compensation band and a list of missing details. Totals only: the printable invoice and PDF are made on the page, and descriptions are never echoed back. Source: https://hopi.co.uk/invoice-generator/
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": {
"lineItems": "<lineItems>"
},
"name": "hopi_invoice_generator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currency | No | Currency the invoice is in | GBP |
| lineItems | Yes | The lines on the invoice, up to 200 | |
| termsDays | No | Days the customer has to pay; 0 means on receipt | |
| supplyDate | No | Date the goods or services were supplied (the tax point), YYYY-MM-DD | |
| invoiceDate | No | Date of the invoice, YYYY-MM-DD | |
| exchangeRate | No | How much of the currency £1 buys, such as 1.17 for euros. Needed for a VAT invoice not in GBP, so the total VAT can be shown in sterling | |
| vatRegistered | No | True for a full VAT invoice with VAT on each line; false for a plain invoice with no VAT | |
| detailsIncluded | No | Which other details the invoice will show, to list anything missing. Leave a key out if unknown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| net | No | ||
| vat | No | ||
| gross | No | ||
| lines | No | ||
| notes | No | ||
| dueDate | No | ||
| netText | No | ||
| summary | Yes | ||
| vatText | No | ||
| currency | No | ||
| warnings | No | ||
| lineCount | No | ||
| termsDays | No | ||
| totalText | No | ||
| vatByRate | No | ||
| source_url | Yes | The tool's page on hopi.co.uk (cite or open to check the figure) | |
| supplyDate | No | ||
| invoiceDate | No | ||
| exchangeRate | No | ||
| vatInSterling | No | ||
| vatRegistered | No | ||
| latePaymentCompensation | No | ||
| simplifiedInvoiceAllowed | No |