Skip to main content
Glama

check es residency

check_es_residency
Read-onlyIdempotent

Spain tax residence: more than 183 days in the calendar year (sporadic absences count unless tax residence elsewhere is proven) or the main centre of economic activities or interests in Spain; presumption if the non-separated spouse and dependent minor children reside in Spain. Spain (AEAT), 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>"
    },
    "name": "check_es_residency"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysYesDays in Spain in the calendar year
familyInSpainNoSpouse and dependent minor children reside in Spain
economicCentreNoMain economic interests in Spain
residentElsewhereCertificateNoHas a tax residence certificate from another country

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare a safe, idempotent, closed-world read, so the description's job is to add context beyond that — and it does: legal basis (AEAT), an effective date (2026-11-22), the 'not tax advice' disclaimer, treaty override, and the three possible verdict values. Return-shape disclosure substitutes for the missing output schema, but pagination/format details are not relevant here since there is no output schema or list behavior.

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?

A single dense paragraph that front-loads the jurisdiction and ends with the verdict vocabulary; every clause carries substantive legal content. The nested semicolons and long run-on structure make it slightly harder to parse than a bulleted breakdown would be, but nothing is filler.

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 4-parameter, read-only, deterministic checker with full schema descriptions and no output schema, the description supplies everything needed: the decision test, the disclaimer, the jurisdiction/effective date, and the enumerated verdict values an agent must branch on.

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 a 3 is the baseline; the description earns more by explaining the operative test behind the fields — the 183-day rule with sporadic absences, the economic-centre criterion, and the family presumption tied to familyInSpain. It also explains residentElsewhereCertificate's role with 'unless tax residence elsewhere is proven', which is interpretive meaning the schema description does not supply.

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+resource (determine Spanish tax residence) and immediately delimits it with the jurisdiction and legal test, so an agent can distinguish it from check_fr_residency, check_jp_residency and the other country siblings without opening a schema.

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 opening 'Spain tax residence:' plus the enumerated criteria give clear context for when this checker applies versus the other jurisdiction checkers, and 'tax treaties can override the result' flags the main caveat. It stops short of explicit when-not guidance or naming an alternative tool for other jurisdictions, so it is 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.