Skip to main content
Glama
r-huijts

NS Travel Information MCP Server

by r-huijts

get_prices

Retrieve domestic train fare details for specified routes, including travel classes, ticket types, and applicable discounts.

Instructions

Get price information for domestic train journeys, including different travel classes, ticket types, and discounts. Returns detailed pricing information with conditions and validity.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fromStationYesUicCode or station code of the origin station
toStationYesUicCode or station code of the destination station
travelClassNoTravel class to return the price for
travelTypeNoReturn the price for a single or return tripsingle
isJointJourneyNoSet to true to return the price including joint journey discount
adultsNoNumber of adults to return the price for
childrenNoNumber of children to return the price for
routeIdNoSpecific identifier for the route to take between the two stations. This routeId is returned in the /api/v3/trips call.
plannedDepartureTimeNoFormat - date-time (as date-time in RFC3339). Used to find the correct route if multiple routes are possible.
plannedArrivalTimeNoFormat - date-time (as date-time in RFC3339). Used to find the correct route if multiple routes are possible.

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/r-huijts/ns-mcp-server'

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