How to Compare Countries with Copilot
Country comparison in your IDE with Copilot and ToolRouter. Metrics comparison for developers.
ToolCountry DataCopilot generates structured country comparison data for your applications. Pull metrics for any set of countries, output formatted JSON or Markdown tables, and create the comparison logic and visualization components your market analysis tool or dashboard needs -- building with real data from the start.
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 Country Data tool:
- In Copilot Chat: "Compare Brazil and Mexico using country-data"
- Copilot returns the comparison data
- Ask: "Format this as a comparison table in Markdown"
- Use the formatted output in documentation or reports
Example Prompt
Try this with Copilot using the Country Data tool
Compare the BRICS nations across GDP, population, and area. Output as JSON.
Tips
- Use country comparisons to populate data visualizations
- Copilot can format the data for charts or dashboards
- Automate periodic country comparisons for monitoring reports