Prepare a UAE invoice
prepare_invoiceUse this when a user without a connected Fatura Go account asks to make, prepare or calculate an invoice for a client. Checks an invoice and works out its totals with UAE VAT rules (line rounding, 5% standard rate, full or simplified tax invoice, AED amounts), lists what is still missing under Article 59, and returns a link that opens the invoice in the Fatura Go invoice generator on invoicefatura.com, where the user can review it and download a PDF. When no card is shown, show the user the lines and totals from the result before the link. Nothing is issued or sent, and no invoice number is assigned. The link works for 24 hours. Use only details the user gave; leave a TRN out rather than guess it. No email addresses or phone numbers. For someone who has connected their own Fatura Go account, use create_draft_invoice from that connection instead: it saves a draft in their account. Do not use it for a connected user: save a draft with create_draft_invoice instead. It does not send or issue an 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>",
"lines": "<lines>"
},
"name": "prepare_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | ||
| notes | No | ||
| client | Yes | The customer being invoiced. | |
| seller | No | The user's own business. | |
| currency | No | Default AED. | |
| due_date | No | YYYY-MM-DD; default 14 days after the invoice date (Net 14). | |
| language | No | Invoice language; default en. | |
| invoice_date | No | YYYY-MM-DD; default today (UAE). | |
| prices_include_vat | No | true when unit prices already include VAT. |