Skip to main content
Glama

Compute Indian income tax

compute_tax
Read-only

Computes Indian income tax for a fiscal year under new or old regimes, including slabs, deductions, capital gains, surcharge, rebate, and cess from a versioned rule pack.

Instructions

Deterministic Indian income tax computation for a fiscal year. Handles new/old regime slabs, standard deduction, 87A rebate with marginal relief (threshold tested on TOTAL income per the statute; rebate never offsets 111A/112A tax under the new regime), employer NPS under 80CCD(2) in both regimes, house-property loss (self-occupied interest capped by s.24(b), not deductible under 115BAC; set-off capped by s.71(3A); none under 115BAC), 111A/112A capital gains rates with the basic-exemption set-off, surcharge (with the 15% cap on gains and marginal relief), and 4% cess (FY 2025-26 figures). All arithmetic is done in code from a versioned rule pack -- never estimated.

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": {
      "regime": "<regime>"
    },
    "name": "compute_tax"
  }
}

Input Schema

NameRequiredDescriptionDefault
fyNoFiscal year, e.g. '2025-26' (AY 2026-27); '2026-27' is tax year 2026-27 under the Income-tax Act 20252025-26
housesNoOptional: every house owned, one entry each, INSTEAD of housePropertyLoss. The tool works out income from house property per regime (nil self-occupied interest under the new regime) and folds it in, so never add it to otherIncome yourself.
regimeYesTax regime. 'new' (115BAC) is the default regime since FY 2023-24.
ageBandNoAge band: below60, senior (60-79), superSenior (80+). Affects old-regime exemption only.below60
ltcg112ANoLong-term capital gains under section 112A in INR, BEFORE the Rs 1,25,000 exemption
stcg111ANoShort-term capital gains under section 111A (listed equity, STT paid) in INR
deductionsNoOld regime only: total Chapter VI-A deductions (80C, 80D, ...) in INR, EXCLUDING employer NPS (use employerNps80CCD2). Ignored under the new regime.
otherIncomeNoOther normal-rate income in INR (interest, net rent, etc.)
salaryIncomeNoGross salary income in INR, before standard deduction
employerNps80CCD2NoEmployer's NPS contribution under s.80CCD(2) in INR. Allowed in BOTH regimes (the one Chapter VI-A deduction 115BAC keeps); capped at 14% of salary in the new regime, 10% (private) / 14% (government) in the old (FY 2025-26).
housePropertyLossNoLoss under the head house property as a POSITIVE number: home-loan interest on the house you live in, or a let-out property's net loss. Requires housePropertyType. Old regime: set off against other heads up to Rs 2,00,000 (s.71(3A)). New regime: no inter-head set-off (s.115BAC(2)). Figures for FY 2025-26.
housePropertyTypeNoRequired when housePropertyLoss is above 0. 'selfOccupied': the home you live in; its interest is deductible only up to Rs 2,00,000 in the old regime (s.24(b)) and not at all in the new regime (s.115BAC(2)(i)), and what is above that is neither set off nor carried forward. 'letOut': no s.24(b) cap; the part not set off is carried forward (s.71B).
governmentEmployerNoCentral/State Government employer (raises the old-regime 80CCD(2) cap to 14% for FY 2025-26)
presumptiveBusinessNoOptional: presumptive business or profession (44AD / 44ADA / 44AE). The tool works out the deemed income and adds it to otherIncome itself.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.7.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedInput schema / properties / fy / description
      Previous value: -"Fiscal year, e.g. '2025-26' (AY 2026-27)"New value: +"Fiscal year, e.g. '2025-26' (AY 2026-27); '2026-27' is tax year 2026-27 under the Income-tax Act 2025"
    • addedInput schema / properties / houses
      Added value: +{
      +  "description": "Optional: every house owned, one entry each, INSTEAD of housePropertyLoss. The tool works out income from house property per regime (nil self-occupied interest under the new regime) and folds it in, so never add it to otherIncome yourself.",
      +  "items": {
      +    "properties": {
      +      "constructionCompletedFy": {
      +        "description": "Financial year the purchase or construction was completed, e.g. '2023-24'",
      +        "pattern": "^\\d{4}-\\d{2}$",
      +        "type": "string"
      +      },
      +      "grossAnnualValue": {
      +        "description": "Let out: rent received or receivable for the year (the owner's share if co-owned). Self-occupied: leave out, unless this house is past the self-occupied limit, when it is the rent it could fetch.",
      +        "maximum": 1000000000000,
      +        "minimum": 0,
      +        "type": "number"
      +      },
      +      "interestPayable": {
      +        "description": "Home-loan interest for the year (interest only; principal is 80C, not this)",
      +        "maximum": 1000000000000,
      +        "minimum": 0,
      +        "type": "number"
      +      },
      +      "label": {
      +        "description": "Name echoed back in the result, e.g. 'Pune flat'",
      +        "maxLength": 80,
      +        "type": "string"
      +      },
      +      "loanQualifiesForHigherCap": {
      +        "description": "Self-occupied only. Default true: the loan was taken on or after 1 April 1999 to buy or build the house and it was finished within five years, so interest is capped at Rs 2,00,000. False for an older loan, a repair loan or a late completion (cap Rs 30,000).",
      +        "type": "boolean"
      +      },
      +      "municipalTaxesPaid": {
      +        "description": "Municipal tax the OWNER paid in the year (tenant-paid tax does not count)",
      +        "maximum": 1000000000000,
      +        "minimum": 0,
      +        "type": "number"
      +      },
      +      "preConstructionInterest": {
      +        "description": "TOTAL interest for the years before the house was completed; the tool works out this year's 1/5 instalment from constructionCompletedFy",
      +        "maximum": 1000000000000,
      +        "minimum": 0,
      +        "type": "number"
      +      },
      +      "use": {
      +        "description": "'selfOccupied': the owner lives in it (or cannot, because work keeps them elsewhere); up to 2 such houses are valued at nil (s.23(2)), any more are deemed let out. 'letOut': let for the whole or any part of the year.",
      +        "enum": [
      +          "selfOccupied",
      +          "letOut"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "use"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 20,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • addedInput schema / properties / presumptiveBusiness
      Added value: +{
      +  "description": "Optional: presumptive business or profession (44AD / 44ADA / 44AE). The tool works out the deemed income and adds it to otherIncome itself.",
      +  "properties": {
      +    "carriages": {
      +      "description": "44AE: each goods carriage owned in the year (the scheme allows at most 10 at any time)",
      +      "items": {
      +        "properties": {
      +          "grossWeightTons": {
      +            "description": "Gross vehicle weight in tons; required for heavy",
      +            "exclusiveMinimum": 0,
      +            "maximum": 1000,
      +            "type": "number"
      +          },
      +          "monthsOwned": {
      +            "description": "Months owned in the year; a part month counts as full",
      +            "maximum": 12,
      +            "minimum": 0,
      +            "type": "number"
      +          },
      +          "type": {
      +            "description": "heavy: gross vehicle weight above 12 tons (Rs 1,000 per ton a month); other: Rs 7,500 a month",
      +            "enum": [
      +              "heavy",
      +              "other"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "type",
      +          "monthsOwned"
      +        ],
      +        "type": "object"
      +      },
      +      "maxItems": 50,
      +      "type": "array"
      +    },
      +    "cashReceiptsWithin5Pct": {
      +      "description": "Cash receipts are at most 5% of the total, which lifts the ceiling to Rs 3,00,00,000 (44AD) or Rs 75,00,000 (44ADA). Required for 44ADA; for 44AD it is worked out from the two turnover figures when left out.",
      +      "type": "boolean"
      +    },
      +    "declaredProfit": {
      +      "description": "A higher profit the taxpayer declares; the scheme taxes the deemed figure or more",
      +      "maximum": 1000000000000,
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "digitalTurnover": {
      +      "description": "44AD: turnover received by account-payee cheque, bank transfer, UPI or other digital modes (deemed profit 6%)",
      +      "maximum": 1000000000000,
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "grossReceipts": {
      +      "description": "44ADA: gross professional receipts (deemed profit 50%)",
      +      "maximum": 1000000000000,
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "maxCarriagesAtAnyTime": {
      +      "description": "44AE: the most carriages owned at any one time; defaults to the number listed",
      +      "maximum": 1000,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "otherTurnover": {
      +      "description": "44AD: the rest of turnover, cash included (deemed profit 8%)",
      +      "maximum": 1000000000000,
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "scheme": {
      +      "description": "44AD: small business on turnover. 44ADA: specified profession on gross receipts. 44AE: goods carriages.",
      +      "enum": [
      +        "44AD",
      +        "44ADA",
      +        "44AE"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "scheme"
      +  ],
      +  "type": "object"
      +}
  2. Changed5 schema fields changedv0.6.0
    • changedInput schema / properties / employerNps80CCD2 / description
      Previous value: -"Employer's NPS contribution under s.80CCD(2) in INR. Allowed in BOTH regimes (the one Chapter VI-A deduction 115BAC keeps); capped at 14% of salary in the new regime, 10% (private) / 14% (government) in the old."New value: +"Employer's NPS contribution under s.80CCD(2) in INR. Allowed in BOTH regimes (the one Chapter VI-A deduction 115BAC keeps); capped at 14% of salary in the new regime, 10% (private) / 14% (government) in the old (FY 2025-26)."
    • changedInput schema / properties / governmentEmployer / description
      Previous value: -"Central/State Government employer (raises the old-regime 80CCD(2) cap to 14%)"New value: +"Central/State Government employer (raises the old-regime 80CCD(2) cap to 14% for FY 2025-26)"
    • changedInput schema / properties / housePropertyLoss / description
      Previous value: -"Loss under the head house property as a POSITIVE number (e.g. s.24(b) home-loan interest on a self-occupied house). Old regime: set off against other heads up to Rs 2 lakh (s.71(3A)), rest carried forward. New regime: no inter-head set-off (s.115BAC(2)), reported as carried forward."New value: +"Loss under the head house property as a POSITIVE number: home-loan interest on the house you live in, or a let-out property's net loss. Requires housePropertyType. Old regime: set off against other heads up to Rs 2,00,000 (s.71(3A)). New regime: no inter-head set-off (s.115BAC(2)). Figures for FY 2025-26."
    • addedInput schema / properties / housePropertyType
      Added value: +{
      +  "description": "Required when housePropertyLoss is above 0. 'selfOccupied': the home you live in; its interest is deductible only up to Rs 2,00,000 in the old regime (s.24(b)) and not at all in the new regime (s.115BAC(2)(i)), and what is above that is neither set off nor carried forward. 'letOut': no s.24(b) cap; the part not set off is carried forward (s.71B).",
      +  "enum": [
      +    "selfOccupied",
      +    "letOut"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / ltcg112A / description
      Previous value: -"Long-term capital gains under section 112A in INR, BEFORE the 1.25L exemption"New value: +"Long-term capital gains under section 112A in INR, BEFORE the Rs 1,25,000 exemption"
  3. Changed9 schema fields changedv0.5.3
    • changedInput schema / properties / deductions / description
      Previous value: -"Old regime only: total Chapter VI-A deductions (80C, 80D, ...) in INR. Ignored under the new regime."New value: +"Old regime only: total Chapter VI-A deductions (80C, 80D, ...) in INR, EXCLUDING employer NPS (use employerNps80CCD2). Ignored under the new regime."
    • addedInput schema / properties / deductions / maximum
      Added value: +1000000000000
    • addedInput schema / properties / employerNps80CCD2
      Added value: +{
      +  "default": 0,
      +  "description": "Employer's NPS contribution under s.80CCD(2) in INR. Allowed in BOTH regimes (the one Chapter VI-A deduction 115BAC keeps); capped at 14% of salary in the new regime, 10% (private) / 14% (government) in the old.",
      +  "maximum": 1000000000000,
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / governmentEmployer
      Added value: +{
      +  "default": false,
      +  "description": "Central/State Government employer (raises the old-regime 80CCD(2) cap to 14%)",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / housePropertyLoss
      Added value: +{
      +  "default": 0,
      +  "description": "Loss under the head house property as a POSITIVE number (e.g. s.24(b) home-loan interest on a self-occupied house). Old regime: set off against other heads up to Rs 2 lakh (s.71(3A)), rest carried forward. New regime: no inter-head set-off (s.115BAC(2)), reported as carried forward.",
      +  "maximum": 1000000000000,
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / ltcg112A / maximum
      Added value: +1000000000000
    • addedInput schema / properties / otherIncome / maximum
      Added value: +1000000000000
    • addedInput schema / properties / salaryIncome / maximum
      Added value: +1000000000000
    • addedInput schema / properties / stcg111A / maximum
      Added value: +1000000000000
  4. First observedv0.2.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds genuinely useful behavior beyond that: results come from a versioned rule pack, all arithmetic is done in code, figures are never estimated, and they reflect FY 2025-26 law. It says nothing about output shape, which combinations are rejected, or how the versioned pack is identified in results.

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?

A single front-loaded sentence that opens with purpose before enumerating rule areas; every clause carries statutory content rather than filler. It is dense and long, but nothing is redundant, so the length earns its place.

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

Completeness3/5

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

For a 14-parameter tool with nested objects and no output schema, the definition covers the tax heads but says nothing about the return value, which an agent needs when there is no output schema. It also omits the presumptive-business path (44AD/44ADA/44AE) and the salary versus otherIncome split that the schema supports, leaving part of the tool's scope undocumented.

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 description coverage is 100%, so the schema already documents all 14 parameters, including the nested houses and presumptiveBusiness objects, in detail. The description reinforces statutory meaning ('87A rebate with marginal relief ... threshold tested on TOTAL income', 'rebate never offsets 111A/112A tax under the new regime') but does not map those statements onto particular parameters, so it stays at the schema-driven baseline.

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

Purpose4/5

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

The description names a specific verb and resource ('Deterministic Indian income tax computation for a fiscal year') and enumerates the coverage areas: regime slabs, standard deduction, 87A rebate, 80CCD(2), house property, 111A/112A, surcharge, cess. It implicitly separates itself from narrower siblings by claiming it folds house-property and presumptive heads into one computation, but it never names an alternative tool explicitly.

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

Usage Guidelines3/5

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

Usage is only implied: an agent can infer this is the full end-to-end computation rather than a single-head calculator like compute_house_property or compare_regimes. There is no explicit when-to-use, when-not-to-use, or prerequisite statement (for example, that salary, other income, capital gains and presumptive figures are supplied as inputs rather than via separate tools).

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