Skip to main content
Glama

Indian Railways IRCTC

Find Trains Between Stations

railway_train_betweenStations
Read-only

Use this tool to find trains between two station codes when date is not provided. Calls /trains/betweenStations. Do not use for non-India routes or booking/payment requests.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
to_stationYesDestination station code.
from_stationYesSource station code.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
countYes
trainsYesList of train records from the upstream API.
time_stampNo
to_stationYes
search_noteNo
from_stationYes
journey_dateNo
total_trainsYes

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare the tool read-only and non-destructive, so the description carries a lower burden. It adds useful context by revealing the underlying endpoint (`/trains/betweenStations`) and scoping the geographic context, which supplements the structured metadata effectively.

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?

All three sentences serve a distinct purpose: what the tool does, the underlying API call, and relevant exclusions. There is no fluff or redundancy, making it a model of concise technical writing.

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?

For a simple read-only lookup with full parameter coverage and a documented output schema, the description covers the essentials. The only minor gap is the ambiguous scope of 'when date is not provided' (i.e., what results to expect without a date), but this doesn't detract significantly from overall completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, with both parameters ('from_station' and 'to_station') adequately described as source/destination station codes with examples. The description adds no additional parameter semantics, meeting the baseline for high schema coverage without exceeding it.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb+resource ('find trains between two station codes') that clearly states what the tool does. The qualifier 'when date is not provided' implicitly distinguishes it from the sibling searchByRouteDate, though it doesn't explicitly name the alternative.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides both a condition for use ('when date is not provided') and explicit exclusions ('Do not use for non-India routes or booking/payment requests'). However, it stops short of naming a specific replacement tool for the excluded scenarios, keeping it at a 4 rather than 5.

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.

TDQS

A4/5.0
Disambiguation4/5

Most tools have clearly distinct purposes: station board, train search (with/without date), train details, live status, PNR status, route. The only potential confusion is between railway_train_betweenStations and railway_train_searchByRouteDate, but the descriptions explicitly note the date-based difference, reducing ambiguity.

Naming Consistency3/5

All tools share the 'railway_' prefix and include an entity (station/train), but the style is mixed: some have clear verbs (getByNumber, searchByRouteDate), others use nouns or adjectives (route, pnrStatus, liveBoard, betweenStations). This inconsistency is noticeable but not chaotic.

Tool Count5/5

Seven tools is a well-scoped set for an Indian Railways information server. Each tool addresses a distinct common query type (station board, train search, train details, live status, PNR status, route), with no unnecessary bloat or obvious missing core functionality.

Completeness4/5

The tool surface covers the main railway information needs: arrivals/departures, train search (both with and without date), core train details, live running status, PNR status, and route. Notable gaps include seat availability and station name lookup, but these are not critical for the stated scope.

Resources