---
title: ToolRouter — Tool Detail
description: Detailed documentation for a ToolRouter tool including skills, parameters, and examples.
url: https://toolrouter.com/tools/nutrition-data
---
# Nutrition Data

Look up nutrition facts for any food or packaged product. Search by name for USDA macro/micronutrient breakdowns, or search international packaged products by brand. Scan a barcode to get ingredients, allergens, nutri-scores, and per-100g nutrition.

- **Version:** 0.03
- **Categories:** data
- **Workflow:** search_foods → get_nutrition → search_products → lookup_barcode

## Skills (4)

### Search Foods (`search_foods`)

Search food databases for foods by name, brand, or keyword. Returns matching foods with basic nutrition info and FDC IDs for detailed lookup.

**Parameters:**

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `query` | string | Yes | Search term like 'chicken breast' or 'coca cola' |
| `page_size` | number | No | Number of results to return (default 10, max 50) |

**Returns:** List of matching foods with FDC IDs, descriptions, brand owners, and key macros (calories, protein, fat, carbs)

**Examples:**

*Search for chicken breast nutrition:*

```json
{
  "query": "chicken breast"
}
```

### Get Nutrition Details (`get_nutrition`)

Get detailed nutrition breakdown for a specific food by its FDC ID. Returns comprehensive macro and micronutrient data including vitamins, minerals, and serving sizes.

**Parameters:**

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `fdc_id` | number | Yes | FoodData Central ID from search results |

**Returns:** Full nutrition breakdown including calories, protein, fats, carbs, fiber, sugars, sodium, cholesterol, vitamins A/C, calcium, iron, and potassium with units

**Examples:**

*Get full nutrition for a food:*

```json
{
  "fdc_id": 534358
}
```

### Search Products (`search_products`)

Search an international database of packaged food products by name or brand. Returns product names, brands, nutri-scores, images, and nutrition per 100g. Best for branded and packaged foods worldwide.

**Parameters:**

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `query` | string | Yes | Search term like 'nutella' or 'oat milk' |
| `page_size` | number | No | Number of results to return (default 10, max 50) |

**Returns:** List of matching products with names, brands, nutri-scores, images, and nutrition per 100g (calories, protein, fat, carbs, fiber, sugars, salt)

**Examples:**

*Search for a popular branded product:*

```json
{
  "query": "nutella"
}
```

*Search for a product category:*

```json
{
  "query": "oat milk"
}
```

### Lookup Barcode (`lookup_barcode`)

Look up a packaged food product by its barcode (EAN/UPC). Returns full product details including name, brand, ingredients, allergens, nutri-score, packaging, and detailed nutrition per 100g and per serving.

**Parameters:**

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `barcode` | string | Yes | Product barcode (EAN-13 or UPC-A), e.g. '3017620422003' |

**Returns:** Full product details including name, brand, ingredients, allergens, nutri-score, packaging, and nutrition breakdown per 100g and per serving

**Examples:**

*Look up Nutella by barcode:*

```json
{
  "barcode": "3017620422003"
}
```

## Quick Start

```bash
# Via CLI
TOOLROUTER_API_KEY=tr_live_xxx npx -y toolrouter-mcp call nutrition-data search_foods --query chicken breast

# Via REST API
curl -H "Authorization: Bearer tr_live_xxx" \
     -d '{"tool":"nutrition-data","skill":"search_foods","input":{"query":"chicken breast"}}' \
     https://api.toolrouter.com/v1/tools/call
```

## Frequently Asked Questions

### Can it look up both foods and packaged products?

Yes. It supports USDA food lookups as well as international packaged products by brand.

### What does barcode lookup add?

Barcode scans return ingredients, allergens, nutri-scores, and per 100g nutrition.

### Does it show micronutrients or just calories?

It includes macro and micronutrient breakdowns.

### Is it useful for grocery or meal-planning apps?

Yes. It is especially useful when you need structured nutrition and allergen data.

---

## Get Started with ToolRouter

**Already connected?** Call any tool with `use_tool({ tool, skill, input })`. Browse tools with `discover` or visit https://toolrouter.com/llms-full.txt

**New to ToolRouter?** Connect with one command (no API key needed — auto-provisions on first use):

```bash
# MCP (Claude Code, Codex CLI)
claude mcp add toolrouter -- npx -y toolrouter-mcp

# MCP (Cursor, Windsurf, Cline, VS Code, Gemini CLI, Claude Desktop)
{"mcpServers":{"toolrouter":{"command":"npx","args":["-y","toolrouter-mcp"]}}}

# Claude Chat / Claude Cowork / Claude Mobile — add as a connector:
# Settings → Connectors → Add custom connector → URL: https://api.toolrouter.com/mcp

# ChatGPT — add as an app:
# Settings → Apps → Advanced settings → enable Developer mode → Create app → MCP Server URL: https://api.toolrouter.com/mcp

# CLI (works instantly, no restart needed)
npx -y toolrouter-mcp tools                    # browse all tools
npx -y toolrouter-mcp search "seo"             # search by keyword
npx -y toolrouter-mcp call seo analyze_page --url https://example.com
```

Free tools work immediately. For paid tools, visit https://toolrouter.com/claim to add credits.

All platforms: https://toolrouter.com/connect | Full catalog: https://toolrouter.com/llms-full.txt | Docs: https://toolrouter.com/docs