Skip to main content
Glama

Belgian train punctuality: journey, station, train, IC line, national (Infrabel)

train_punctuality
Read-only

How punctual Belgian trains are, from Infrabel's official open data. Between two stations (from_station and to_station, e.g. a commute): every direct train that stopped at both yesterday, how many arrived less than 6 minutes late, average and worst delays, scheduled against actual journey time, morning and evening peak, the return direction, and the two stations' monthly figures. For a station (name in Dutch, French or English, or the nearest one to an address): the share of trains arriving less than 6 minutes late in the latest month against the average over all stops, its rank, the last 13 months, yesterday train by train (delay bands, average delay, the latest trains) and major incidents there. For a train number: every point it passed yesterday with its delays, where the delay grew and whether it was on time at the official measuring points. For an IC line (e.g. 'IC 01'): monthly punctuality per direction and by time of day against the national figure. With none of these: the national figure (also counting cancellations), by train type, punctuality lost by cause, cancellations per operator, the month's major incidents (delay minutes, cancelled trains), and today so far. Starts with key_facts. Does not give live departures or platform changes, and has no train-by-train data before yesterday. Examples: How punctual is the commute from Leuven to Brussels-Central? → {"from_station":"Leuven","to_station":"Brussel-Centraal"}; How punctual are trains at Leuven station? → {"station":"Leuven"}; Was train 2112 late yesterday, and where did it lose time? → {"train_number":"2112"}; How punctual is the IC 01 Oostende-Eupen? → {"ic_line":"IC 01"}.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "train_punctuality"
  }
}

Input Schema

NameRequiredDescriptionDefault
monthNoMonth for the monthly figures as YYYY-MM, e.g. '2026-03'; default the latest Infrabel published.
addressNoAn address or place instead of a station: the nearest station is used, e.g. 'Grote Markt 1, 2800 Mechelen'.
ic_lineNoAn InterCity line, e.g. 'IC 01', 'IC 16-1' or 'IC3'.
stationNoA passenger station, e.g. 'Leuven', 'Bruxelles-Midi', 'Gent-Sint-Pieters', 'Luik-Guillemins'.
latitudeNoWGS84 latitude, e.g. 51.0453 (use with longitude instead of address).
longitudeNoWGS84 longitude, e.g. 3.7275.
to_stationNoWith from_station: where the trains arrive, e.g. 'Brussel-Centraal', 'Bruxelles-Central'.
x_lambert72NoBelgian Lambert 72 (EPSG:31370) x in metres, as an alternative to latitude/longitude.
y_lambert72NoBelgian Lambert 72 (EPSG:31370) y in metres.
from_stationNoWith to_station: trains between two stations yesterday, e.g. 'Leuven'.
train_numberNoA train number as on the departure board, e.g. '2112': its run yesterday stop by stop.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / from_station
      Added value: +{
      +  "description": "With to_station: trains between two stations yesterday, e.g. 'Leuven'.",
      +  "type": "string"
      +}
    • addedInput schema / properties / to_station
      Added value: +{
      +  "description": "With from_station: where the trains arrive, e.g. 'Brussel-Centraal', 'Bruxelles-Central'.",
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already establish that this is a read-only, open-world, non-destructive data tool. The description adds valuable behavioral context: official open-data source, temporal coverage, key_facts-first output, and limitations on live and historical train-level data. It stops short of describing error behavior, data freshness beyond defaults, or response structure in detail.

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?

The definition is long, but the length is justified by eleven optional parameters and five distinct query modes. It is front-loaded with purpose and organized by mode, though the dense run-on sentences and long enumerations make it slightly harder to scan than ideal.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity, eleven parameters, five modes, and absence of an output schema, the description is complete enough to call it correctly. It explains what each mode returns, gives examples, and states the main temporal and functional limitations.

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 parameter-level definitions already carry much of the burden. The description adds useful meaning by explaining how parameters combine into distinct query modes, how station names may be supplied in multiple languages, and how to fall back to national figures when no selector is provided.

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 opens with a specific resource and scope: punctuality of Belgian trains from Infrabel open data. It then distinguishes all supported query modes (journey, station, train number, IC line, national) so an agent can immediately understand what the tool does.

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?

It explicitly maps each parameter combination to a use case, including journey queries, station queries, train-number queries, IC-line queries, and the no-parameter national fallback. It also states important exclusions: no live departures or platform changes, and no train-by-train data before yesterday.

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.