search_stations
Find train station codes and locations by name or country filter to support trip planning with the NS Railways API.
Instructions
Search for train stations by name or filter by country.
Use this tool to find station codes needed for trip planning.
Args: query: Search query for station name (minimum 2 characters). Leave empty to list all stations. country_codes: Comma-separated country codes to filter (e.g., "nl,de,be"). Common codes: nl (Netherlands), de (Germany), be (Belgium) limit: Maximum number of results to return (default: 10, max: 100)
Returns: A dictionary containing: - stations: List of matching stations with their codes and locations - count: Number of stations returned
Example: search_stations(query="Amsterdam", limit=5) search_stations(country_codes="nl", limit=20)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | ||
| country_codes | No | ||
| limit | No |