---
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/nutrition-data/use-cases/lookup-food-nutrition/copilot
---
# How to Look Up Food Nutrition with Copilot

Copilot brings nutrition data directly into your development workflow. Look up food facts without leaving your editor, get results formatted as JSON or TypeScript interfaces ready for your health app, and seed databases with accurate nutritional records. It bridges the gap between raw API data and production-ready code.

## Setup

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

## Steps

1. Add ToolRouter to Copilot MCP config
2. In Copilot Chat: "Look up nutrition facts for oatmeal using nutrition-data"
3. Copilot returns the nutritional breakdown
4. Ask: "Format this as a JSON object for my nutrition tracking app"
5. Integrate the data into your application

## Example Prompt

```
Search for "sweet potato" nutrition data and return it as JSON. I need it for my food tracking app database.
```

## Tips

- Great for seeding nutrition databases in health and fitness applications
- Generate TypeScript interfaces from the nutrition data structure
- Use the API to validate user-submitted nutrition data in your app
