Skip to main content
Glama

search_intercity

Search SAR intercity trains on East and North lines with fares. Input origin, destination, and date to retrieve departure/arrival times, duration, stops, and Economy/Business prices.

Instructions

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateYes
to_stationYes
from_stationYes
Behavior4/5

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

No annotations provided, but description discloses return contents (times, duration, stops, fares), rendering method (headless browser, ~5-10s latency), and behavior for empty lists. No mention of auth or rate limits, but acceptable for a search 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?

Two well-structured paragraphs. First paragraph states purpose and scope, second lists parameters and return values. No redundant sentences; each sentence adds value.

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?

No output schema, but description explains return fields (departure/arrival time, duration, stops, Economy + Business fares in SAR) and edge cases like empty list meaning. Complete for a search 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?

Schema has 0% description coverage, but the description adds examples and format for each parameter: 'Origin name or code (e.g. "Riyadh", "RYD", "Dammam")' and 'ISO format YYYY-MM-DD'. This compensates well.

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 'Search SAR intercity trains (East + North lines) WITH fares on a date.' It specifies the exact routes covered and distinguishes from the sibling tool 'search_trains' which is for the Haramain line.

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?

Explicitly says 'Use this instead of search_trains for any route NOT on the Makkah-Madinah Haramain line.' Also explains when to expect empty results (e.g., North line currently no bookable service).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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