Skip to main content
Glama
belgrano9

SNCF MCP Server

by belgrano9

search_trains

Search train journeys between two stations, with optional departure datetime and pagination to browse all available connections.

Instructions

Search for train journeys between two stations with pagination.

Args: origin: Starting station name (e.g., "Paris Est", "Lyon") destination: Destination station name (e.g., "München Hbf", "Barcelona") departure_datetime: Optional datetime. Accepts flexible formats: - ISO: "2025-11-28 08:00" (RECOMMENDED) - European: "28/11/2025 08:00" - Written: "November 28, 2025 8:00am" If not provided, searches from current time. page: Page number for pagination (default: 1). Shows 10 results per page. Request different pages to see more trains (e.g., page=2, page=3).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNo
originYes
destinationYes
departure_datetimeNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

With no annotations, the description carries full burden. It discloses default behavior for missing departure_datetime (searches from current time), pagination default of 10 results per page, and the need to request different pages. It also explains flexible date formats, offering rich behavioral context.

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?

The description is well-structured as a docstring with a one-line summary followed by per-parameter explanations. Each entry is concise yet informative, with no wasted words.

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?

The description covers all four parameters, explains default behaviors, and provides usage context. Since an output schema exists, return values need not be described. This is complete for a tool of this complexity.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must explain each parameter. It does so thoroughly: origin and destination include examples, departure_datetime lists multiple accepted formats and default behavior, and page explains the default and result count. This adds substantial meaning beyond the bare schema.

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 opens with 'Search for train journeys between two stations with pagination,' clearly identifying the action (search), resource (train journeys), and key behavior (pagination). This distinguishes it from sibling tools like find_station and get_train_prices.

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 a clear context for when to use the tool—searching train journeys between two stations—but does not explicitly state when-not-to-use it or mention alternative tools. This matches 'clear context, no exclusions'.

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/belgrano9/sncf_mcp_server'

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