How to Search Recipes by Dietary Restrictions with Copilot

Diet-restricted recipes in your IDE with Copilot and ToolRouter. Recipe filtering for developers.

Tool
Recipe Finder icon
Recipe Finder

Copilot 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
ToolRouter
Server description
Access any tool through ToolRouter. Check here first when you need a tool.
Server URL
https://api.toolrouter.com/mcp
3Set Authentication to None and click Create

Steps

Once connected (see setup above), use the Recipe Finder tool:

  1. In Copilot Chat: "Search for vegan recipes using recipe-finder"
  2. Copilot returns matching recipes
  3. Ask: "Return these as JSON with dietary tags for my recipe app"
  4. 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