Skip to main content
Glama

AVnester — Indian Real Estate Intelligence

Optimize home-loan tax regime (calculator)

optimize_home_loan_tax_regime
Read-onlyIdempotent

Compare a home-loan borrower's income tax under the OLD vs NEW regime (FY2026-27) and recommend which regime saves more income tax. Pure deterministic slab math — not tax advice. Use when the user asks "old or new tax regime", "home-loan tax benefit", or "section 80C / 24(b) deduction". Models §24(b) interest + §80C principal (+ joint-loan doubling); the response lists benefits it does NOT model (capital gains, HRA, etc.). Always surface the disclaimer field.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ageBandNoTaxpayer age band — raises the OLD-regime basic exemption (senior 60–80 → ₹3L, super-senior 80+ → ₹5L). New regime unaffected. Defaults to below60.
other80CNoOther 80C investments in INR (PF, ELSS, insurance, etc.).
jointLoanNoJoint loan with a co-borrower — doubles the 80C/24b caps (equal-split assumption).
saleValueNoNRI only — sale consideration in INR for §195 TDS computation.
annualRentNoAnnual rent received in INR — required for let_out.
isSalariedNoWhether the taxpayer is salaried (gets the standard deduction).
hasForm15CBNoNRI only — whether Form 15CB CA-attestation is already in hand.
indexedCostNoNRI only — indexed cost of acquisition (LTCG). When omitted, TDS computed on full sale value.
annualIncomeYesAnnual gross income in INR EXCLUDING house property (salary + other income).
propertyTypeNoWhether the property is self-occupied or let out.self_occupied
holdingMonthsNoNRI only — holding period in months. ≤24 is STCG; >24 is LTCG.
nroBalanceUsdNoNRI only — NRO account balance in USD equivalent for the repatriation cap math.
ytdRemittedUsdNoNRI only — FY-to-date USD already remitted under the $1M cap.
residencyStatusNoDefault resident. Pass nri to get §195 TDS + LRS-cap math in the response.
homeLoanInterestYesAnnual home-loan interest paid (INR).
homeLoanPrincipalYesAnnual home-loan principal repaid (INR) — counts toward 80C.
countryOfResidenceNoNRI only — DTAA article lookup hint. Free-form country name.
otherOldRegimeDeductionsNoOther OLD-regime-only deductions as a lump (HRA exemption, 80D, NPS 80CCD(1B), etc.).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
newYes
nriNo
oldYes
cardsYes
jointLoanYes
disclaimerYes
notModeledYes
assumptionsYes
attributionYes
recommendedYes
annualIncomeYes
annualSavingYes
propertyTypeYes
residencyStatusNo
homeLoanTaxBenefitOldYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / cards
      Added value: +{
      +  "items": {
      +    "additionalProperties": true,
      +    "properties": {
      +      "data": {
      +        "additionalProperties": {},
      +        "type": "object"
      +      },
      +      "priority": {
      +        "type": "integer"
      +      },
      +      "template": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "template",
      +      "data",
      +      "priority"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "annualIncome",
      -  "propertyType",
      -  "jointLoan",
      -  "old",
      -  "new",
      -  "recommended",
      -  "annualSaving",
      -  "homeLoanTaxBenefitOld",
      -  "notModeled",
      -  "assumptions",
      -  "attribution",
      -  "disclaimer"
      -]New value: +[
      +  "annualIncome",
      +  "propertyType",
      +  "jointLoan",
      +  "old",
      +  "new",
      +  "recommended",
      +  "annualSaving",
      +  "homeLoanTaxBenefitOld",
      +  "notModeled",
      +  "assumptions",
      +  "attribution",
      +  "disclaimer",
      +  "cards"
      +]
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "annualIncome": {
      +      "type": "integer"
      +    },
      +    "annualSaving": {
      +      "type": "integer"
      +    },
      +    "assumptions": {
      +      "additionalProperties": true,
      +      "properties": {
      +        "notTaxAdvice": {
      +          "enum": [
      +            true
      +          ]
      +        },
      +        "regimeYear": {
      +          "enum": [
      +            "FY2026-27"
      +          ]
      +        },
      +        "section80EEAExcluded": {
      +          "enum": [
      +            true
      +          ]
      +        },
      +        "surchargeNotModeled": {
      +          "enum": [
      +            true
      +          ]
      +        }
      +      },
      +      "required": [
      +        "regimeYear",
      +        "surchargeNotModeled",
      +        "section80EEAExcluded",
      +        "notTaxAdvice"
      +      ],
      +      "type": "object"
      +    },
      +    "attribution": {
      +      "enum": [
      +        "AVnester"
      +      ]
      +    },
      +    "disclaimer": {
      +      "type": "string"
      +    },
      +    "homeLoanTaxBenefitOld": {
      +      "type": "integer"
      +    },
      +    "jointLoan": {
      +      "type": "boolean"
      +    },
      +    "new": {
      +      "additionalProperties": true,
      +      "properties": {
      +        "deductionsApplied": {
      +          "type": "integer"
      +        },
      +        "taxableIncome": {
      +          "type": "integer"
      +        },
      +        "totalTax": {
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "taxableIncome",
      +        "totalTax",
      +        "deductionsApplied"
      +      ],
      +      "type": "object"
      +    },
      +    "notModeled": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "nri": {
      +      "additionalProperties": true,
      +      "properties": {
      +        "countryOfResidence": {
      +          "type": "string"
      +        },
      +        "dtaaNote": {
      +          "type": "string"
      +        },
      +        "repatriation": {
      +          "additionalProperties": true,
      +          "properties": {
      +            "availableUsd": {
      +              "type": "number"
      +            },
      +            "capUsd": {
      +              "type": "number"
      +            },
      +            "disclaimer": {
      +              "type": "string"
      +            },
      +            "notModeled": {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "requiresCA": {
      +              "type": "boolean"
      +            }
      +          },
      +          "required": [
      +            "availableUsd",
      +            "capUsd",
      +            "requiresCA",
      +            "notModeled",
      +            "disclaimer"
      +          ],
      +          "type": "object"
      +        },
      +        "tds": {
      +          "additionalProperties": true,
      +          "properties": {
      +            "disclaimer": {
      +              "type": "string"
      +            },
      +            "form13EligibilityHint": {
      +              "type": "boolean"
      +            },
      +            "ltcgTax": {
      +              "type": "number"
      +            },
      +            "notModeled": {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "section195Rate": {
      +              "type": "number"
      +            },
      +            "stcgTax": {
      +              "type": "number"
      +            },
      +            "tdsAmount": {
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "section195Rate",
      +            "tdsAmount",
      +            "ltcgTax",
      +            "stcgTax",
      +            "form13EligibilityHint",
      +            "notModeled",
      +            "disclaimer"
      +          ],
      +          "type": "object"
      +        }
      +      },
      +      "required": [
      +        "countryOfResidence",
      +        "dtaaNote"
      +      ],
      +      "type": "object"
      +    },
      +    "old": {
      +      "additionalProperties": true,
      +      "properties": {
      +        "deductionsApplied": {
      +          "type": "integer"
      +        },
      +        "taxableIncome": {
      +          "type": "integer"
      +        },
      +        "totalTax": {
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "taxableIncome",
      +        "totalTax",
      +        "deductionsApplied"
      +      ],
      +      "type": "object"
      +    },
      +    "propertyType": {
      +      "enum": [
      +        "self_occupied",
      +        "let_out"
      +      ],
      +      "type": "string"
      +    },
      +    "recommended": {
      +      "enum": [
      +        "old",
      +        "new"
      +      ],
      +      "type": "string"
      +    },
      +    "residencyStatus": {
      +      "enum": [
      +        "nri"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "annualIncome",
      +    "propertyType",
      +    "jointLoan",
      +    "old",
      +    "new",
      +    "recommended",
      +    "annualSaving",
      +    "homeLoanTaxBenefitOld",
      +    "notModeled",
      +    "assumptions",
      +    "attribution",
      +    "disclaimer"
      +  ],
      +  "type": "object"
      +}
  3. Changed10 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / properties / annualIncome / maximum
      Removed value: -9007199254740991
    • removedInput schema / properties / annualRent / maximum
      Removed value: -9007199254740991
    • removedInput schema / properties / holdingMonths / maximum
      Removed value: -9007199254740991
    • removedInput schema / properties / homeLoanInterest / maximum
      Removed value: -9007199254740991
    • removedInput schema / properties / homeLoanPrincipal / maximum
      Removed value: -9007199254740991
    • removedInput schema / properties / indexedCost / maximum
      Removed value: -9007199254740991
    • removedInput schema / properties / other80C / maximum
      Removed value: -9007199254740991
    • removedInput schema / properties / otherOldRegimeDeductions / maximum
      Removed value: -9007199254740991
    • removedInput schema / properties / saleValue / maximum
      Removed value: -9007199254740991
  4. Changed8 schema fields changed
    • addedInput schema / properties / countryOfResidence
      Added value: +{
      +  "description": "NRI only — DTAA article lookup hint. Free-form country name.",
      +  "maxLength": 50,
      +  "type": "string"
      +}
    • addedInput schema / properties / hasForm15CB
      Added value: +{
      +  "description": "NRI only — whether Form 15CB CA-attestation is already in hand.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / holdingMonths
      Added value: +{
      +  "description": "NRI only — holding period in months. ≤24 is STCG; >24 is LTCG.",
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / indexedCost
      Added value: +{
      +  "description": "NRI only — indexed cost of acquisition (LTCG). When omitted, TDS computed on full sale value.",
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / nroBalanceUsd
      Added value: +{
      +  "description": "NRI only — NRO account balance in USD equivalent for the repatriation cap math.",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / residencyStatus
      Added value: +{
      +  "description": "Default resident. Pass nri to get §195 TDS + LRS-cap math in the response.",
      +  "enum": [
      +    "resident",
      +    "nri"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / saleValue
      Added value: +{
      +  "description": "NRI only — sale consideration in INR for §195 TDS computation.",
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / ytdRemittedUsd
      Added value: +{
      +  "description": "NRI only — FY-to-date USD already remitted under the $1M cap.",
      +  "minimum": 0,
      +  "type": "number"
      +}
  5. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already indicate readOnlyHint, idempotentHint, openWorldHint, non-destructive. Description adds that it is pure deterministic math, not tax advice, and lists modelled sections and exclusions. No contradiction.

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

Conciseness5/5

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

Three sentences with no extraneous information. Front-loaded with core purpose, followed by usage guidance and behavioral notes. Every sentence serves a purpose.

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

Completeness5/5

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

Given 18 parameters, output schema exists, and annotations provide safety signals, the description covers the essential behavioral aspects: what is modelled, what is excluded, disclaimer requirement, and usage triggers. Complete for the complexity.

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% with full descriptions for all 18 parameters. The description does not add meaning beyond the schema for individual parameters, but it provides high-level context of what the tool computes. Baseline 3 is appropriate.

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?

Description clearly states the tool compares OLD vs NEW tax regime for home-loan borrowers to recommend the cheaper one, using deterministic slab math. It distinguishes from sibling tools (none of which are tax calculators) by naming specific user queries and tax sections.

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

Usage Guidelines5/5

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

Explicitly tells when to use: when user asks 'old or new tax regime', 'home-loan tax benefit', or 'section 80C / 24(b) deduction'. Lists what it does and does not model (capital gains, HRA, etc.), and reminds to surface disclaimer.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources