Render invoice text
render_invoice_textBuild an invoice from the same inputs as create_invoice and return it as a plain-text document (header, line items, subtotal, discount, tax, TOTAL DUE, notes) ready to paste into an email or message. Use when the user wants readable invoice text. Do NOT use when structured fields are needed; use create_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": {
"business_name": "<business_name>",
"client_name": "<client_name>",
"items": "<items>"
},
"name": "render_invoice_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Line items (at least one), each {description, quantity, unit_price}; line amount = quantity x unit_price. | |
| notes | No | Free-text notes printed on the invoice, e.g. payment instructions. Default empty. | |
| currency | No | Three-letter currency code, case-insensitive: one of USD, EUR, INR, GBP, AED, SGD, AUD, CAD. Default USD. | |
| client_name | Yes | Name of the client being billed, e.g. "Globex Corp" | |
| due_in_days | No | Payment term in days from today; sets due_date and 'Net N' terms. Default 14. | |
| discount_pct | No | Discount in percent of the subtotal, 0-100, e.g. 10 for 10% off. Default 0. | |
| tax_rate_pct | No | Tax rate in percent, 0-100, applied after the discount, e.g. 18 for 18% GST. Default 0. | |
| business_name | Yes | Name of the business or freelancer issuing the invoice, e.g. "Acme Design Studio" | |
| invoice_number | No | Invoice number to use, e.g. "INV-2026-042". If omitted, one is generated as INV-YYYYMMDD-NNNN. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The invoice rendered as multi-line plain text. |