How to Search Recipes by Dietary Restrictions with Copilot
Diet-restricted recipes in your IDE with Copilot and ToolRouter. Recipe filtering for developers.
ToolRecipe FinderCopilot returns diet-filtered recipe results as structured data with dietary tags attached. Build smart filtering features for recipe applications, generate diet-specific recipe collections, and create recommendation systems that handle multiple simultaneous dietary constraints programmatically.
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: "Search for vegan recipes using recipe-finder"
- Copilot returns matching recipes
- Ask: "Return these as JSON with dietary tags for my recipe app"
- Use the structured data in your application
Example Prompt
Try this with Copilot using the Recipe Finder tool
Find gluten-free breakfast recipes and return them as JSON with ingredients, prep time, and dietary tags.
Tips
- Build dietary filtering features using the recipe search API
- Generate diet-specific recipe collections for your app
- Use dietary tags to create smart recommendation systems