calculate_gst
Compute GST breakdown including CGST, SGST, or IGST split and optional cess for invoices and compliance.
Instructions
Calculate GST breakdown with CGST/SGST/IGST split and optional cess.
Use when computing tax for invoices, quotations, or GST compliance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Base amount in rupees (or inclusive amount if flagged) | |
| gst_rate | Yes | GST rate as percentage: 0, 0.1, 0.25, 1.5, 3, 5, 12, 18, 28 | |
| transaction_type | Yes | 'intra_state' (CGST+SGST) or 'inter_state' (IGST) | |
| amount_includes_gst | No | If True, back-calculate base from GST-inclusive amount | |
| cess_category | No | Cess category for 28% items. Default: 'default' (no cess) | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||