Skip to main content
Glama

pickthetrain

Direct trains between two cities

find_direct_trains
Read-only

The direct trains from one city to a city in another country (in North America, also to another state), with no change: departure and arrival times (local), how long it takes, the night trains, the stations, the days each train runs, the operator's own site to book, and, where pickthetrain has both, how long the trip takes door to door by train and by plane. Give a date (YYYY-MM-DD) for the trains that run that day. It covers the railways that publish official open timetables, for the next eight weeks where they have published that far, and a few routes checked by hand; there are no fares. Only trains that cross a border: for a train inside one country, or a journey with a change, it says so. Read-only.

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": {
      "from": "<from>",
      "to": "<to>"
    },
    "name": "find_direct_trains"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYeswhere the train goes, in another country: a city's name in any language or spelling, e.g. 'Zurich', 'München', 'Praha'; add the country after a comma when two cities share a name, e.g. 'Baden, Switzerland'
dateNothe travel day as YYYY-MM-DD, e.g. '2026-11-20'; leave out for the route's trains with the days each runs
fromYeswhere the train leaves from: a city's name in any language or spelling, e.g. 'Zurich', 'München', 'Praha'; add the country after a comma when two cities share a name, e.g. 'Baden, Switzerland'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint/destructiveHint false), and the description adds real behavior the annotations cannot convey: coverage limited to railways publishing official open timetables, roughly an eight-week horizon, a few hand-checked routes, and explicitly no fares. It also discloses what the tool returns when the requested trip is not a cross-border direct train, which is the main failure mode an agent would hit.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded, but the opening sentence is an overlong run-on that lists every returned field at the same weight, and later clauses partially repeat earlier ones ('with no change' vs 'a journey with a change'). It is informative but would be more scannable split into purpose / coverage / exclusions lines.

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 usefully enumerates what comes back (local times, duration, night trains, stations, running days, booking site, door-to-door comparisons) and bounds coverage in time and source. Only the handling of ambiguous city names and the exact no-result response shape remain thin, so it is nearly complete for a three-parameter lookup.

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% and each parameter already explains itself, including the city-name format and country disambiguation. The description only restates the date format and the cross-border constraint on 'to', so it adds little meaning beyond the schema; 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 names a specific verb and resource ('The direct trains from one city to a city in another country') and immediately pins the scope: cross-border, no change required, with times, duration, stations, running days and booking links. An agent can tell this apart from a destination-listing sibling 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 Guidelines4/5

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

It states the key filtering condition ('Only trains that cross a border') and what happens outside it ('for a train inside one country, or a journey with a change, it says so'), plus the date instruction. It gives clear usage context but names no alternative tool for the same-country or with-change cases, so the routing half of the guidance is left implicit.

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