Skip to main content
Glama

Irail Journey

irail_journey
Read-onlyIdempotent

Plan a train journey between two Belgian stations — SNCB NMBS route planner with legs, transfers, live delays, and platforms per leg. Answers "next train from Brussels to Antwerp", "how do I get from Ghent to Liège by rail". Optional depart_at or arrive_by as ISO datetime ("2026-07-20T09:00") or time ("09:00"), interpreted in Belgian local time. Example: irail_journey({ from: "Brussels-South", to: "Antwerp-Central" })

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesDestination station, e.g. "Antwerp-Central"
fromYesOrigin station, e.g. "Brussels-South"
limitNoMax connections to return, 1-6 (default 4)
arrive_byNoArrive by this time instead — same formats as depart_at. Overrides depart_at
depart_atNoDepart at/after this time — "YYYY-MM-DDTHH:MM" or "HH:MM" (today), Belgian local time. Default: now

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "from": "Brussels-South",
      +    "to": "Antwerp-Central"
      +  },
      +  {
      +    "depart_at": "09:30",
      +    "from": "Ghent-Sint-Pieters",
      +    "limit": 3,
      +    "to": "Liège-Guillemins"
      +  }
      +]
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, establishing safety. The description adds behavioral detail: live delays, platforms per leg, and time interpretation in Belgian local time. This goes beyond annotations but does not discuss rate limits or authentication, though those are not critical for a read-only tool.

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?

The description is three sentences with an example, no redundant words. The first sentence front-loads core purpose and outputs. Every sentence adds value: purpose, usage examples, parameter format hint, and a code example.

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?

Given 5 parameters (2 required) and no output schema, the description covers tool purpose, major outputs, parameter usage, and timezone. Missing details include default limit (4) and result ordering, but these are partially addressed in the schema. It is mostly complete for a straightforward read-only tool.

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?

With 100% schema coverage, baseline is 3. The description adds meaning beyond schema by clarifying that depart_at/arrive_by accept ISO datetime or time formats and are interpreted in Belgian local time. It also provides a concrete example of required parameters, enhancing understanding of the from/to naming convention.

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 clearly states the tool plans a train journey between two Belgian stations via SNCB/NMBS, listing specific outputs like legs, transfers, delays, platforms. It includes example questions that make the purpose unmistakable, and the verb 'plan' combined with 'between two Belgian stations' distinguishes it from sibling tools like irail_liveboard (station departures) or irail_disturbances.

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?

The description provides example queries showing when to use ('next train from Brussels to Antwerp'), but does not explicitly state when not to use this tool or mention alternatives like irail_liveboard for single-station departures. The context is clear but lacks exclusionary 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.