Skip to main content
Glama

Tax-residency status

get_residency_status
Read-only

Days of presence per country against that country's tax-residency threshold and window ending on optional asOf. Omit asOf for today. Future dates honor logged journeys, then continue presence in the last destination. Open journey gaps block the calculation. Includes status, presence blocks, unowned uncertain days, and the countingMethod applied to each country. Informational, not tax advice. If unfamiliar with TripLedger semantics, call get_tripledger_guide first.

Input Schema

NameRequiredDescriptionDefault
asOfNoInclusive calendar date in YYYY-MM-DD format (windows end on this day). Omit for today. Future dates honor logged journeys, then assume presence continues in the last destination; open journey gaps block the calculation.
personIdNoTripLedger person to calculate for. Omit for the ledger's self person.

Output Schema

NameRequiredDescriptionDefault
asOfYes
todayYes
windowsYes
timezoneYes
countriesYes
methodologyYes
calculatedAtYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, non-destructive, closed world), and the description still adds substantial behavioral context: future dates honor logged journeys then continue presence in the last destination, open journey gaps block the calculation, and the result includes uncertain/unowned days plus the countingMethod per country. The "informational, not tax advice" caveat is exactly the kind of non-obvious framing an agent needs before relaying output.

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?

Six short, front-loaded sentences that each carry real information, with the core computation stated first and caveats after. The one redundancy is the enumeration of returned fields ("status, presence blocks, unowned uncertain days, countingMethod"), which duplicates the output schema and could be trimmed.

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?

For a two-parameter, zero-required, read-only calculation tool with an output schema and full annotation coverage, the description supplies everything an agent needs: the computation, the default date behavior, future-date semantics, the blocking condition (open journey gaps), and a fallback guide tool for unfamiliar callers.

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% and both parameters already carry their own semantics, including the future-date and open-journey-gap behavior for asOf. The description restates the asOf default ("Omit asOf for today") and adds nothing about personId's omission default beyond what the schema says, so the baseline 3 applies.

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 first sentence names a concrete computation (days of presence per country vs. that country's residency threshold and window), which is far more specific than a restated title. It implicitly separates itself from check_schengen_status by tying the result to tax-residency thresholds rather than a Schengen day limit, but it never names that sibling, so the differentiation is left to inference.

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?

It gives a clear default rule ("Omit asOf for today") and an explicit prerequisite path ("If unfamiliar with TripLedger semantics, call get_tripledger_guide first"). What it lacks is any statement of when NOT to use this tool or an explicit pointer to check_schengen_status when the user actually wants Schengen days rather than tax residency.

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