validate_gstin
Check an Indian GSTIN's structure and checksum, decode state and PAN details, and confirm expected entity type before invoicing, reconciliation, or compliance workflows.
Instructions
Validate and decode an Indian GSTIN with checksum verification.
Use when checking supplier/customer GSTINs before invoicing, reconciliation, or compliance workflows.
Args: gstin: 15-character GSTIN (e.g., 27AAPFU0939F1ZV). Spaces/hyphens stripped. expected_entity_type: Optional expected entity char to match PAN 4th char. verify_online: Optional opt-in online registry attestation (A4 level).
Returns: Standard envelope containing validity, state decode, embedded PAN, entity number, category, and checksum information.
Notes: Validates structure and checksum only; does not verify active GSTN registration status.
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": {
"gstin": "<gstin>"
},
"name": "validate_gstin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gstin | Yes | 15-character GSTIN (spaces/hyphens allowed) | |
| verify_online | No | Optional opt-in online registry attestation (A4 level) | |
| expected_entity_type | No | Optional expected entity type character to verify against PAN 4th char |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||