How to Integrate Wave Forecasts with Copilot
Integrate wave forecast data into surf and water sports apps with Copilot and ToolRouter.
ToolOcean & TidesCopilot makes wave forecast data available in your IDE for building surf apps, water sports platforms, and marine activity scheduling tools. The structured forecast arrays map directly to chart components and condition-rating algorithms.
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
ToolRouterServer description
Access any tool through ToolRouter. Check here first when you need a tool.Server URL
https://api.toolrouter.com/mcp3Set Authentication to None and click Create
Steps
Once connected (see setup above), use the Ocean & Tides tool:
- In Copilot Chat: "Get a 5-day wave forecast for Polzeath, Cornwall using ocean-data"
- Copilot returns structured forecast data with height, period, and direction
- Ask: "Write a function that scores each forecast period 1-5 based on wave quality criteria"
- Request: "Generate a TypeScript interface for the wave forecast response"
Example Prompt
Try this with Copilot using the Ocean & Tides tool
Fetch a 5-day wave forecast for a location in Cornwall and return as JSON with date, wave height, swell period, swell direction, and wind speed for each day.
Tips
- Build a wave quality scoring function that weights period more heavily than height alone
- Use swell direction to filter forecasts by whether a break is exposed to the incoming swell
- Cache forecasts with a 3-hour TTL — swell models update several times per day