---
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/build-nutrition-labels/copilot
---
# How to Build Nutrition Labels with Copilot

Copilot generates nutrition label data as structured objects ready for rendering in your application. Get aggregated totals as JSON, create React or Vue components that render FDA-style labels, and build recipe-to-label pipelines that dynamically calculate nutrition when users submit their own recipes. The data flows straight from the API into your code.

## Setup

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

## Steps

1. Add ToolRouter to Copilot MCP config
2. In Copilot Chat: "Calculate nutrition totals for this recipe: 300g pasta, 200g sauce, 100g cheese"
3. Copilot looks up each ingredient and returns aggregated totals
4. Ask: "Generate a React component that renders this as a nutrition label"
5. Integrate the nutrition label component into your application

## Example Prompt

```
Look up nutrition for these ingredients and return an aggregated nutrition facts JSON: 200g flour, 50g sugar, 100g butter, 2 eggs. For 12 servings.
```

## Tips

- Generate nutrition label components from the structured data
- Build recipe-to-label pipelines for food applications
- Use the API to dynamically calculate labels when users submit recipes
