Parse AIS (Annual Information Statement)
parse_aisDecrypt and parse an AIS JSON export on-device to extract taxpayer details, normalized TDS/SFT rows, section totals, and salary per employer TAN.
Instructions
Decrypt and parse the AIS JSON export from the income tax portal, entirely on-device. Provide pan + dob (DDMMYYYY) to derive the password, or pass it explicitly. Returns taxpayer info, normalized information rows (TDS entries, SFT transactions) with amounts, dates, and codes extracted by column label, and totals summed in code: every section/element/code group with its row count and amount (each group's key is what reconcile_documents takes as interestGroups/dividendGroups), and salary per employer TAN from section 192 TDS rows. Never add up rows yourself. The decryption scheme is reverse-engineered from the AIS utility; if it fails, use the portal's CSV export as a fallback and file an issue.
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": {
"path": "<path>"
},
"name": "parse_ais"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dob | No | Date of birth as DDMMYYYY (or DD-MM-YYYY); date of incorporation for non-individuals. NOT ISO YYYY-MM-DD. | |
| pan | No | PAN (used to derive the decryption password) | |
| path | Yes | Absolute path to the downloaded AIS .json file | |
| password | No | Explicit decryption password (overrides pan+dob derivation) |