How to Search Recipes by Nutritional Goals with Copilot
Nutrition-targeted recipes in your IDE with Copilot and ToolRouter. Diet-aligned meals for developers.
ToolRecipe FinderCopilot retrieves nutrition-filtered recipes with full macro data as structured objects. Build personalized recipe recommendation engines for fitness apps, generate meal plan APIs that filter by nutritional constraints, and create nutrition-goal-based search features directly from the structured output.
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 Recipe Finder tool:
- In Copilot Chat: "Find high-protein recipes using recipe-finder"
- Copilot returns matching recipes
- Ask: "Return these as JSON with full macro data for my nutrition app"
- Use the data in your health and fitness application
Example Prompt
Try this with Copilot using the Recipe Finder tool
Search for recipes with 30g+ protein and under 500 calories. Return as JSON with full nutritional breakdown.
Tips
- Build nutrition-filtered recipe search into your fitness app
- Generate meal plan suggestions based on nutritional goals programmatically
- Use the API to create personalized recipe recommendations