Skip to main content
Glama

apple_health_daily

Retrieve daily Apple Health metrics including steps, heart rate, sleep stages, workouts, and body composition from local iCloud storage for health analysis.

Instructions

Get Apple Health daily summary: steps, energy, HR, HRV, sleep stages, body comp, workouts

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateNoYYYY-MM-DD, defaults to today

Implementation Reference

  • Tool registration and handler implementation for apple_health_daily in src/mcp.ts.
    server.registerTool("apple_health_daily", {
      title: "Daily Summary",
      description: "Get Apple Health daily summary: steps, energy, HR, HRV, sleep stages, body comp, workouts",
      inputSchema: z.object({ date: optDate }),
    }, async ({ date }) => {
      const d = date ?? today();
      const metrics = parseMetrics(d);
      if (!metrics) return text({ error: `No health data found for ${d}`, path: METRICS_DIR });
      const workouts = parseWorkouts(d);
      return text(formatDailySummary(d, metrics, workouts));
    });

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/daveremy/apple-health-mcp'

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