MCP server for Saudi passenger rail (SAR): Haramain HSR timetables + intercity East/North schedules & fares
Three tools with complete input schemas and descriptions. Naming follows verb_noun pattern (list_*, search_*). Descriptions are detailed (150-250 chars) and explain WHEN to use each tool. However, output schemas are not formally documented, only described in prose. Parameter descriptions are good but lack explicit format constraints (e.g., date format is stated in description but not in JSON Schema). No error handling guidance, no enum constraints, no pagination support despite tools returning lists. Missing tool annotations (readOnlyHint present in metadata but not in schema). Composition is sound: three distinct tools, each with one responsibility.
List the Haramain High-Speed Railway (HHR) stations and their ids. The HHR line runs Makkah <-> Jeddah (two stations) <-> KAEC <-> Madinah. Use these names or ids with `search_trains`.
Search SAR intercity trains (East + North lines) WITH fares on a date. Covers the non-Haramain network: the East line (Riyadh <-> Abqaiq, Hofuf, Dammam) and the North line (Riyadh <-> Majmaah, Qassim, Hail, Al-Jouf, Qurayyat). Use this instead of `search_trains` for any route NOT on the Makkah-Madinah Haramain line. Args: from_station: Origin name or code (e.g. "Riyadh", "RYD", "Dammam"). to_station: Destination name or code (e.g. "Dammam", "DMM", "Hofuf"). date: Travel date, ISO format YYYY-MM-DD. Returns each train with departure/arrival time, duration, stops, and Economy + Business fares in SAR. Rendered from the public booking results page via a headless browser (~5-10s). An empty list means SAR is not selling that route on that date (the North line currently shows no bookable service; the East line runs daily).
Search Haramain (HHR) train schedules between two stations on a date. Args: from_station: Origin station name or id (e.g. "Makkah", "Jeddah", 1). Plain "Jeddah" resolves to Al-Sulimaniyah; use "Jeddah Airport" for KAIA. to_station: Destination station name or id (e.g. "Madinah", 5). date: Travel date in ISO format YYYY-MM-DD (e.g. "2026-06-30"). Returns a list of trains with departure/arrival datetimes, duration, number of stops, and the intermediate stations. Fares are not included (HHR does not expose pricing on the public timetable).
Output schemas not formally documented. Descriptions mention return structure (e.g., 'list of trains with departure/arrival datetimes, duration, number of stops') but no JSON Schema definition visible. LLMs cannot reliably parse unstructured prose output.
No pagination support. search_trains and search_intercity return lists but lack limit/offset/page parameters or total_count in response. Large result sets will blow context windows.
No error handling guidance. If a station name is invalid or a date is in the past, the tool will fail but provides no recovery hint (e.g., 'Try list_stations() to see valid names'). Agents cannot self-correct.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 61 | 2026-07-28+ | v2 |
Date format constraint stated in description ('ISO format YYYY-MM-DD') but not enforced in JSON Schema. No pattern or format field in schema. LLMs may pass invalid dates.
Station parameter accepts both names and IDs but no enum constraint. Descriptions list examples ('Makkah', 'Jeddah', 1) but LLMs may hallucinate invalid station names. Should provide enum or reference list_stations discovery tool.