---
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/sunrise-sunset/use-cases/optimize-solar-energy/copilot
---
# How to Optimize Solar Energy with Copilot

Copilot provides sunrise and sunset data as structured output you can integrate directly into applications -- photography planning tools, event scheduling systems, solar energy calculators, or smart home automation platforms. Get precise astronomical times for any coordinates and date returned as typed JSON, ready to drop into your codebase. Build features that automatically adjust to seasonal daylight changes without hardcoding sunrise tables.

## Setup

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

## Steps

1. Add ToolRouter to Copilot MCP config
2. In Copilot Chat: "Get sunrise/sunset for coordinates across 12 months"
3. Copilot returns structured seasonal data
4. Build solar production models from the results

## Example Prompt

```
Get monthly sunrise and sunset data for 33.4484,-112.0740 as JSON for a solar production calculator.
```

## Tips

- Build seasonal production forecasts from the daylight data
- Use solar noon for peak production hour calculations
- Combine with weather data for more accurate energy estimates
