Skip to main content
Glama

Ask NRIWallah

Residential status in India for a tax year

india_residency_status
Read-only

Works out whether a year usually counts as non-resident (NRI), RNOR or resident and ordinarily resident in India under section 6, from days in India: which limb decides it, how many more days would keep the person non-resident, and what the status usually means for tax. Give days_in_india for the year and, for the RNOR tests, earlier_years (most recent first) or typical_days_before and moved_abroad_year. Explain it as what the rules usually give on the days provided, not a ruling.

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": {
      "days_in_india": "<days_in_india>"
    },
    "name": "india_residency_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
tax_yearNoThe year the Indian tax year starts, e.g. 2026 for 2026-27. Default: the current one.
year_typeNovisiting (living abroad, visiting India: the usual NRI year), left_for_job (an Indian citizen who left India this year for a job abroad) or living_in_india (moved back). Default visiting.
citizenshipNoIndian citizen, person of Indian origin (including OCI) or another foreign national. Default citizen.
days_in_indiaYesDays in India in the Indian tax year (1 April to 31 March), counted or planned.
earlier_yearsNoDays in India in each earlier tax year, most recent first.
moved_abroad_yearNoThe calendar year the person first moved abroad; earlier years count as a full year in India.
typical_days_beforeNoDays in India in a typical earlier year, for years not in earlier_years. Default 0.
liable_to_tax_abroadNoLiable to tax in another country (false for most people in the Gulf). Default true.
indian_income_over_15_lakhNoIndian income, other than from abroad, above ₹15 lakh in the year. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, openWorldHint=false), and the description adds real behavioral context: the tool is a rule-of-thumb estimator that reports the deciding limb and how many more days would change the outcome, and it explicitly frames output as 'what the rules usually give… not a ruling.' That caveat and the returned breakdowns are not derivable from the annotations or schema. It does not discuss edge-case limitations for the deemed-resident 120-day rule, so it stops short of a 5.

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?

Purpose is front-loaded, then the returned outputs, then the input recipe, then the estimator caveat — a sensible order with no filler sentences. The opening sentence is dense and run-on, and the 'tax year / citizenship / liable_to_tax_abroad' inputs pass unmentioned, but nothing is wasted.

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?

For a 9-parameter statutory calculation with no output schema, the description adequately conveys what will be returned and how results should be framed, which is the main risk of misuse. It omits mention of the citizenship, liable_to_tax_abroad and indian_income_over_15_lakh inputs that drive the deemed-resident rule, though the 100% schema descriptions compensate.

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

Parameters4/5

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

Schema coverage is 100%, so the schema already carries most parameter meaning and a baseline of 3 applies. The description adds genuine routing logic on top — that earlier_years is most-recent-first and is the alternative to the typical_days_before/moved_abroad_year pair for RNOR tests — which is the kind of conditional guidance the schema does not express.

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?

States a specific verb and resource — determining Indian residency status (NRI/RNOR/ROR) under section 6 from days in India — and even previews the sub-outputs (which limb decided, days needed to stay non-resident, tax meaning). It is clear on its own, but it never differentiates itself by name from plausible siblings like rnor_window or india_tax_estimate.

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?

The description does give input-level guidance: supply days_in_india and, for the RNOR tests, either earlier_years or typical_days_before plus moved_abroad_year. However, it gives no when-to-use vs when-not guidance against the sibling tools, and no exclusions or prerequisites beyond that input recipe.

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