Current public-transport disruptions (Switzerland)
get_transport_disruptionsRetrieve current and planned Swiss public transport disruptions, including cause, affected lines and stops, and filter results by station, operator, or free text.
Instructions
Current and planned disruptions on Swiss public transport (trains, trams, buses, boats) from opentransportdata.swiss service alerts: title, description, cause/effect, validity periods, affected operators/lines/stops. Filter by free text (text: 'Bauarbeiten'), operator (agency id like '11' for SBB, or name), or station (name or UIC number, e.g. 'Olten' or '8500218'). Requires the server env var OPENTRANSPORTDATA_API_KEY (free key); otherwise returns instructions. Example: {station: 'Luzern', lang: 'de'}.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_transport_disruptions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | en | |
| text | No | Substring in title/description, e.g. 'Streckenunterbruch' | |
| limit | No | ||
| station | No | Station name or 7-digit UIC number | |
| operator | No | GTFS agency id (e.g. '11' = SBB) or operator name | |
| active_only | No | Only disruptions whose validity covers now |