Skip to main content
Glama

Calculate residency return date

calculate_residency_return
Read-only

Calculate a conservative return-by date from the last day in country under the supported Panama and Paraguay residency-maintenance rules. The calculation uses the day before the calendar anniversary. It is limited to the listed residency types; it does not calculate presence for other countries or citizenship.

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": {
      "residency": "<residency>",
      "departure_date": "<departure_date>"
    },
    "name": "calculate_residency_return"
  }
}

Input Schema

NameRequiredDescriptionDefault
as_ofNoOptional date for the countdown, YYYY-MM-DD; defaults to today.
residencyYesSupported residency rule.
departure_dateYesLast day in the country, YYYY-MM-DD.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds real behavioral context beyond that: the result is 'conservative,' the boundary is computed as the day before the calendar anniversary, and coverage is limited to three enumerated residency types.

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?

Three short sentences, front-loaded with the core action before the rule detail and the exclusions. The closing exclusion clause slightly overlaps the 'limited to the listed residency types' phrase, a small redundancy, but nothing is wasted overall.

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 three-parameter calculator with no output schema, the definition covers scope, the computational rule, and the out-of-scope boundary. It could be marginally stronger by stating what the returned value looks like, but the title and first sentence together make the return type clear.

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 all three parameters, including the as_of default-to-today behavior and the residency enum, are already documented. The description reinforces that residency is a restricted rule selector but adds no format or edge-case detail beyond the schema, so the baseline 3 applies.

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?

The description gives a specific verb and resource ('calculate a conservative return-by date') and immediately bounds the domain to Panama and Paraguay residency-maintenance rules. An agent can distinguish this from count_travel_days or calculate_feie_days because the description names the exact rule set it applies.

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 clearly states the use case (last day in country under supported residency rules) and gives explicit exclusions: no other countries, no citizenship. It stops short of naming which sibling tool to use for those out-of-scope cases, so the agent must infer the alternative from the sibling list.

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.