MCP server for Netherlands NS trains - route planning and pricing
Three tools with reasonably clear naming and documented descriptions, but significant gaps in schema completeness, parameter descriptions, and error handling. All tools are READ_ONLY and follow basic naming conventions (verb_noun). Descriptions are adequate (100-200 chars range) and explain the purpose, but output schemas are not formally documented in the tool definitions. Parameter descriptions exist but lack detail on constraints, ranges, and format requirements. Error handling is minimal, no recovery guidance, no categorization of error types, and no examples of what happens on common failure modes.
Get upcoming train departures from a specific station. Use this tool to check what trains are leaving from a station at a given time. Useful for real-time travel information.
Search for train stations by name or filter by country. Use this tool to find station codes needed for trip planning.
Search for train trips between two stations with pricing information. This is the main tool for route planning. It returns trip options with detailed information about connections, travel times, and prices.
Output schemas not documented. Tool definitions lack explicit documentation of what fields and types are returned. LLMs cannot infer the structure of results or plan downstream calls based on returned data.
Parameter descriptions lack actionable constraints. 'query' in search_stations says 'minimum 2 characters' but does not enforce or validate; 'travel_class' lists values ('first', 'second') as free text instead of an enum; 'discount' similarly lacks enum declaration. LLMs cannot reliably predict valid inputs.
No error handling guidance. Tools do not document what errors can occur, whether they are retryable, or how the LLM should respond. For example, search_trips could fail if origin/destination stations don't exist, but no recovery hint is provided.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 55 | <=2025-11-25 | v2 |
| 2026-03-09 | F | 48 | - | v1 |
Parameter relationships not documented. search_trips has 'search_for_arrival' boolean that changes the interpretation of 'date_time', but this dependency is not explicitly stated in the parameter descriptions. LLMs may miss this interaction.
Pagination and result limits unclear. search_stations accepts 'limit' but does not document whether results are sorted, whether pagination is supported, or what happens if limit exceeds 100. search_trips returns 'num_trips' options but no indication of whether results can be paginated or sorted.