NS Travel Information MCP Server

get_prices

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

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

Input Schema (JSON Schema)

{ "properties": { "adults": { "default": 1, "description": "Number of adults to return the price for", "minimum": 1, "type": "integer" }, "children": { "default": 0, "description": "Number of children to return the price for", "minimum": 0, "type": "integer" }, "fromStation": { "description": "UicCode or station code of the origin station", "type": "string" }, "isJointJourney": { "default": false, "description": "Set to true to return the price including joint journey discount", "type": "boolean" }, "plannedArrivalTime": { "description": "Format - date-time (as date-time in RFC3339). Used to find the correct route if multiple routes are possible.", "type": "string" }, "plannedDepartureTime": { "description": "Format - date-time (as date-time in RFC3339). Used to find the correct route if multiple routes are possible.", "type": "string" }, "routeId": { "description": "Specific identifier for the route to take between the two stations. This routeId is returned in the /api/v3/trips call.", "type": "string" }, "toStation": { "description": "UicCode or station code of the destination station", "type": "string" }, "travelClass": { "description": "Travel class to return the price for", "enum": [ "FIRST_CLASS", "SECOND_CLASS" ], "type": "string" }, "travelType": { "default": "single", "description": "Return the price for a single or return trip", "enum": [ "single", "return" ], "type": "string" } }, "required": [ "fromStation", "toStation" ], "type": "object" }