calculate_gst_tax
Calculates CGST, SGST, and IGST amounts by analyzing transaction amount, GST rate, seller GSTIN, and buyer state to determine inter-state or intra-state routing.
Instructions
Calculates GST (CGST, SGST, IGST) breakdown based on transaction amount, GST rate, seller's GSTIN and buyer's location/state. Determines inter-state vs intra-state routing automatically.
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": {
"amount": "<amount>",
"rate": "<rate>",
"sellerGstin": "<sellerGstin>",
"buyerStateCodeOrName": "<buyerStateCodeOrName>"
},
"name": "calculate_gst_tax"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rate | Yes | The GST tax rate percentage (e.g. 5, 12, 18, 28). | |
| amount | Yes | The transaction amount (price of goods/services). | |
| inclusive | No | Whether the provided amount is inclusive of GST. Defaults to false (exclusive). | |
| sellerGstin | Yes | The 15-character GSTIN of the seller. | |
| buyerStateCodeOrName | Yes | The state name or 2-digit state code of the buyer (e.g., 'Delhi' or '07'). |