Check tax residence
check_residencyDetermines the person's tax residence between the version's home state and another country, step by step. Without all answers it returns status "needs_answer" and the next question (id, text, options); ask the user and call again with all answers collected so far. When complete it returns status "done": the conclusion with reliability %, how each law treats the person, the treaty tie-breaker, where and which taxes apply, next steps (certificate of residence, resident / non-resident obligations, steps when leaving), exit tax and the year of the move (with "move"), what the result does not cover, the legal basis (norms with links) and court practice, optional per-income-type rules, the disclaimer and a link to the same result on doubletaxation.app. Texts are in the language of the version.
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": {
"version": "<version>",
"country": "<country>"
},
"name": "check_residency"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| move | No | Optional: the person moved this tax year. kind "depart" = left the version's home state for the other country; "arrive" = moved to the home state from the other country. date YYYY-MM-DD within the tax year. Adds how each state treats the year of the move, the steps when leaving and the exit tax of the state left. | |
| year | No | Tax year: the current year or one of the two previous years. Default: current year. | |
| income | No | Optional: the person's income, one item per category, to get the treaty's special rules (who may tax it, rate limits, relief method, example calculation if amount is given). | |
| answers | No | Answers so far: { "<question id>": value }. Choice questions take an option value (e.g. "yes", "no", "unknown"); number questions take a whole number (days) or "unknown" if allowed. | |
| country | Yes | ISO code of the other country (where the person lives or stays). Must be one of list_countries for this version. | |
| version | Yes | Version id (home state), see list_versions. | |
| citizenship | No | Citizenship option value from list_countries.citizenship_options, e.g. "UA", "UA+OTHER" (dual), "NONUS". Default: the first option (citizen of the home state only). |