Create an invoice PDF
create_invoice_pdfMakes a professional invoice PDF for a small service business from the details the user gives: the business name, the customer, and each line item's name, quantity and price, plus an optional tax rate, discount, payment terms, service date, invoice number and note. EosLog adds up the subtotal, discount, tax and total due, sets the due date from the payment terms, saves the invoice behind an unguessable link for 90 days, and returns that link (view, download or email the PDF) and a direct PDF link. Use it when the user wants an invoice to send a customer. It uses the user's prices and never sets them.
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": {
"business_name": "<business_name>",
"line_items": "<line_items>"
},
"name": "create_invoice_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Optional note, such as how to pay. | |
| tax_rate | No | Sales tax percent on the subtotal after any discount, for example 8.25. The user supplies it. | |
| line_items | Yes | One row per service or item, with the prices the user gives. | |
| service_date | No | Optional date or period of the work, as text, for example October 2026 or 10/1 to 10/15. | |
| business_name | Yes | The business sending the document, as it should print at the top. | |
| customer_name | No | Who the document is for, a person or a company. Printed as Customer when left out. | |
| payment_terms | No | When payment is due: on receipt, or 15, 30 or 45 days after the invoice date. | upon_receipt |
| business_email | No | Business email to print on it. | |
| business_phone | No | Business phone to print on it. | |
| invoice_number | No | Optional invoice number. One based on the date and time is used when left out. | |
| discount_percent | No | Optional discount, as a percent off the subtotal. |