Skip to main content
Glama

Parse AIS (Annual Information Statement)

parse_ais
Read-only

Decrypt and parse an income tax portal AIS JSON export on-device, using PAN and DOB or a supplied password, to return taxpayer details and normalized TDS/SFT rows with amounts, dates, and codes.

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 and normalized information rows (TDS entries, SFT transactions) with amounts, dates, and codes extracted by column label. 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.

Input Schema

NameRequiredDescriptionDefault
dobNoDate of birth as DDMMYYYY (or DD-MM-YYYY); date of incorporation for non-individuals. NOT ISO YYYY-MM-DD.
panNoPAN (used to derive the decryption password)
pathYesAbsolute path to the downloaded AIS .json file
passwordNoExplicit decryption password (overrides pan+dob derivation)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.3
  2. Removedv0.3.0
  3. First observedv0.2.0

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Adds real context beyond the annotations: processing is on-device (consistent with openWorldHint=false), the decryption scheme is reverse-engineered and may fail, and the return payload is described. Missing are error semantics for a wrong password or malformed JSON, which matter for a tool whose own description admits fragility.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four tight sentences, front-loaded with the action and privacy property, then credentials, then return shape, then fallback. The fallback/issue sentence is slightly operational-tangent but still earns its place as recovery guidance.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description correctly carries the return-shape burden ('taxpayer info and normalized information rows... with amounts, dates, and codes'). Combined with the fragility disclosure, an agent has enough to call it and to interpret partial failures, though failure-mode behavior remains unspecified.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the schema already documents the overrides relationship for password. The description restates the pan+dob derivation hint but adds no format or edge-case detail (e.g., non-individual DOB handling, PAN case sensitivity) beyond what the schema provides. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb pair and resource ('Decrypt and parse the AIS JSON export from the income tax portal') plus scope ('entirely on-device'). The document-specific framing (AIS JSON, not Form 26AS) lets an agent distinguish it from the sibling parse_form26as without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explains the two credential paths ('provide pan + dob to derive the password, or pass it explicitly') and gives an explicit failure path (fall back to the portal's CSV export, file an issue). It does not explicitly route between this and parse_form26as when a user has both documents, which keeps it below a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.