get_train_messages
Retrieve current Swedish railway disruption messages, including track work, faults, affected stations and sections, optionally filtered by county, to answer questions about rail traffic issues.
Instructions
Get current railway traffic messages from Trafikverket: track work, technical faults and other disruptions, with event type, header, description, start/expected end time, and the affected stations/sections. Optionally filter by county. Use this for "is there a disruption on the railway" questions; use get_train_announcements for per-train timetable and delay data. Returns an error result (isError: true) if TRAFIKVERKET_API_KEY is missing/invalid or the Trafikverket API is unreachable. Coverage: Sweden only (Trafikverket data).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of messages to return (1-100) | |
| county | No | Optional county filter: Swedish county name (e.g. "Skåne", "Västra Götaland") or county code (e.g. 14) | |
| activeOnly | No | Only include messages that have not ended yet (default true) |