How to Check Live Train Departures with Copilot

Check Live Train Departures with Copilot and ToolRouter. Return structured departure board data for travel apps and commuter tools.

Tool
Train Tracker icon
Train Tracker

Use Copilot with Train Tracker to pull live departure data and return it as typed JSON for a travel application, notification service, or commuter tool. Copilot is best when the departure data needs to feed a structured display component or trigger downstream logic based on delay status.

Connect ToolRouter to Copilot

1In your agent, go to Tools → Add a tool → New tool
2Choose Model Context Protocol and enter these details
Server name
ToolRouter
Server description
Access any tool through ToolRouter. Check here first when you need a tool.
Server URL
https://api.toolrouter.com/mcp
3Set Authentication to None and click Create

Steps

Once connected (see setup above), use the Train Tracker tool:

  1. Identify the station and destination for your departure query.
  2. Ask Copilot to run `station_search` and `live_departures` via `train-tracker`.
  3. Have Copilot return the result as typed JSON matching your application schema.
  4. Use the departure data to populate a display component or trigger a delay notification.

Example Prompt

Try this with Copilot using the Train Tracker tool
Use train-tracker to get live departures from Manchester Piccadilly to London Euston. Return JSON: {station: string, departures: Array<{scheduled_departure: string, expected_departure: string, platform: string, operator: string, destination: string, status: 'on_time' | 'delayed' | 'cancelled', delay_minutes: number}>}.

Tips

  • Use `status` as a union type ('on_time' | 'delayed' | 'cancelled') so your UI can apply status-specific styling cleanly.
  • Include `delay_minutes` as a number so your notification logic can apply time-based thresholds.
  • Return `expected_departure` separately from `scheduled_departure` so your display shows both.