How to Use Beach Condition Data with Copilot

Integrate beach condition data into your application with Copilot and ToolRouter.

Tool
Ocean & Tides icon
Ocean & Tides

Copilot brings structured beach condition data into your development environment for building travel apps, outdoor activity platforms, or local authority information services. The consistent data schema makes it straightforward to build beach finder features with live condition badges.

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 Ocean & Tides tool:

  1. In Copilot Chat: "Get beach conditions at Tenby using ocean-data"
  2. Copilot returns structured condition data with safety and facility fields
  3. Ask: "Generate a TypeScript interface for the beach condition response"
  4. Request: "Write a React component that displays this data as a beach safety card"

Example Prompt

Try this with Copilot using the Ocean & Tides tool
Fetch beach conditions for five beaches along the Yorkshire coast and return as JSON. Include flag status, water quality, and lifeguard hours for each.

Tips

  • Cache conditions with a 1-hour TTL — beach status updates regularly but not continuously
  • Use flag status as a primary filter for "safe to swim" features in your UI
  • Combine with geolocation to surface the nearest beach with green flag status