get-daily-summary-chart
Fetch combined health metrics chart data from Garmin Connect daily wellness summary for a specified date.
Instructions
Get daily wellness summary chart data (combined health metrics)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | YYYY-MM-DD, defaults to today |
Implementation Reference
- src/tools.ts:371-386 (handler)The main handler for the 'get-daily-summary-chart' tool. It calls the Garmin Connect wellness API endpoint 'wellness-service/wellness/dailySummaryChart/' with an optional date parameter and returns the chart data as JSON.
server.tool( "get-daily-summary-chart", "Get daily wellness summary chart data (combined health metrics)", { date: z.string().optional().describe("YYYY-MM-DD, defaults to today"), }, async ({ date }) => { const client = getClient(); const d = date ?? todayDate(); const data = await client.get( "wellness-service/wellness/dailySummaryChart/", { date: d } ); return jsonResult(data); } ); - src/tools.ts:374-376 (schema)Input schema for the tool: optional 'date' parameter (string, YYYY-MM-DD format, defaults to today).
{ date: z.string().optional().describe("YYYY-MM-DD, defaults to today"), }, - src/tools.ts:371-386 (registration)The tool is registered via server.tool() call inside the registerTools() function exported from src/tools.ts. The registration includes the name 'get-daily-summary-chart', description, schema, and handler.
server.tool( "get-daily-summary-chart", "Get daily wellness summary chart data (combined health metrics)", { date: z.string().optional().describe("YYYY-MM-DD, defaults to today"), }, async ({ date }) => { const client = getClient(); const d = date ?? todayDate(); const data = await client.get( "wellness-service/wellness/dailySummaryChart/", { date: d } ); return jsonResult(data); } ); - src/index.ts:13-14 (registration)The registerTools function is called from index.ts (the entry point) to register all tools including get-daily-summary-chart on the MCP server.
registerTools(server); registerResources(server);