Skip to main content
Glama

Check tax-residency day counts

check_residency
Read-onlyIdempotent

Count distinct days of presence per country per calendar year and evaluate the generic 183-day rule, the US Substantial Presence Test (weighted 3-year formula), and the UK 183-day tax-year test. Early-warning day counter — not tax advice.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
staysYes
referenceDateNoOptional 'as of' date. Defaults to today (UTC).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okNo
countriesNo

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already mark the tool read-only and idempotent, so the description does not need to cover safety. It adds useful behavioral context: days are distinct (deduplicated), counted per calendar year, and assessed under the generic 183-day rule, the US SPT weighted formula, and the UK tax-year test; the 'early-warning, not tax advice' qualifier also sets expectations about precision.

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?

Two tightly written sentences; the first packs the core computation and the three tests, and the second adds an important scope disclaimer. Every phrase earns its place and the most important information 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?

For a read-only calculation tool with an output schema, the description covers the computation, the three tests, the per-calendar-year scope, and the advisory nature. The main gap is the lack of differentiation from overlapping sibling tools, which matters given the long sibling list.

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?

The schema documents referenceDate and the country code format, leaving the stays array only structurally defined. The description supplies the missing semantics: stays represent periods of presence and are counted as distinct days per country per calendar year, which clarifies how entry/exit pairs are interpreted. It does not discuss overlap handling or date parsing, but it adds meaningful value beyond the schema.

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?

The description opens with a concrete verb ('Count') and a specific resource ('distinct days of presence per country per calendar year'), then names the exact tax tests evaluated. It is clear what the tool computes, but it never distinguishes itself from similarly named siblings like check_tax_residency_risk or check_travel_residency.

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?

No explicit when-to-use or alternative routing is given; the closest is the 'Early-warning day counter — not tax advice' boundary, which implies use for preliminary counts rather than official determinations. Since it neither names any alternative tool nor gives clear exclusion conditions beyond the disclaimer, guidance is only implied.

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.

TDQS

A3.9/5.0
Disambiguation3/5

Several tools occupy adjacent territory: check_travel_residency explicitly supersedes check_residency, check_schengen, and check_tax_residency_risk, and the cost-of-living family (arrival_cost, compare_total_cost, compare_housing, estimate_micro_costs, calculate_ppp, localize_salary) has overlapping price-level concepts. The detailed descriptions mostly clarify boundaries, but an agent selecting by name alone could easily pick the wrong residency or cost tool.

Naming Consistency4/5

Most tools follow a clean verb_noun snake_case pattern with recognizable prefixes (compare_*, check_*, find_*, calculate_*), which makes the set predictable. Deviations like arrival_cost, passport_power, required_rate, and the acronym-heavy calculate_ppp keep it from being perfectly uniform.

Tool Count3/5

26 tools is a heavy surface, and at least three of the check_* tools are explicitly superseded by check_travel_residency, adding redundant weight. The broad geo-arbitrage/nomad domain justifies much of the breadth, but the set feels closer to a full toolkit than a focused server.

Completeness4/5

The toolset covers the core remote-work and geo-arbitrage decision space: cost of living, purchasing power, tax residency risk, nomad visas, housing, healthcare, climate, connectivity, holidays, salary localization, FIRE, livability, and even team timezone planning. Gaps are minor—no family-size cost tool, no immigration/citizenship pathway data, and no dedicated safety/crime dataset beyond the livability composite—but agents can work around them.

Resources