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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:280-307 (handler)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, }; }
- src/index.ts:321-326 (schema)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();