How to Plan a UK Rail Journey with Copilot

Plan a UK Rail Journey with Copilot and ToolRouter. Return structured journey plan data for travel apps and scheduling tools.

Tool
Train Tracker icon
Train Tracker

Use Copilot with Train Tracker to pull journey plan and line status data and return it as typed JSON for a travel application, event scheduling tool, or conference management system. Copilot is best when the journey data needs to be schema-matched and integrated into an existing workflow.

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. Specify the origin, destination, and departure window.
  2. Ask Copilot to run `journey_plan` and `line_status` via `train-tracker`.
  3. Have Copilot return the journey options as typed JSON matching your application schema.
  4. Use the output to populate a trip planning UI or conference attendee travel guide.

Example Prompt

Try this with Copilot using the Train Tracker tool
Use train-tracker to plan a journey from Bristol Temple Meads to Edinburgh Waverley departing between 1pm-3pm. Return JSON: {journeys: Array<{total_duration_mins: number, legs: Array<{origin, destination, departure, arrival, operator, train_id}>, changes: number, line_status: string}>}.

Tips

  • Include `total_duration_mins` as a number so your UI can sort journeys by speed.
  • Return `changes` as a count so users can filter to direct services in your UI.
  • Include `line_status` at the journey level so disruption warnings surface without a separate API call.