Skip to main content
Glama

apple_health_workouts

Retrieve Apple Health workout session data for a specific date to analyze fitness activities and performance metrics from local iCloud storage.

Instructions

Get workout sessions for a date

Input Schema

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

Implementation Reference

  • Registration and handler implementation for the apple_health_workouts tool.
    server.registerTool("apple_health_workouts", {
      title: "Workouts",
      description: "Get workout sessions for a date",
      inputSchema: z.object({ date: optDate }),
    }, async ({ date }) => {
      const d = date ?? today();
      const workouts = parseWorkouts(d);
      return text({ date: d, count: workouts.length, 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