Skip to main content
Glama

Count travel days by country

count_travel_days
Read-only

Count inclusive calendar days per country and calendar year, deduplicate overlapping trips, and report each country's maximum in any rolling 365-day window. Use this general travel log for country-presence tracking; use calculate_feie_days for the US tax test. Each entry is Country|arrival|departure.

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": {
      "entries": "<entries>"
    },
    "name": "count_travel_days"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoYour comparison threshold in days. Defaults to 183.
entriesYesTrips as Country|YYYY-MM-DD|YYYY-MM-DD; arrival and departure both count.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description usefully adds deduplication of overlapping trips, inclusive day counting, and rolling-window maximum computation, which are real behavioral traits beyond the annotations. It still says nothing about how malformed entries are handled or how large a result set can be returned.

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?

Three compact sentences with the computational behavior front-loaded, followed by the sibling routing and the input format. Nothing is redundant or padded.

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 no output schema, the description correctly spells out what is returned: per-country, per-year day counts plus a rolling 365-day maximum. That covers the return shape well. The only gap is that the limit threshold parameter's role in the result is left entirely to the schema.

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 coverage is 100%, so both parameters are already documented, including the limit default of 183 and the arrival/departure-inclusive format. The description restates the entry format but adds no new meaning for limit and does not explain how the comparison threshold is used. Baseline 3 applies when the schema carries the semantics.

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 precise verb-and-resource pair: counts inclusive calendar days per country and calendar year, deduplicates overlapping trips, and reports each country's maximum in any rolling 365-day window. The three computed outputs are named explicitly, which lets an agent distinguish this from calculate_feie_days without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly names the alternative (calculate_feie_days) and the condition that selects it (the US tax test versus general country-presence tracking). The routing decision is stated, not inferred.

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.