Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_stationsA

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_trainsA

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).

search_intercityA

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).

list_intercity_stationsA

List SAR intercity stations (East + North lines) and their codes.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/RazakGhazal/sar-train-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server