Skip to main content
Glama
willc121

Garmin Health MCP Server

by willc121

get_health_summary

Retrieve a comprehensive overview of your Garmin health metrics including VO2 max, activities, sleep data, and race predictions to monitor fitness progress.

Instructions

Get an overview of all health data including VO2 max, activities, sleep, and race predictions

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The primary handler function for the 'get_health_summary' tool, aggregating data from VO2 max, activities, sleep, race predictions, and heart rate zones.
    async function getHealthSummary() { const [vo2, activities, sleep, races, zones] = await Promise.all([ getVO2Max(), getActivities(), getSleep(), getRacePredictions(), getHeartRateZones(), ]); return { vo2_max: { current: vo2.summary.latest?.vo2_max_value ?? null, peak: vo2.summary.max, readings: vo2.summary.count, }, activities: { total: activities.total_activities, top_activity: activities.breakdown[0]?.activity_type ?? null, date_range: activities.date_range, }, sleep: { nights_tracked: sleep.total_nights, average_hours: sleep.average_duration_hours, }, race_predictions: races.predictions, max_hr: (zones as any).max_hr || null, }; }
  • Schema definition for the tool in the ListTools response, including name, description, and empty input schema.
    { name: "get_health_summary", description: "Get an overview of all health data including VO2 max, activities, sleep, and race predictions", inputSchema: { type: "object", properties: {} }, },
  • src/index.ts:405-406 (registration)
    Tool registration in the switch statement of the CallToolRequestSchema handler, dispatching calls to the getHealthSummary function.
    case "get_health_summary": result = await getHealthSummary();

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/willc121/garmin-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server