Skip to main content
Glama

Billwise Invoice Maker

Generate invoice

generate_invoice
Read-onlyIdempotent

Use this when the user wants to make or generate an invoice, invoice template, bill, quote, estimate, receipt, or credit note as a downloadable PDF (invoice generator for freelancers, contractors, and small businesses), including 'how do I make an invoice for this work' once the work, client, and prices are known. Computes exact totals: per-line rounding to the currency's minor units (round half up), line and document discounts before tax, tax/VAT/GST summary grouped by rate, shipping, deposits and balance due; supports any ISO 4217 currency (JPY has no decimals). Returns totals plus PDF (A4 or Letter) and CSV download links. Does not email invoices to clients, track payments, process card payments, or give tax advice; the user supplies tax rates. Do not use to fabricate receipts for purchases that did not happen.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsYesLine items, at least one, at most 200. Example: [{"description": "Design work", "quantity": 12, "unit": "hrs", "unit_price": 85}].
notesNoOptional note printed at the bottom, e.g. 'Thank you for your business.'
paperNoPDF paper size. Defaults to letter for US/Canada locales and A4 elsewhere.
clientNoWho receives the document: the client or customer.
localeNoOptional BCP 47 locale for number and date formats, e.g. en-US, en-GB, de-DE, pl-PL. Labels stay in English. Defaults to English for the currency's country.
numberNoDocument number exactly as it should appear, e.g. INV-0042. If omitted, one is derived from the issue date.
sellerNoWho issues the document: the user's business or freelance name, address, email, optional tax ID.
currencyNoISO 4217 currency code, e.g. USD, EUR, GBP, PLN, JPY. Defaults to USD. Minor units follow ISO 4217 (JPY has none, KWD has 3).
due_dateNoPayment due date (or valid-until date for quotes and estimates) as YYYY-MM-DD, e.g. 2026-10-16.
shippingNoOptional shipping or delivery charge, e.g. 15.
referenceNoOptional purchase order or project reference, e.g. PO-7781. For credit notes, the original invoice number.
tax_labelNoName of the tax shown on the document, e.g. VAT, GST, Sales tax. Defaults to Tax.
issue_dateNoIssue date as YYYY-MM-DD, e.g. 2026-10-02. Defaults to today (UTC).
amount_paidNoAmount already paid (deposit or partial payment), shown as a balance due, e.g. 500. Receipts default to the full total.
accent_colorNoOptional brand accent colour as hex, e.g. #1D4ED8. Defaults to #0E7C66.
document_typeNoKind of document: invoice (default), quote, estimate, receipt (records a payment already received), or credit_note (refund or correction of an earlier invoice).
amount_in_wordsNoSet true to print the total in English words, e.g. 'One thousand twenty and 00/100 USD'.
discount_amountNoOptional fixed discount on the whole document before tax, e.g. 50. Use either this or discount_percent.
discount_percentNoOptional discount on the whole document in percent, applied to the subtotal before tax, e.g. 10.
shipping_tax_rateNoTax rate in percent applied to shipping, e.g. 20. Defaults to 0 (shipping not taxed).
payment_terms_daysNoAlternative to due_date: days after the issue date, e.g. 14 for 'Net 14' or 30 for 'Net 30'. 0 means due on receipt.
payment_instructionsNoOptional free-text payment details from the user, e.g. bank name, IBAN, SWIFT, or a payment link. Never a card number.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
hintsYes
itemsYes
notesYes
paperYes
titleYes
clientYes
localeYes
numberYes
sellerYes
totalsYes
displayYes
currencyYes
due_dateYes
warningsYes
downloadsYes
due_labelYes
pdf_pagesYes
referenceYes
tax_labelYes
issue_dateYes
adjustmentsYes
minor_unitsYes
tax_summaryYes
accent_colorYes
tax_id_labelYes
document_typeYes
amount_in_wordsYes
payment_terms_daysYes
payment_instructionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources