Skip to main content
Glama

GoThere Citizenship by Descent

Check citizenship by descent eligibility

check_descent_eligibility
Read-onlyIdempotent

Check whether a person qualifies for citizenship by descent.

Input is the person's direct ancestral line, one entry per generation,
starting with relation='self'. Every generation between the person and
the ancestor is required, because descent passes generation by generation
and a gap changes the answer.

Exact dates give the most precise result. Year-only input is accepted and
the result carries a caveat; for Ireland, a registration and a birth in the
same year cannot be resolved.

Args:
    country: ISO 3166-1 alpha-2, lowercase. Currently 'ie' or 'ca'.
    line: The direct line, from the user upward.
    as_of: Evaluation date. Defaults to today. Rules with commencement
        dates (Canada's Bill C-3) depend on it.

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": {
      "country": "<country>",
      "line": "<line>"
    },
    "name": "check_descent_eligibility"
  }
}

Input Schema

NameRequiredDescriptionDefault
lineYesThe person's direct ancestral line, one entry per generation, starting with relation 'self' and going up with no gaps.
as_ofNoEvaluation date (YYYY-MM-DD). Defaults to today. Canada's Bill C-3 rules depend on it.
countryYesISO 3166-1 alpha-2 code, lowercase. Supported: 'ie' (Ireland) or 'ca' (Canada).

Output Schema

NameRequiredDescriptionDefault
caveatsNoApproximations and unresolvable ambiguities in the input.
missingNo
sourcesNoLaw and official guidance the rules were built from.
verdictYesOne-line plain reading of the confidence band.
blockersNo
rationaleYes
confidenceYesgreen, yellow, or red
disclaimerYes
learn_moreYes
pathway_idYes
next_actionNo
country_codeYes
supporting_factsNo
rules_verified_as_ofYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / $defs / LineMember / properties / citizenship_registered_date / description
      Added value: +"Exact date (YYYY-MM-DD) of the citizenship registration, if known."
    • addedInput schema / $defs / LineMember / properties / citizenship_registered_year / description
      Added value: +"Year of the citizenship registration. Use when the exact date is unknown."
    • addedInput schema / $defs / LineMember / properties / naturalized_year / description
      Added value: +"Year this person naturalized in naturalized_country, if they did."
    • addedInput schema / properties / as_of / description
      Added value: +"Evaluation date (YYYY-MM-DD). Defaults to today. Canada's Bill C-3 rules depend on it."
    • addedInput schema / properties / country / description
      Added value: +"ISO 3166-1 alpha-2 code, lowercase. Supported: 'ie' (Ireland) or 'ca' (Canada)."
    • addedInput schema / properties / line / description
      Added value: +"The person's direct ancestral line, one entry per generation, starting with relation 'self' and going up with no gaps."
  2. Changed4 schema fields changed
    • changedInput schema / $defs / LineMember / properties / birth_country / description
      Previous value: -"ISO 3166-1 alpha-2 country of birth, e.g. 'IE', 'CA', 'US'. For Northern Ireland use 'IE' — Irish nationality law counts all 32 counties."New value: +"ISO 3166-1 alpha-2 country of birth, e.g. 'IE', 'CA', 'US'. Northern Ireland counts as 'IE': Irish nationality law covers all 32 counties."
    • changedInput schema / $defs / LineMember / properties / relation / description
      Previous value: -"Where this person sits on your direct line. Use exactly one 'self'."New value: +"Where this person sits on the direct line. Exactly one entry is 'self'."
    • changedOutput schema / properties / caveats / description
      Previous value: -"Approximations and unresolvable ambiguities in the input. Relay these."New value: +"Approximations and unresolvable ambiguities in the input."
    • changedOutput schema / properties / sources / description
      Previous value: -"Law and official guidance the rules were built from. Cite these."New value: +"Law and official guidance the rules were built from."
  3. Changed2 schema fields changed
    • addedOutput schema / $defs
      Added value: +{
      +  "Source": {
      +    "properties": {
      +      "title": {
      +        "title": "Title",
      +        "type": "string"
      +      },
      +      "type": {
      +        "description": "'official' or 'secondary'",
      +        "title": "Type",
      +        "type": "string"
      +      },
      +      "url": {
      +        "title": "Url",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "title",
      +      "url",
      +      "type"
      +    ],
      +    "title": "Source",
      +    "type": "object"
      +  }
      +}
    • addedOutput schema / properties / sources
      Added value: +{
      +  "description": "Law and official guidance the rules were built from. Cite these.",
      +  "items": {
      +    "$ref": "#/$defs/Source"
      +  },
      +  "title": "Sources",
      +  "type": "array"
      +}
  4. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds genuinely new behavioral context: gaps in the line change the answer, year-only input is accepted but produces a caveated result, Ireland cannot resolve same-year registration and birth, and results depend on the as_of date via Bill C-3 commencement. That caveat disclosure is the kind of thing annotations cannot convey.

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?

Purpose is front-loaded, then the constraints (no gaps) and input-quality guidance follow in short, ordered paragraphs. The Args block partially duplicates schema titles and descriptions, which is mild redundancy, but no sentence is wasted on filler.

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 annotations, a fully described nested schema and an output schema, the description supplies the remaining decision-relevant context: gap handling, precision caveats, country support, and date dependence. The only unaddressed point is the depth limit implied by the four allowed relation values, which the description never flags.

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, and the Args block largely restates the schema for country, line and as_of. It earns above baseline by explaining the consequence of parameter choices — that a generational gap alters the answer, that exact dates beat year-only data but the latter still returns a caveated result, and why as_of matters.

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 specific verb and resource ('Check whether a person qualifies for citizenship by descent'), which is clearly an eligibility evaluation rather than a lookup. It is distinguishable in kind from list_pathways or get_pathway_requirements, but no sibling is named, so the differentiation is inferred rather than stated.

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 context is implied by the requirement that the input be a person's actual ancestral line, which tells the agent this is the evaluator, not the generic-rules tool. However, it never says explicitly when to call this instead of get_pathway_requirements or list_pathways, and there is no when-not-to-use guidance.

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