Skip to main content
Glama

check tw residency

check_tw_residency
Read-onlyIdempotent

Taiwan 居住者 under 所得稅法第7條: with 戶籍 (domicile) 31 days or more in the tax year, or 1 to 30 days with the centre of life and economic interests in Taiwan; without domicile 183 days or more. Taiwan (財政部), as of 2026-11-22. General information only: not tax advice; tax treaties can override the result. Verdict is resident, nonresident or depends.

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": "<days>",
      "householdRegistration": "<householdRegistration>"
    },
    "name": "check_tw_residency"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysYesDays in Taiwan in the tax year
lifeCentreNoCentre of life and economic interests is in Taiwan
householdRegistrationYesHas household registration (戶籍) in Taiwan

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare a read-only, idempotent, closed-world lookup, so the description is free to spend its words elsewhere — which it does, disclosing the output domain (resident/nonresident/depends), a non-advice disclaimer, and the treaty-override caveat that changes how much weight the agent should put on a result. It stops short of explaining when 'depends' is returned or what a result object contains.

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?

Dense but zero waste: criteria, source, date, disclaimer, and verdict set in roughly three sentences. It is slightly run-on and mixes Chinese legal terms with English, but each clause carries decision-relevant content and the statutory basis is front-loaded.

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?

With no output schema, the description compensates by naming the three possible verdicts, and it supplies the legal source and an as-of date for a jurisdiction-dependent rule set. The remaining gap is the semantics of 'depends' — presumably the 1–30 day case where the optional lifeCentre is not supplied — which an agent must infer.

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 baseline is 3, but the description genuinely adds meaning beyond the field labels: it explains that 戶籍 plus 31+ days is sufficient, that 戶籍 with 1–30 days requires centre of life, and that 183 days applies without 戶籍 — which is precisely the interaction logic behind the three parameters. This is legal interpretation the schema cannot express.

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?

States a specific determination (Taiwan 居住者 under 所得稅法第7條) with the exact statutory criteria and the possible verdicts (resident, nonresident, depends). Against siblings like check_us_residency or check_jp_residency, the jurisdiction and legal basis are unambiguous.

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 implied by the jurisdiction prefix and the criteria listed, and the caveat that treaties can override the result hints at scope limits. However, it never explicitly says when to call this versus the other country residency checkers, nor what inputs make a call meaningless (e.g. cross-border dual-residency cases).

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.