mcp-india-stack
v0.8.0Model Context Protocol server for Indian financial, tax, and regulatory APIs — GSTIN, IFSC, PAN, UPI, pincode, HSN/SAC — for AI agents.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
lookup_ifsc
Look up an Indian IFSC code from bundled dataset with live fallback support. Use this when you need bank branch details from an IFSC code in invoices, onboarding forms, or payment validation workflows. Args: ifsc_code: IFSC string to validate and lookup. Case-insensitive; whitespace is trimmed. Returns: Standard envelope containing found flag, branch details, payment rails, and source. Notes: If not found locally, attempts live lookup at ifsc.razorpay.com with 3s timeout.
| Parameter | Type | Description |
|---|---|---|
ifsc_code * | string | IFSC code, expected 11 chars. Example: HDFC0000001 |
bulk_validate_ifsc
Validate multiple IFSC codes in parallel.
| Parameter | Type | Description |
|---|---|---|
ifscs * | array | List of IFSC codes to validate (max 500) |
lookup_bbps_biller
Look up BBPS (Bharat Bill Payment System) biller details. Use when setting up bill payments for electricity, gas, DTH, water, broadband, FASTag, insurance, or mobile recharges. Args: category: Category of biller to filter by. state: State to filter by (or 'all' for pan-India). biller_id: Direct biller ID for specific lookup. Returns: Standard envelope with matching billers and parameter schemas. Notes: Data is bundled offline. For real-time directory, check NPCI BBPS.
| Parameter | Type | Description |
|---|---|---|
biller_id | Direct biller ID lookup | |
category | electricity, gas, dth, water, broadband, fastag, insurance, mobile | |
state | State name (e.g., 'Maharashtra', 'Delhi') or 'all' |
calculate_epf_esic
Calculate EPF and ESIC contributions for employer and employee. Use when computing payroll costs, employee deductions, or comparing CTC structures across different salary levels. Args: basic_wages: Basic salary + DA per month in INR. gross_wages: Total gross monthly salary in INR. include_employer_share: If True, return employer costs. Returns: Standard envelope with EPF breakdown, ESIC applicability, and totals. Notes: EPF ceiling is ₹15,000/month for statutory computation. ESIC applicable when gross wages ≤ ₹21,000…
| Parameter | Type | Description |
|---|---|---|
basic_wages * | number | Basic salary + DA per month in INR |
gross_wages * | number | Total gross monthly salary in INR |
financial_year | string | Financial year (e.g. '2025-26', '2026-27') |
include_employer_share | boolean | If True, return employer costs |
calculate_neft_rtgs_imps_charges
Calculate NEFT/RTGS/IMPS/UPI transaction charges. Use when estimating bank transfer costs or comparing payment modes. Args: transfer_mode: "NEFT", "RTGS", "IMPS", or "UPI" amount: Transfer amount in INR account_type: "savings" or "current" is_online: True if done via online banking Returns: Charge breakdown with base charge, GST, and total.
| Parameter | Type | Description |
|---|---|---|
amount * | number | Transfer amount in INR |
transfer_mode * | string | NEFT, RTGS, IMPS, or UPI |
account_type | string | 'savings' or 'current' |
financial_year | string | Financial year (e.g. '2025-26', '2026-27') |
is_online | boolean | True if done via online banking |
lookup_bank
Look up bank details from RBI master list.
| Parameter | Type | Description |
|---|---|---|
name_or_code * | string | Bank name or IFSC code prefix |
validate_aa_consent_artifact
Validate AA consent artifact structure and flags. Use when verifying consent artifacts received from AA before processing. Args: artifact: Consent artifact JSON from AA response Returns: Validation result with consent details.
| Parameter | Type | Description |
|---|---|---|
artifact * | object | AA consent artifact JSON |
decode_aa_fi_type
Decode AA Financial Information type and get MCP tool pairings. Use when mapping FI types to validation/calculation tools. Args: fi_type: FI type code (e.g., "DEPOSIT", "MUTUAL_FUNDS") Returns: FI type description, typical fields, and MCP tool pairings.
| Parameter | Type | Description |
|---|---|---|
fi_type * | string | FI type code (e.g., DEPOSIT, MUTUAL_FUNDS) |
calculate_emi
Calculate EMI for a loan with year-by-year amortization schedule. Use when computing loan EMIs, comparing loan options, or planning prepayment strategies. Args: principal: Loan amount in INR. annual_interest_rate: Annual rate as percentage. tenure_months: Loan tenure in months (max 360). loan_type: Label for the loan type. Returns: Standard envelope with EMI, total payment, interest, and amortization. Notes: Uses standard reducing balance formula. Actual EMI may vary by lender.
| Parameter | Type | Description |
|---|---|---|
annual_interest_rate * | number | Annual interest rate as percentage (e.g., 8.5) |
principal * | number | Loan amount in INR |
tenure_months * | integer | Loan tenure in months |
financial_year | string | Financial year (e.g. '2025-26', '2026-27') |
loan_type | string | Loan type: home, personal, car, education, other |
calculate_gratuity
Calculate gratuity under the Payment of Gratuity Act, 1972. Use when computing terminal benefits, comparing CTC packages, or planning retirement benefits. Args: last_drawn_salary: Basic + DA per month. years_of_service: Total service duration. is_covered_under_act: True for establishments with 10+ employees. Returns: Standard envelope with gratuity amount, tax-exempt limit, and breakdown. Notes: Minimum 5 years service required (except death/disablement). Tax-exempt ceiling is ₹20,00,000.
| Parameter | Type | Description |
|---|---|---|
last_drawn_salary * | number | Last basic salary + DA per month in INR |
years_of_service * | number | Total years served (e.g., 5.8 = 5 yrs 9 months) |
financial_year | string | Financial year (e.g. '2025-26', '2026-27') |
is_covered_under_act | boolean | True if establishment has 10+ employees |
calculate_ppf_maturity
Calculate PPF maturity amount with year-by-year breakdown. Use when planning long-term savings, comparing investment options, or calculating retirement corpus. Args: annual_investment: Amount invested per year (max ₹1,50,000). tenure_years: PPF tenure (15, 20, 25, or 30 years). annual_interest_rate: PPF rate (default 7.1% for FY2025-26). Returns: Standard envelope with maturity amount, total invested, interest earned. Notes: EEE tax status: exempt at investment, accumulation, and maturity. Rate is government-administered…
| Parameter | Type | Description |
|---|---|---|
annual_investment * | number | Amount invested per year in INR |
annual_interest_rate | number | Annual interest rate percentage (default 7.1 for FY2025-26) |
financial_year | string | Financial year (e.g. '2025-26', '2026-27') |
tenure_years | integer | PPF tenure in years (15, 20, 25, or 30) |
calculate_fd_maturity
Calculate Fixed Deposit maturity amount. Use when projecting FD returns or comparing deposit options. Args: principal: Deposit amount in INR annual_interest_rate: Rate as percentage tenure_days: Deposit tenure in days compounding: Compounding frequency is_senior_citizen: Senior citizen flag (0.25% extra rate) tds_applicable: Apply TDS if interest > ₹40,000/yr Returns: Maturity amount with interest breakdown and TDS if applicable.
| Parameter | Type | Description |
|---|---|---|
annual_interest_rate * | number | Interest rate as percentage (e.g., 6.5) |
principal * | number | Deposit amount in INR |
tenure_days * | integer | Deposit tenure in days |
compounding | string | monthly, quarterly, half_yearly, yearly, simple |
financial_year | string | Financial year (e.g. '2025-26', '2026-27') |
is_senior_citizen | boolean | Senior citizen flag |
tds_applicable | boolean | Apply 10% TDS if interest exceeds threshold |
calculate_rd_maturity
Calculate Recurring Deposit maturity amount. Use when projecting RD returns or planning recurring deposits. Args: monthly_installment: Monthly deposit amount annual_interest_rate: Annual rate as percentage tenure_months: Deposit tenure in months Returns: Maturity amount with total interest earned.
| Parameter | Type | Description |
|---|---|---|
annual_interest_rate * | number | Annual interest rate as percentage |
monthly_installment * | number | Monthly deposit amount in INR |
tenure_months * | integer | Deposit tenure in months |
financial_year | string | Financial year (e.g. '2025-26', '2026-27') |
calculate_sip_returns
Calculate SIP maturity with inflation-adjusted returns. Use when projecting mutual fund SIP returns or planning systematic investments. Args: monthly_investment: Monthly SIP amount expected_annual_return: Expected CAGR % tenure_years: Investment tenure inflation_rate: Expected inflation % Returns: Corpus with wealth gained and inflation-adjusted value.
| Parameter | Type | Description |
|---|---|---|
expected_annual_return * | number | Expected CAGR as percentage |
monthly_investment * | number | Monthly SIP amount in INR |
tenure_years * | integer | Investment tenure in years |
financial_year | string | Financial year (e.g. '2025-26', '2026-27') |
inflation_rate | number | Expected inflation rate percentage |
calculate_step_up_sip
Calculate SIP with annual step-up increment. Use when comparing step-up SIP vs flat SIP or planning salary-linked investments. Args: initial_monthly_investment: Starting SIP amount annual_step_up_percent: % increase each year expected_annual_return: Expected CAGR % tenure_years: Investment tenure Returns: Corpus comparison between step-up and flat SIP.
| Parameter | Type | Description |
|---|---|---|
annual_step_up_percent * | number | Annual step-up percentage |
expected_annual_return * | number | Expected CAGR as percentage |
initial_monthly_investment * | number | Starting SIP amount in INR |
tenure_years * | integer | Investment tenure in years |
financial_year | string | Financial year (e.g. '2025-26', '2026-27') |
calculate_nps_projection
Calculate NPS corpus and monthly pension at retirement. Use when planning retirement with NPS or projecting pension. Args: monthly_contribution: Monthly NPS contribution current_age: Current age retirement_age: Retirement age (default 60) expected_annual_return: Expected annual return % annuity_rate: Annuity rate % annuity_percent: % of corpus to buy annuity (min 40%) Returns: Projected corpus, lump sum, and monthly pension estimate.
| Parameter | Type | Description |
|---|---|---|
current_age * | integer | Current age |
monthly_contribution * | number | Monthly NPS contribution in INR |
annuity_percent | number | Corpus for annuity (min 40%) |
annuity_rate | number | Annuity rate percentage |
expected_annual_return | number | Expected annual return percentage |
financial_year | string | Financial year (e.g. '2025-26', '2026-27') |
retirement_age | integer | Retirement age |
calculate_sukanya_samriddhi
Calculate SSY or SCSS maturity amount. Use when planning long-term savings for girl child (SSY) or retirement (SCSS). Args: scheme: "ssy" or "scss" annual_investment: Annual deposit amount annual_interest_rate: Interest rate (default 8.2%) Returns: Maturity amount with interest breakdown and tax status.
| Parameter | Type | Description |
|---|---|---|
annual_investment * | number | Annual deposit amount in INR |
scheme * | string | 'ssy' for Sukanya Samriddhi or 'scss' for Senior Citizen Savings Scheme |
annual_interest_rate | number | Interest rate as percentage |
financial_year | string | Financial year (e.g. '2025-26', '2026-27') |
calculate_home_vs_rent
Compare buying vs renting financial outcome. Use when deciding between buying a home or renting. Args: home_price: Property price in INR down_payment_percent: Down payment as % loan_interest_rate: Home loan interest rate % loan_tenure_years: Loan tenure monthly_rent: Current monthly rent annual_rent_increase: Expected rent increase %/year expected_property_appreciation: Property appreciation %/year investment_return: Return on invested down payment % analysis_years: Years to compare Returns: Buy/rent…
| Parameter | Type | Description |
|---|---|---|
home_price * | number | Property price in INR |
analysis_years | integer | Years to compare |
annual_rent_increase | number | Expected rent increase percentage/year |
down_payment_percent | number | Down payment as percentage |
expected_property_appreciation | number | Property appreciation percentage/year |
financial_year | string | Financial year (e.g. '2025-26', '2026-27') |
investment_return | number | Return on invested down payment percentage |
loan_interest_rate | number | Home loan interest rate percentage |
loan_tenure_years | integer | Loan tenure in years |
monthly_rent | number | Current monthly rent in INR |
validate_gstin
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.…
| Parameter | Type | Description |
|---|---|---|
gstin * | string | 15-character GSTIN (spaces/hyphens allowed) |
expected_entity_type | Optional expected entity type character to verify against PAN 4th char | |
verify_online | boolean | Optional opt-in online registry attestation (A4 level) |
bulk_validate_gstin
Validate multiple GSTINs in parallel using ThreadPoolExecutor. Use when batch-validating vendor GSTINs for onboarding or reconciliation. Reduces N serial calls to ~N/10 parallel batches. Args: gstins: List of 15-character GSTIN strings. Returns: Standard envelope with per-GSTIN results, valid/invalid counts. Notes: Max 500 GSTINs per call. Configurable via MCP_INDIA_STACK_BULK_WORKERS. Individual validation errors don't fail the entire batch.
| Parameter | Type | Description |
|---|---|---|
gstins * | array | List of GSTINs to validate (max 500) |
validate_pan
Validate Indian PAN format and decode entity type from the 4th character. Use when normalizing tax identity records in KYC, invoicing, or vendor onboarding. Args: pan: PAN string, example: AAAPL1234C. Spaces and hyphens stripped automatically. verify_online: Optional opt-in online registry attestation (A4 level). Returns: Standard envelope containing format validity, entity type, and decoded segments. Notes: PAN check character is not publicly verifiable algorithmically.
| Parameter | Type | Description |
|---|---|---|
pan * | string | 10-char PAN (spaces/hyphens allowed) |
verify_online | boolean | Optional opt-in online registry attestation (A4 level) |
bulk_validate_pan
Validate multiple PANs in parallel.
| Parameter | Type | Description |
|---|---|---|
pans * | array | List of PANs to validate (max 500) |
decode_pan_type
Decode PAN entity type from 4th character.
| Parameter | Type | Description |
|---|---|---|
pan * | string | 10-character PAN |
validate_upi_vpa
Validate UPI VPA structure and decode known provider handles. Use when checking whether a UPI address is structurally valid before payment routing. Args: vpa: UPI virtual payment address in username@handle format. Returns: Standard envelope containing normalized VPA, known_provider flag, and provider metadata. Notes: Unknown handles are not auto-invalidated because NPCI handle lists evolve over time.
| Parameter | Type | Description |
|---|---|---|
vpa * | string | UPI VPA, example: user@okaxis |
validate_aadhaar
Validate an Indian Aadhaar number with Verhoeff checksum verification. Use when checking Aadhaar format and checksum in KYC, identity verification, or government benefit workflows. Args: aadhaar: 12-digit Aadhaar number. Spaces and hyphens are stripped. Returns: Standard envelope containing validity, checksum result, formatted display, and first-digit check. Notes: Validates format and Verhoeff checksum only. Not connected to UIDAI. In compliance with the Digital Personal Data Protection Act, 2023 (DPDP Act)…
| Parameter | Type | Description |
|---|---|---|
aadhaar * | string | 12-digit Aadhaar number. Spaces and hyphens accepted. Example: 2959 4583 7261 |
bulk_validate_aadhaar
Validate multiple Aadhaar numbers in parallel using ThreadPoolExecutor. Use when batch-validating Aadhaar numbers for KYC, onboarding, or compliance workflows. Args: numbers: List of Aadhaar numbers (with or without spaces/hyphens). Returns: Standard envelope with per-Aadhaar results and valid/invalid counts. Notes: Max 500 Aadhaars per call. Uses same Verhoeff validation as single tool. Not connected to UIDAI. In compliance with DPDP Act 2023, results are masked and raw numbers are never stored or logged.
| Parameter | Type | Description |
|---|---|---|
numbers * | array | List of Aadhaar numbers to validate (max 500) |
validate_voter_id
Validate an Indian Voter ID (EPIC) number format. Use when verifying voter ID format in KYC, identity, or electoral workflows. Args: voter_id: EPIC number (3 letters + 7 digits). Spaces/hyphens stripped. Returns: Standard envelope containing validity, prefix, serial, and format type. Notes: Format validation only. Detects possible legacy EPIC formats.
| Parameter | Type | Description |
|---|---|---|
voter_id * | string | 10-character EPIC number (spaces/hyphens allowed). Example: ABC1234567 |
validate_driving_license
Validate an Indian driving license number format and decode segments. Use when verifying DL format, extracting state/RTO/year in KYC workflows. Args: dl_number: Driving license number. Hyphens/spaces stripped automatically. Returns: Standard envelope containing validity, state code, state name, RTO code, year of issue, and serial number. Notes: Format validation only. Handles non-standard pre-Sarathi formats gracefully.
| Parameter | Type | Description |
|---|---|---|
dl_number * | string | Indian DL number, 15 chars (spaces/hyphens allowed). Ex: MH0220191234567 |
validate_passport
Validate an Indian passport number format. Use when verifying passport format in KYC, travel, or identity workflows. Args: passport_number: 1 letter + 7 digits. Spaces and hyphens stripped automatically. Returns: Standard envelope containing validity, series letter, and serial number. Notes: Format validation only. No public checksum algorithm exists.
| Parameter | Type | Description |
|---|---|---|
passport_number * | string | 8-char Indian passport (spaces/hyphens allowed). Ex: A1234567 |
validate_cin
Validate and decode an Indian CIN (Company Identification Number). Use when verifying company registration data, extracting listing status, NIC code, state, year, and company type from a CIN. Args: cin: 21-character CIN string. Spaces and hyphens stripped automatically. verify_online: Optional opt-in online registry attestation (A4 level). Returns: Standard envelope containing decoded fields: listing status, NIC code, state, year of incorporation, company type, and serial number. Notes: Format validation with f…
| Parameter | Type | Description |
|---|---|---|
cin * | string | 21-character CIN (spaces/hyphens allowed). Example: L17110MH1973PLC019786 |
verify_online | boolean | Optional opt-in online registry attestation (A4 level) |
validate_din
Validate an Indian DIN (Director Identification Number) format. Use when verifying director identity numbers in MCA compliance workflows. Args: din: 8-digit numeric DIN string. Shorter inputs zero-padded. Spaces stripped. Returns: Standard envelope containing validity and normalized DIN. Notes: Format validation only. Cannot verify director status with MCA.
| Parameter | Type | Description |
|---|---|---|
din * | string | 8-digit DIN (spaces allowed). Example: 00012345 |
validate_fssai
Validate FSSAI (Food Safety) license number format and decode details. Use when verifying food business operator licenses in compliance checks. Args: license_number: 14-digit FSSAI license. Spaces/hyphens stripped. Returns: Standard envelope with validation, state, license type, year decoded. Notes: The 14-digit format encodes: state(2) + year(2) + type(1) + sequence(9). Type: 1=Central, 2=State, 3=State (turnover-based).
| Parameter | Type | Description |
|---|---|---|
license_number * | string | 14-digit FSSAI license (spaces/hyphens allowed). Ex: 10019000000001 |
validate_tan
Validate TAN (Tax Deduction Account Number) format. Use when verifying TAN format for TDS compliance. Args: tan: 10-character TAN Returns: Validation result with decoded segments.
| Parameter | Type | Description |
|---|---|---|
tan * | string | 10-character TAN (e.g., ABCD12345E) |
validate_mobile_number
Validate Indian mobile number and detect operator/circle. Use when validating mobile numbers for KYC or contact verification. Args: mobile: Mobile number with or without +91/0 Returns: Validation result with operator and telecom circle.
| Parameter | Type | Description |
|---|---|---|
mobile * | string | 10-digit mobile number with or without +91/0 |
validate_pran
Validate PRAN (Permanent Retirement Account Number) for NPS. Use when verifying NPS account numbers. Args: pran: 12-digit PRAN Returns: Validation result with subscriber category.
| Parameter | Type | Description |
|---|---|---|
pran * | string | 12-digit PRAN |
validate_llpin
Validate LLPIN (Limited Liability Partnership Identification Number). Use when verifying LLP registration numbers. Args: llpin: LLPIN in format AAA-XXXX Returns: Validation result with decoded segments.
| Parameter | Type | Description |
|---|---|---|
llpin * | string | LLPIN in format AAA-XXXX or AAAXXXX |
validate_epf_code
Validate EPF establishment code.
| Parameter | Type | Description |
|---|---|---|
code * | string | EPF establishment code (XX/XXXXX/XXXXXX/XXX) |
validate_esic_code
Validate ESIC employer code.
| Parameter | Type | Description |
|---|---|---|
code * | string | ESIC employer code (XX-XXXXX-XXXXX) |
decode_digilocker_uri
Decode DigiLocker document URI and map to validator.
| Parameter | Type | Description |
|---|---|---|
uri * | string | DigiLocker document URI |
verify_einvoice_qr
Verify cryptographically signed QR code from Indian GST B2B e-invoices (A3 Authenticity). Validates the NIC RSA digital signature against bundled public trust anchors, verifies internal claims, and cross-checks the 64-char Invoice Reference Number (IRN) against SHA-256(SupplierGSTIN + DocTyp + DocNo + FinYr).
| Parameter | Type | Description |
|---|---|---|
qr_text * | string | Signed JWT string extracted from GST B2B e-invoice QR code |
expected_gstin | Optional expected supplier GSTIN | |
expected_irn | Optional expected 64-character hex IRN |
verify_aadhaar_offline_artifact
Verify UIDAI Paperless Offline e-KYC XML/ZIP artifact (A3 Authenticity). Defends against XXE and expansion bombs via defusedxml. Verifies UIDAI RSA digital signature against bundled trust anchor. DPDP Act compliant: extracts only masked Aadhaar (last 4 digits) and demographic attributes; never outputs raw identifiers.
| Parameter | Type | Description |
|---|---|---|
xml_or_zip_bytes_base64 * | string | Base64-encoded or raw XML/ZIP of UIDAI Paperless Offline e-KYC |
share_code | 4-character share code if artifact is password-protected ZIP |
decode_cnr_number
Decode and validate a 16-character CNR. Use when extracting state, district, establishment, case type, year, and serial from a CNR number. Args: cnr: 16-character CNR string. Returns: Standard envelope containing decoded fields. Notes: Format validation with field decoding. Not legal advice. Consult a qualified advocate.
| Parameter | Type | Description |
|---|---|---|
cnr * | string | 16-character CNR string. Spaces and hyphens are stripped automatically. |
lookup_court_establishment_code
Look up court establishment codes for states, districts, and complexes. Use when you need to decode the state and district court location from a code. Args: code: Court establishment code. Returns: Standard envelope containing location metadata. Notes: Returns static master data. Not legal advice. Consult a qualified advocate.
| Parameter | Type | Description |
|---|---|---|
code * | string | State and district court establishment code (e.g. MH, MHPU, MHPU01) |
lookup_ipc_section
Look up an IPC section detail. Use when you need the title and description of a section in the Indian Penal Code. Args: section: IPC section number. Returns: Standard envelope with section details. Notes: Not legal advice. Consult a qualified advocate.
| Parameter | Type | Description |
|---|---|---|
section * | string | IPC section number to lookup (e.g., 420) |
lookup_bns_section
Look up a BNS section detail. Use when you need the title and description of a section in the Bharatiya Nyaya Sanhita. Args: section: BNS section number. Returns: Standard envelope with section details. Notes: Not legal advice. Consult a qualified advocate.
| Parameter | Type | Description |
|---|---|---|
section * | string | BNS section number to lookup (e.g., 316) |
lookup_crpc_section
Look up a CrPC section detail. Use when you need the title and description of a section in the Code of Criminal Procedure. Args: section: CrPC section number. Returns: Standard envelope with section details. Notes: Not legal advice. Consult a qualified advocate.
| Parameter | Type | Description |
|---|---|---|
section * | string | CrPC section number to lookup |
lookup_bnss_section
Look up a BNSS section detail. Use when you need the title and description of a section in the Bharatiya Nagarik Suraksha Sanhita. Args: section: BNSS section number. Returns: Standard envelope with section details. Notes: Not legal advice. Consult a qualified advocate.
| Parameter | Type | Description |
|---|---|---|
section * | string | BNSS section number to lookup |
lookup_evidence_act_section
Look up an Indian Evidence Act section detail. Use when you need the title and description of a section in the Indian Evidence Act. Args: section: Indian Evidence Act section number. Returns: Standard envelope with section details. Notes: Not legal advice. Consult a qualified advocate.
| Parameter | Type | Description |
|---|---|---|
section * | string | Indian Evidence Act section number to lookup |
lookup_bsa_section
Look up a BSA section detail. Use when you need the title and description of a section in the Bharatiya Sakshya Adhiniyam. Args: section: BSA section number. Returns: Standard envelope with section details. Notes: Not legal advice. Consult a qualified advocate.
| Parameter | Type | Description |
|---|---|---|
section * | string | BSA section number to lookup |
decode_ipc_bns_crosswalk
Provide a bidirectional crosswalk between IPC and BNS sections. Use when you need to find the equivalent section in BNS from IPC or vice versa. Args: section: Section number to map. from_act: Source Act ("IPC" or "BNS"). Returns: Standard envelope with crosswalk mapping details. Notes: Not legal advice. Consult a qualified advocate.
| Parameter | Type | Description |
|---|---|---|
section * | string | Section number to map across Acts |
from_act | string | The source Act (IPC or BNS). Default: IPC |
calculate_limitation_deadline
Calculate the deadline under the Limitation Act. Use when computing the last date to file a suit, appeal, or application based on cause of action. Args: suit_type: Type of suit/appeal/application. cause_of_action_date: Date the cause of action arose (YYYY-MM-DD). exclusion_days: Days excluded under Section 12. court_closed_on_deadline: Whether court is closed on deadline date. court_reopen_date: Date court reopens if closed on deadline. Returns: Standard envelope with deadline date and limitation period. Notes: Not…
| Parameter | Type | Description |
|---|---|---|
cause_of_action_date * | string | Date when the cause of action arose (YYYY-MM-DD) |
suit_type * | string | Type of suit/appeal/application to calculate limitation for |
court_closed_on_deadline | boolean | Whether court is closed on deadline day under Section 4 |
court_reopen_date | Next reopening date if court is closed on deadline (Section 4) | |
exclusion_days | integer | Days excluded under Section 12 (e.g. for obtaining copies) |
calculate_court_fee
Calculate ad valorem court fees for a specific state. Use when you need to estimate the court fee required to be paid for filing a suit. Args: state_code: State code (e.g., 'MH', 'DL', 'KA'). suit_value: Value of the suit. suit_type: Type of suit. Returns: Standard envelope with calculated court fee and computation details. Notes: Not legal advice. Consult a qualified advocate.
| Parameter | Type | Description |
|---|---|---|
state_code * | string | State code where suit is filed (e.g., MH, DL, KA) |
suit_value * | number | Value of the suit in INR |
suit_type | string | Type of suit (default: 'money') |
calculate_stamp_duty
Calculate state stamp duty for various instruments. Use when estimating the stamp duty payable on legal documents like conveyance or lease. Args: state_code: State code (e.g., 'MH', 'DL', 'KA'). instrument_type: Type of instrument. transaction_value: Value of the transaction. Returns: Standard envelope with stamp duty amount and surcharge components. Notes: Not legal advice. Consult a qualified advocate.
| Parameter | Type | Description |
|---|---|---|
instrument_type * | string | Type of instrument (e.g., conveyance, lease, agreement) |
state_code * | string | State code where instrument is executed (e.g., MH, DL, KA) |
transaction_value * | number | Value of the transaction/consideration in INR |
calculate_rti_fee
Calculate the required RTI application fee for central or state authorities. Use when determining the application fee required to file an RTI request. Args: state_code: State code or 'central'. applicant_category: 'general' or 'bpl' (Below Poverty Line). Returns: Standard envelope with the applicable fee amount and mode of payment. Notes: Not legal advice. Consult a qualified advocate.
| Parameter | Type | Description |
|---|---|---|
applicant_category | string | Category of the applicant ('general' or 'bpl') |
state_code | string | State code or 'central' (default: 'central') |
calculate_rti_deadline
Calculate standard, life/liberty, or APIO-routed RTI response deadlines. Use when determining the due date for receiving a response to an RTI application. Args: filed_date: Date filed (YYYY-MM-DD). concerns_life_or_liberty: True if information concerns life or liberty. routed_through_apio: True if submitted via Assistant PIO. Returns: Standard envelope with the calculated deadline date. Notes: Not legal advice. Consult a qualified advocate.
| Parameter | Type | Description |
|---|---|---|
filed_date * | string | Date the RTI application was filed (YYYY-MM-DD) |
concerns_life_or_liberty | boolean | Whether the info sought concerns life or liberty of a person |
routed_through_apio | boolean | Whether the application was submitted through an APIO |
calculate_rti_penalty_estimate
Estimate potential penalties for delayed RTI responses under Section 20. Use when computing the estimated penalty that may be imposed on a PIO for delay. Args: due_date: Due date of the response (YYYY-MM-DD). response_received_date: Actual response date (YYYY-MM-DD) or None if still pending. Returns: Standard envelope with penalty estimate and days delayed. Notes: Not legal advice. Consult a qualified advocate.
| Parameter | Type | Description |
|---|---|---|
due_date * | string | The date the RTI response was due (YYYY-MM-DD) |
response_received_date | Date the response was received, if any (YYYY-MM-DD) |
get_regulatory_deadlines
Get India's tax & regulatory compliance calendar for FY2025-26. Use when planning tax compliance schedules, setting reminders for deadlines, or building financial compliance dashboards. Args: category: Filter by category (Income Tax, TDS, GST, PF/ESIC, ROC, etc.) from_date: Start date filter (YYYY-MM-DD) to_date: End date filter (YYYY-MM-DD) Returns: Standard envelope with deadlines grouped by month for FY2025-26 Notes: Covers ITR filing, TDS deposits, GST returns, PF/ESIC, ROC filings, advance tax, and professional tax de…
| Parameter | Type | Description |
|---|---|---|
category | Filter by category (Income Tax, TDS, GST, PF/ESIC, ROC, etc.) | |
from_date | Start date filter (YYYY-MM-DD) | |
to_date | End date filter (YYYY-MM-DD) |
lookup_pincode
Look up India pincode details and return all post offices for that code. Use for address normalization, district/state extraction, and GST state crosswalk use-cases. Args: pincode: 6-digit pincode; spaces/hyphens are accepted and normalized. Returns: Standard envelope with location hierarchy and post_offices array. Notes: One pincode may map to multiple post offices and all are returned.
| Parameter | Type | Description |
|---|---|---|
pincode * | string | 6-digit pincode |
lookup_hsn_code
Lookup HSN/SAC by exact code or search by keyword in code descriptions. Use for GST classification workflows where users provide a code or only a product keyword. Args: code: Optional exact HSN/SAC code (2, 4, 6, or 8 digits). keyword: Optional plain-text search token over description field. Returns: Standard envelope with exact match data or top 5 keyword matches. Notes: Returns static master data; GST applicability can vary by conditions.
| Parameter | Type | Description |
|---|---|---|
code | HSN/SAC code (2-8 digits) for exact lookup | |
keyword | Keyword for description search, example: coffee |
decode_state_code
Decode Indian GST state code metadata from a code or GSTIN prefix. Use when you need canonical state name, abbreviation, capital, and GST zone mapping. Args: value: Two-digit code like 27 or GSTIN like 27AAPFU0939F1ZV. Returns: Standard envelope containing decoded state metadata.
| Parameter | Type | Description |
|---|---|---|
value * | string | 2-digit state code or GSTIN |
decode_isin
Decode ISIN (International Securities Identification Number) with Luhn check. Use when validating ISIN for Indian securities. Args: isin: 12-character ISIN Returns: Decoded fields with country, NSIN, security type, and Luhn validation.
| Parameter | Type | Description |
|---|---|---|
isin * | string | 12-character ISIN (e.g., INE1234567890) |
get_stock_quote
[Experimental] Fetch current (delayed) price and summary for a given Indian stock ticker.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | Stock symbol/ticker to fetch. Examples: RELIANCE.NS, INFY.NS, TCS.BO |
get_stock_history
[Experimental] Fetch historical end-of-day data for a given Indian stock ticker.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | Stock symbol/ticker to fetch. Examples: RELIANCE.NS, INFY.NS |
period | string | Time period to fetch data for. Valid periods: 1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max |
calculate_income_tax
Calculate Indian income tax for FY2025-26 under old, new, or both regimes. Use when computing tax liability, comparing regimes, or planning deductions. Includes slab computation, Section 87A rebate, surcharge with marginal relief, and health & education cess. Args: gross_income: Annual gross income in rupees. regime: 'new', 'old', or 'both' for side-by-side comparison. taxpayer_type: Category for slab selection. deduction_80c: Old regime only — Section 80C amount. deduction_80d_self: Old regime only — medical ins…
| Parameter | Type | Description |
|---|---|---|
gross_income * | number | Annual gross income in rupees. Example: 1500000 |
deduction_24b | number | Home loan interest under Section 24(b), capped at 2L |
deduction_80c | number | Section 80C deduction (PF, ELSS, LIC), capped at 1.5L |
deduction_80ccd_nps | number | Additional NPS deduction under 80CCD(1B), capped at 50K |
deduction_80d_parents | number | Section 80D medical insurance parents, capped at 25K/50K |
deduction_80d_self | number | Section 80D medical insurance self, capped at 25K |
deduction_80d_senior_parents | boolean | If True, parents 80D cap is 50K instead of 25K |
financial_year | string | Financial year (e.g. '2025-26', '2026-27') |
other_deductions | number | Other deductions (no cap) |
regime | string | Tax regime: 'new', 'old', or 'both' for comparison |
taxpayer_type | string | 'individual', 'senior_citizen', or 'super_senior_citizen' |
calculate_tds
Calculate TDS for a given section and payment amount (FY2025-26). Use when computing withholding tax on contractor payments, professional fees, interest, rent, commissions, or purchase of goods. Args: section: TDS section key from supported sections. payment_amount: Gross payment in rupees. pan_available: Whether payee PAN is available (affects rate). is_senior_citizen: For 194A bank interest threshold. aggregate_payments_ytd: Prior payments to same payee in current FY. payee_type: 'individual_huf' or 'other'…
| Parameter | Type | Description |
|---|---|---|
pan_available * | boolean | Whether payee has provided PAN |
payment_amount * | number | Gross payment amount in rupees |
section * | string | TDS section key, e.g. '194C_individual', '194J_professional' |
aggregate_payments_ytd | number | Prior payments to same payee under this section in current FY |
financial_year | string | Financial year (e.g. '2025-26', '2026-27') |
is_senior_citizen | boolean | For 194A bank interest — applies higher threshold for seniors |
payee_type | string | Payee type: 'individual_huf' or 'other' (affects 194C rate) |
calculate_gst
Calculate GST breakdown with CGST/SGST/IGST split and optional cess. Use when computing tax for invoices, quotations, or GST compliance. Args: amount: Base amount or GST-inclusive amount in rupees. gst_rate: Valid GST rate percentage. transaction_type: 'intra_state' or 'inter_state'. amount_includes_gst: Set True to back-calculate base. cess_category: For 28% items, specify applicable cess. Returns: Standard envelope with base amount, CGST/SGST/IGST breakdown, cess amount, total GST, and total pa…
| Parameter | Type | Description |
|---|---|---|
amount * | number | Base amount in rupees (or inclusive amount if flagged) |
gst_rate * | number | GST rate as percentage: 0, 0.1, 0.25, 1.5, 3, 5, 12, 18, 28 |
transaction_type * | string | 'intra_state' (CGST+SGST) or 'inter_state' (IGST) |
amount_includes_gst | boolean | If True, back-calculate base from GST-inclusive amount |
cess_category | string | Cess category for 28% items. Default: 'default' (no cess) |
financial_year | string | Financial year (e.g. '2025-26', '2026-27') |
calculate_surcharge
Calculate surcharge and marginal relief for a given income and base tax. Use when computing surcharge as a standalone calculation, separate from the full income tax tool. The income tax tool uses this logic internally. Args: total_income: Total income in rupees. base_tax: Base tax amount before surcharge. regime: 'new' (capped at 25%) or 'old' (up to 37%). Returns: Standard envelope with surcharge rate, before/after marginal relief, and cess base. Notes: FY2025-26 rates. New regime surcharge capped…
| Parameter | Type | Description |
|---|---|---|
base_tax * | number | Base tax amount before surcharge |
regime * | string | 'new' or 'old' tax regime |
total_income * | number | Total income in rupees |
financial_year | string | Financial year (e.g. '2025-26', '2026-27') |
calculate_hra_exemption
Calculate House Rent Allowance (HRA) exemption under Section 10(13A). Use when computing tax-exempt HRA component for salary structuring or income tax filing. Compares three conditions and takes minimum. Args: basic_salary: Monthly basic salary. hra_received: Annual HRA received from employer. rent_paid: Annual rent paid. city_type: 'metro' (50% of salary) or 'non_metro' (40% of salary). is_government_employee: Use simplified formula for government employees. Returns: Standard envelope with exemption amo…
| Parameter | Type | Description |
|---|---|---|
basic_salary * | number | Monthly basic salary in rupees |
hra_received * | number | Annual HRA received from employer in rupees |
rent_paid * | number | Annual rent paid in rupees |
city_type | string | 'metro' (Delhi/Mumbai/Chennai/Kolkata) or 'non_metro' |
financial_year | string | Financial year (e.g. '2025-26', '2026-27') |
is_government_employee | boolean | True for government employees using simplified formula |
calculate_capital_gains
Calculate capital gains tax for various asset types (FY2025-26). Use when computing tax liability on sale of equity, mutual funds, real estate, gold, or other capital assets. Args: sale_price: Sale proceeds after expenses. purchase_price: Original purchase price. asset_type: Type of asset sold. holding_period_days: Days held before sale. inflation_index_purchase: Cost Inflation Index for purchase year. inflation_index_sale: Cost Inflation Index for sale year. expenses_on_sale: Expenses incurred du…
| Parameter | Type | Description |
|---|---|---|
purchase_price * | number | Original purchase price in rupees |
sale_price * | number | Sale proceeds in rupees |
asset_type | string | Asset type: equity, mutual_fund, real_estate, gold, debentures, crypto |
expenses_on_sale | number | Brokerage, registration and other expenses on sale |
financial_year | string | Financial year (e.g. '2025-26', '2026-27') |
holding_period_days | integer | Number of days held before sale |
improvements | number | Cost of improvements (for real estate) |
inflation_index_purchase | CII for purchase year (for indexation) | |
inflation_index_sale | CII for sale year (for indexation) |
calculate_advance_tax
Calculate quarterly advance tax installment schedule per Sections 234B and 234C. Use when planning quarterly tax payments to avoid interest penalties. Provides due dates and amounts for each installment. Args: estimated_income: Estimated annual income for FY2025-26. regime: Tax regime for calculation. taxpayer_type: Category for slab selection. existing_tds: TDS already likely to be deducted. Returns: Standard envelope with quarterly breakdown and interest rules. Notes: Due dates: June 15 (15%), Sep…
| Parameter | Type | Description |
|---|---|---|
estimated_income * | number | Estimated total income for FY in rupees |
existing_tds | number | TDS already deducted or to be deducted in rupees |
financial_year | string | Financial year (e.g. '2025-26', '2026-27') |
regime | string | 'new' or 'old' tax regime |
taxpayer_type | string | 'individual', 'senior_citizen', or 'super_senior_citizen' |
calculate_gst_late_fee
Calculate GST late filing penalty. Use when estimating late filing fees or planning compliance. Args: return_type: "GSTR1", "GSTR3B", or "GSTR9" days_delayed: Number of days delayed annual_turnover: Annual turnover for cap calculation has_nil_liability: True if nil return Returns: Late fee breakdown with CGST/SGST split.
| Parameter | Type | Description |
|---|---|---|
annual_turnover * | number | Annual turnover in INR |
days_delayed * | integer | Number of days delayed |
return_type * | string | GSTR1, GSTR3B, or GSTR9 |
financial_year | string | Financial year (e.g. '2025-26', '2026-27') |
has_nil_liability | boolean | True if nil return |
calculate_income_tax_interest
Calculate interest under Sections 234A, 234B, 234C. Use when computing penalty interest for late tax filing or short advance tax payments. Args: total_tax_liability: Total tax liability tds_deducted: TDS already deducted advance_tax_paid: Dict with q1,q2,q3,q4 quarterly payments filing_date: YYYY-MM-DD when return filed (None if not filed) due_date: Due date for filing Returns: Interest breakdown for Sections 234A, 234B, 234C.
| Parameter | Type | Description |
|---|---|---|
total_tax_liability * | number | Total tax liability in INR |
advance_tax_paid | Dict with q1,q2,q3,q4 quarterly payments | |
due_date | string | Due date YYYY-MM-DD |
filing_date | Filing date YYYY-MM-DD or None if not filed | |
financial_year | string | Financial year (e.g. '2025-26', '2026-27') |
tds_deducted | number | TDS already deducted in INR |
calculate_presumptive_tax
Calculate tax under presumptive scheme (Sections 44AD, 44ADA). Use when computing tax for small businesses or professionals under presumptive taxation. Args: scheme: "44AD" or "44ADA" gross_receipts: Total gross receipts digital_receipt_percent: % of receipts via digital mode regime: "new" or "old" age: Assessee age deductions_80c: Section 80C deductions (old regime) Returns: Presumptive income and total tax payable.
| Parameter | Type | Description |
|---|---|---|
gross_receipts * | number | Total gross receipts in INR |
scheme * | string | '44AD' for business or '44ADA' for professionals |
age | integer | Assessee age |
deductions_80c | number | Section 80C deductions (old regime) |
digital_receipt_percent | number | Percentage via digital mode |
financial_year | string | Financial year (e.g. '2025-26', '2026-27') |
regime | string | 'new' or 'old' tax regime |
calculate_professional_tax
Calculate state-wise professional tax. Use when computing total tax liability including professional tax deductions. Args: gross_salary_monthly: Monthly gross salary state_code: 2-char state code (e.g., "MH", "KA", "TN") Returns: Monthly and annual professional tax amount.
| Parameter | Type | Description |
|---|---|---|
gross_salary_monthly * | number | Monthly gross salary in INR |
state_code * | string | 2-char state code (e.g., MH, KA, TN) |
financial_year | string | Financial year (e.g. '2025-26', '2026-27') |
calculate_leave_encashment_tax
Calculate tax-exempt portion of leave encashment under Section 10(10AA). Use when computing leave encashment tax exemption or planning retirement benefits. Args: leave_encashment_amount: Actual amount received average_monthly_salary: Average of last 10 months basic + DA earned_leave_balance_days: Days of earned leave years_of_service: Total years of service is_government_employee: Government employee flag Returns: Exemption amount and taxable portion breakdown.
| Parameter | Type | Description |
|---|---|---|
average_monthly_salary * | number | Average of last 10 months basic + DA |
earned_leave_balance_days * | integer | Days of earned leave |
leave_encashment_amount * | number | Actual amount received in INR |
years_of_service * | integer | Total years of service |
financial_year | string | Financial year (e.g. '2025-26', '2026-27') |
is_government_employee | boolean | Government employee flag |
calculate_salary_restructuring
Calculate salary restructuring options for tax optimization. Use when advising employees on tax-efficient salary structures, comparing restructuring options, or planning CTC optimization. Args: current_gross: Current gross annual salary in INR current_basic_ratio: Current basic salary as ratio of gross structure_type: Structure option (standard, optimized, startup) include_meal_card: Include Sodexo/Food card allowance include_wallet_allowance: Include flexible wallet allowance has_hra: Employee receives HRA rent_in_metro: Re…
| Parameter | Type | Description |
|---|---|---|
current_gross * | number | Current gross annual salary in INR |
current_basic_ratio | number | Current basic salary as ratio of gross (0.40-0.60) |
family_medical | boolean | Include family medical insurance |
financial_year | string | Financial year (e.g. '2025-26', '2026-27') |
has_hra | boolean | Employee receives HRA |
include_meal_card | boolean | Include Sodexo/Food card allowance |
include_wallet_allowance | boolean | Include flexible wallet allowance |
parents_medical | boolean | Include parents medical insurance (additional) |
rent_in_metro | boolean | Rent paid in metro city (higher HRA) |
structure_type | string | Structure option: standard, optimized, or startup |