Skip to main content
Glama

Indian Railways IRCTC

Search Trains By Route and Date

railway_train_searchByRouteDate
Read-only

Use this tool for date-based route search when source, destination, and journey date are known. Calls /trains/searchTrains. Do not use for non-India routes, booking/payment requests, or dates beyond 60 days in the future.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
to_stationYesDestination station code.
from_stationYesSource station code.
journey_dateYesJourney date in DD-MM-YYYY.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYesUpstream railway API payload.
messageNo
time_stampNo
to_stationYes
from_stationYes
journey_dateYesJourney date in DD-MM-YYYY.

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false. The description adds valuable context beyond annotations by revealing the actual API endpoint and usage restrictions (India-only, date window), which helps an agent predict behavior without repeating annotation info.

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 sentences, zero fluff. First sentence states exactly when to use, second sentence lists exclusions. Every word earns its place; no redundant information.

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 search tool with only 3 params and an output schema, the description covers all key aspects: purpose, endpoint, and exclusions. It doesn't need to describe return values since an output schema exists. The only minor gap is not explicitly stating the response is a list of trains, but that's implied by the name and schema.

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%—all three parameters have clear descriptions and examples. The description text doesn't add any parameter-specific details beyond the schema, which is fine since the schema is self-explanatory. Baseline 3 is appropriate.

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 the tool does 'date-based route search when source, destination, and journey date are known' and even names the underlying endpoint. It distinguishes itself from siblings by focusing on the route-date search use case and explicitly excluding non-India routes, booking/payment, and future dates beyond 60 days.

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 states when to use ('when source, destination, and journey date are known') and gives three clear negative constraints ('Do not use for non-India routes, booking/payment requests, or dates beyond 60 days'). This effectively tells an agent when NOT to invoke this tool, even though it doesn't name alternative tools.

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