---
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/world-economy/use-cases/research-gdp-by-country/copilot
---
# How to Research GDP by Country with Copilot

Copilot retrieves GDP data and helps you build economic visualizations and analysis tools. Fetch figures for any group of countries, generate JSON datasets for choropleth maps or bar charts, and create the data pipeline and rendering code for your economic dashboard -- working 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: "Get GDP data for the G7 countries"
3. Copilot returns the GDP figures
4. Ask: "Format as a JSON dataset for a world map visualization"
5. Use the economic data in your application

## Example Prompt

```
Fetch GDP data for the top 20 economies and output as JSON with country, gdp, gdp_growth, and year fields for a choropleth map.
```

## Tips

- Perfect for building economic data visualizations and dashboards
- Copilot can generate the map rendering code alongside the data
- Use GDP data to build country risk scoring algorithms
