How to Use Celestial Event Data with Copilot
Integrate celestial events and eclipse forecasts into apps with Copilot and ToolRouter.
ToolNight SkyCopilot provides structured celestial event data for building astronomy calendar applications, event reminder systems, and travel planning tools centred on the night sky. The event data includes timing, visibility zones, and event-type classification needed for filtering and display.
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 Night Sky tool:
- In Copilot Chat: "Get upcoming celestial events and eclipse forecast using night-sky"
- Copilot returns structured events with dates, types, and visibility data
- Ask: "Generate a TypeScript interface for the celestial event response"
- Request: "Write a function that filters events visible from a given latitude/longitude"
Example Prompt
Try this with Copilot using the Night Sky tool
Fetch the upcoming celestial events and eclipse forecast for the next 12 months and return as JSON with event type, date, peak time, and visibility regions.
Tips
- Build event type filters (eclipse / meteor shower / conjunction / comet) for UI category tabs
- Use visibility zone data to personalise event recommendations based on user location
- Store events in a calendar data structure to power date-picker integrations