How to Use Solar Estimates in Development with Copilot
Integrate solar energy estimates into your application with Copilot and ToolRouter.
ToolEnergy DataCopilot makes solar generation data available in your IDE for building property energy calculators, solar comparison tools, and sustainability reporting features. The structured output gives you monthly generation arrays ready for chart components and financial modelling functions.
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 Energy Data tool:
- In Copilot Chat: "Estimate solar generation for a 4kWp south-facing system at postcode SW1A 1AA using energy-data"
- Copilot returns structured monthly generation data
- Ask: "Write a function that calculates annual savings from this generation profile"
- Request: "Generate a TypeScript interface for the solar estimate response"
Example Prompt
Try this with Copilot using the Energy Data tool
Get solar generation estimates for a 5kWp system at postcode M1 2AN and return as JSON with monthly kWh values and an annual total.
Tips
- Build a savings calculator function that accepts a tariff rate and generation profile
- Cache estimates by postcode and capacity — irradiance data changes slowly
- Combine with electricity price data to calculate real-time savings based on current tariffs