Skip to main content
Glama

India GST (regular scheme: CGST, SGST, IGST)

gst_regular
Read-onlyIdempotent

Calculate Indian GST on a supply under the regular scheme: CGST + SGST for an intra-state supply, IGST for an inter-state supply, export or SEZ supply, with optional compensation cess, reverse charge and input tax credit eligibility (Sections 9 and 16-17, CGST Act 2017; Section 5, IGST Act 2017).

Behavior: Deterministic, idempotent calculation with zero external side effects. The rate must be one notified in the GST rule pack in force on as_of_date; the engine refuses a rate the pack does not contain rather than assume one. Exclusive mode adds tax to the amount; inclusive mode extracts it. Returns taxable value, CGST, SGST, IGST, cess, total tax and invoice total.

Usage Guidelines: Use for a registered person under the regular scheme. Do not use for a composition-scheme taxpayer; use gst_composition instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
amountYesSupply value in INR (the taxable value in exclusive mode, the tax-inclusive total in inclusive mode).
is_rcmNoTax payable by the recipient under reverse charge (Section 9(3)/9(4)).
as_of_dateYesCivil date YYYY-MM-DD. Selects the rule pack in force on that date. Required: the engine will not assume a date.
supply_typeNoIntra-state (CGST + SGST), inter-state (IGST), export or SEZ supply. If omitted, derived from supplier_state and place_of_supply when both are given.
cess_percentNoCompensation cess in percent, where applicable.0
itc_eligibleNoWhether the recipient may claim input tax credit (false for a Section 17(5) blocked credit).
rate_percentYesGST rate in percent. Must be a rate notified in the rule pack in force on as_of_date.
supplier_stateNoSupplier's state: 2-digit GST state code or state name.
place_of_supplyNoPlace of supply: 2-digit GST state code or state name.
calculation_modeNo'exclusive' adds GST to amount; 'inclusive' extracts GST from amount.exclusive

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
traceNo
is_rcmNo
statusNo
currencyNo
round_offNo
total_taxNo
disclaimerNo
gst_amountNo
base_amountNo
cess_amountNo
cgst_amountNo
igst_amountNo
minor_unitsNo
sgst_amountNo
supply_typeNo
cess_percentNo
itc_eligibleNo
net_tax_costNo
rule_ids_usedNo
calculation_modeNo
supply_structureNo
statutory_sectionNo
eligible_itc_amountNo
gross_invoice_totalNo
effective_rate_percentNo
tax_payable_direct_to_govtNo
invoice_payable_to_supplierNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / round_off
      Added value: +{
      +  "type": [
      +    "string",
      +    "number",
      +    "null"
      +  ]
      +}
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "base_amount": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "calculation_mode": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "cess_amount": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "cess_percent": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "cgst_amount": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "currency": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "disclaimer": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "effective_rate_percent": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "eligible_itc_amount": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "gross_invoice_total": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "gst_amount": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "igst_amount": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "invoice_payable_to_supplier": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "is_rcm": {
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    },
      +    "itc_eligible": {
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    },
      +    "minor_units": {
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "net_tax_cost": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "rule_ids_used": {
      +      "type": [
      +        "array",
      +        "null"
      +      ]
      +    },
      +    "sgst_amount": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "status": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "statutory_section": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "supply_structure": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "supply_type": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "tax_payable_direct_to_govt": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "total_tax": {
      +      "type": [
      +        "string",
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "trace": {
      +      "type": [
      +        "array",
      +        "null"
      +      ]
      +    }
      +  },
      +  "type": "object"
      +}
  3. Added
  4. Removed
  5. Added

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources