How to Use the Exercise Database in Development with Copilot

Access the exercise database in your IDE with Copilot and ToolRouter.

Tool
Workout Planner icon
Workout Planner

Copilot provides structured exercise search and lookup directly in your IDE for building fitness apps that need searchable exercise libraries, personalised movement recommendations, and instructional content. The consistent data schema makes it straightforward to build search and filter features.

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 Workout Planner tool:

  1. In Copilot Chat: "Search exercises for push-up variations using workout-planner"
  2. Copilot returns structured exercise data
  3. Ask: "Write a search function that queries exercises by keyword and filters by equipment"
  4. Request: "Generate a TypeScript interface for the exercise search response"

Example Prompt

Try this with Copilot using the Workout Planner tool
Search for deadlift variations using workout-planner and return as JSON with name, description, target muscles, secondary muscles, and required equipment for each.

Tips

  • Build a keyword search index from the exercise name and description fields
  • Use the secondary muscles field to build "also works" tags in your exercise UI
  • Cache the browse response for each body part — exercise data is stable over time