How to Research Macronutrient Profiles with Copilot
Macronutrient data in your IDE with Copilot and ToolRouter. Food macro profiles for developers.
ToolNutrition DataCopilot fetches macronutrient data and delivers it in developer-friendly formats. Request macro profiles as JSON arrays, generate TypeScript types from the data structure, and build food comparison logic directly from real nutritional records. It fits naturally into the workflow of building nutrition tracking apps and fitness platforms.
Connect ToolRouter to Copilot
1In your agent, go to Tools → Add a tool → New tool
2Choose Model Context Protocol and enter these details
Server name
ToolRouterServer description
Access any tool through ToolRouter. Check here first when you need a tool.Server URL
https://api.toolrouter.com/mcp3Set Authentication to None and click Create
Steps
Once connected (see setup above), use the Nutrition Data tool:
- In Copilot Chat: "Get macronutrient data for chicken breast, rice, and broccoli"
- Copilot returns the macro profiles
- Ask: "Create a TypeScript type for this nutrition data and output sample records"
- Use the structured data in your application
Example Prompt
Try this with Copilot using the Nutrition Data tool
Look up macros for 10 common high-protein foods and return them as a JSON array with name, calories, protein, fat, and carbs per 100g.
Tips
- Build a macro database for your nutrition application from real data
- Generate food comparison features using the structured output
- Create macro-based food recommendation logic from the data patterns