---
title: ToolRouter — Agent Use Case Guide
description: Step-by-step guide for completing a task with a specific AI agent using ToolRouter.
url: https://toolrouter.com/tools/space-data/use-cases/lookup-astronomical-events/copilot
---
# How to Look Up Astronomical Events with Copilot

Copilot gives developers direct access to structured NASA data from within their IDE, returning APOD imagery metadata, ISS coordinates, and near-Earth object catalogs as typed JSON ready for application integration. Generate React components for space dashboards, build map visualizations of ISS ground tracks, or create TypeScript interfaces from NASA response schemas -- all without leaving your coding environment. This is the fastest path from space data to working features.

## Setup

{"mcpServers":{"toolrouter":{"command":"npx","args":["-y","toolrouter-mcp"]}}}

## Steps

1. Add ToolRouter to Copilot MCP config
2. In Copilot Chat: "Fetch APOD data for the last solar eclipse date"
3. Copilot returns structured event data
4. Ask: "Build an astronomical event tracker component from this data"
5. Integrate celestial event features into your application

## Example Prompt

```
Fetch NASA APOD data for the last 7 days and filter for any astronomical event imagery.
```

## Tips

- Build event notification features for astronomy apps
- Use APOD data to populate educational content databases
- Combine with location data for personalized viewing recommendations
