How to Build Lab Panel Analysis Tools with Copilot

Build lab panel analysis features with Copilot and ToolRouter.

Tool
Lab Results icon
Lab Results

Copilot uses lab panel analysis to help you build health summary features, abnormality detection logic, and clinical triage tools. The analyze_panel skill returns structured output that maps directly to dashboard components and alert logic.

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 Lab Results tool:

  1. In Copilot Chat: "Analyse a sample lipid panel using lab-results"
  2. Copilot returns structured analysis with flagged abnormalities
  3. Ask: "Generate a TypeScript interface for the panel analysis response"
  4. Request: "Write a function that extracts all flagged values and assigns a severity level"

Example Prompt

Try this with Copilot using the Lab Results tool
Analyse a standard metabolic panel using lab-results and return as JSON with markers grouped by body system, flag status for each value, and an overall summary.

Tips

  • Build severity classification from flag status and deviation magnitude for alert prioritisation
  • Use the body system grouping to power tabbed navigation in your health dashboard
  • Combine panel analysis with trend data to detect gradual deterioration across multiple test dates