---
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/research-population-stats/copilot
---
# How to Research Population Stats with Copilot

Copilot retrieves population data and generates structured outputs your applications need. Pull statistics for country groups, output sorted JSON arrays for charts and visualizations, and create market sizing calculations and demographic lookup functions your business logic depends on.

## Setup

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

## Steps

1. Add ToolRouter to Copilot MCP config
2. In Copilot Chat: "Get population data for all G20 countries"
3. Copilot returns population statistics
4. Ask: "Sort by population density and return as JSON"
5. Use structured data in your application

## Example Prompt

```
Get population stats for all EU countries. Return as a JSON array sorted by population.
```

## Tips

- Use population data to calculate market sizes in your business logic
- Copilot can format data for charts and visualizations
- Automate population data fetching for reporting dashboards
