generate_invoice_pdf
Generates a formatted multi-currency business invoice PDF from structured JSON (line items, optional tax/discount) with automatic total calculation.
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": {
"invoiceNumber": "<invoiceNumber>",
"from": "<from>",
"to": "<to>",
"items": "<items>"
},
"name": "generate_invoice_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Buyer details: { name, email?, phone?, taxId?, address? }. | |
| from | Yes | Seller details: { name, email?, phone?, taxId?, address? }. | |
| items | Yes | Array of { description, quantity, unitPrice } line items. | |
| notes | No | Optional invoice notes. | |
| status | No | Status pill on the invoice. | |
| currency | No | 3-letter currency code: USD, EUR, VND, GBP, etc. (default USD). | |
| invoiceNumber | Yes | Invoice number such as INV-2026-001. | |
| discountAmount | No | Optional fixed discount amount. | |
| taxRatePercent | No | Optional tax/VAT percentage (0-100). |