Create GST invoice PDF
create_gst_invoiceGenerate GST-compliant tax invoice PDFs with supplier/buyer details, HSN/SAC codes, tax splits, place of supply, reverse charge, amount in words, and bank/UPI details; returns the PDF path and tax breakdown.
Instructions
Generate a GST-compliant tax invoice as a PDF on the user's computer (supplier and buyer details, HSN/SAC, tax split, place of supply, reverse charge, amount in words, bank/UPI details). Returns the file path and the tax breakdown. Ask the user for any missing supplier or buyer details instead of inventing 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": {
"invoice_number": "<invoice_number>",
"supplier": "<supplier>",
"buyer": "<buyer>",
"items": "<items>"
},
"name": "create_gst_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| buyer | Yes | ||
| items | Yes | ||
| notes | No | Payment terms or other notes | |
| ship_to | No | ||
| due_date | No | YYYY-MM-DD | |
| supplier | Yes | Seller; GSTIN required | |
| output_dir | No | Folder to save the PDF in (default ~/bharat-mcp/invoices) | |
| bank_details | No | ||
| invoice_date | No | YYYY-MM-DD, defaults to today | |
| invoice_number | Yes | Unique invoice number, max 16 chars (letters, digits, / or -) | |
| reverse_charge | No | ||
| place_of_supply | No | Defaults to the buyer's GSTIN state or state | |
| prices_include_gst | No |