Skip to main content
Glama

check uk residency

check_uk_residency
Read-onlyIdempotent

UK statutory residence test for one tax year (6 April to 5 April): automatic overseas tests (under 16 or 46 days, or full-time work abroad), automatic UK tests (183 days, only home, full-time UK work), then the sufficient ties tables. Deeming rule and split year are not applied. UK (gov.uk, HMRC RDR3), 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>",
      "residentInPrior3": "<residentInPrior3>"
    },
    "name": "check_uk_residency"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysYesDays in the UK in the tax year
tiesNoNumber of UK ties (family, accommodation, work, 90-day, country)
ukWorkDaysNoDays working more than 3 hours in the UK
onlyHomeInUkNoMeets the only-home-in-the-UK test
fullTimeAbroadNoWorks full time abroad
fullTimeUkWorkNoMeets the full-time-work-in-the-UK test
residentInPrior3YesUK resident in at least one of the 3 previous tax years

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, and the description adds substantially more: the ordered methodology, the two unapplied rules, the source (gov.uk, HMRC RDR3) with an as-of date, the disclaimer that treaties can override the result, and the three possible verdicts. An agent knows exactly what the output means and where its authority ends.

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 and front-loaded: the tax-year scope comes first, then the test sequence, then caveats. Every clause carries information, though the single unbroken paragraph mixing methodology, exclusions, provenance and disclaimer could be segmented for faster scanning.

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?

With no output schema, the description still discloses the possible verdicts (resident, nonresident, depends), the governing framework, the currency of the source, and its known limitations. Nothing an agent needs to invoke or interpret this 7-parameter tool is missing.

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 every parameter (days, ties, ukWorkDays, onlyHomeInUk, fullTimeAbroad, fullTimeUkWork, residentInPrior3) is already documented in the schema. The description names the tests those inputs feed but adds no syntax, format, or interaction details beyond the schema, so 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?

States a specific verb and resource — the UK statutory residence test for a single tax year with explicit date bounds (6 April to 5 April) — and enumerates the tests it applies (automatic overseas, automatic UK, sufficient ties). This distinguishes it from the country-specific siblings like check_es_residency or check_us_residency purely on jurisdiction.

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

Usage Guidelines4/5

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

The description makes clear the scope of application (one tax year, statutory residence test) and explicitly excludes two situations — deeming rule and split year are not applied — which tells an agent where the tool stops being sufficient. It doesn't name sibling tools or say when to prefer this over a treaty-based or split-year analysis, hence not a 5.

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.