---
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/country-data/use-cases/compare-countries-by-metrics/copilot
---
# How to Compare Countries with Copilot

Copilot 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.

## Setup

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

## Steps

1. Add ToolRouter to Copilot MCP config
2. In Copilot Chat: "Compare Brazil and Mexico using country-data"
3. Copilot returns the comparison data
4. Ask: "Format this as a comparison table in Markdown"
5. Use the formatted output in documentation or reports

## Example Prompt

```
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
