Skip to content

Strength training data is not returned #37

@bartmichalak

Description

@bartmichalak

Describe the bug
When I asked "when was the last time I went to the gym," I received the following response:

I don't see any specific gym workout data in your Apple Health records that I've accessed so far. The data I've been looking at primarily contains sleep, cycling, and walking/running activities, but doesn't show specific gym or workout session records.
(...)

I checked export.xml to see if such data was indeed missing and found it there. Here's an example:

 <Workout workoutActivityType="HKWorkoutActivityTypeTraditionalStrengthTraining" duration="46.24714258313179" durationUnit="min" sourceName="Apple Watch (Bartosz)" sourceVersion="8.8.1" device="&lt;&lt;HKDevice: 0x77568cf60&gt;, name:Apple Watch, manufacturer:Apple Inc., model:Watch, hardware:Watch3,3, software:8.8.1, creation date:2023-06-27 01:23:42 +0000&gt;" creationDate="2023-10-24 08:05:07 +0200" startDate="2023-10-24 07:18:48 +0200" endDate="2023-10-24 08:05:03 +0200">
  <MetadataEntry key="HKIndoorWorkout" value="0"/>
  <MetadataEntry key="HKAverageMETs" value="5.3807 kcal/hr·kg"/>
  <MetadataEntry key="HKWeatherTemperature" value="48.2 degF"/>
  <MetadataEntry key="HKWeatherHumidity" value="9300 %"/>
  <MetadataEntry key="HKTimeZone" value="Europe/Warsaw"/>
  <WorkoutStatistics type="HKQuantityTypeIdentifierActiveEnergyBurned" startDate="2023-10-24 07:18:48 +0200" endDate="2023-10-24 08:05:03 +0200" sum="274.525" unit="kcal"/>
  <WorkoutStatistics type="HKQuantityTypeIdentifierBasalEnergyBurned" startDate="2023-10-24 07:18:48 +0200" endDate="2023-10-24 08:05:03 +0200" sum="65.3557" unit="kcal"/>
  <MetadataEntry key="HKIndoorWorkout" value="0"/>
  <MetadataEntry key="HKAverageMETs" value="5.3807 kcal/hr·kg"/>
  <MetadataEntry key="HKWeatherTemperature" value="48.2 degF"/>
  <MetadataEntry key="HKWeatherHumidity" value="9300 %"/>
  <MetadataEntry key="HKTimeZone" value="Europe/Warsaw"/>
 </Workout>

When I pointed out to Claude that he was specifically referring to the "HKWorkoutActivityTypeTraditionalStrengthTraining" type, he also found no entries:

{
  `params`: {
    `limit`: 100,
    `date_to`: `2025-09-23T23:59:59+00:00`,
    `date_from`: `2025-01-01T00:00:00+00:00`,
    `record_type`: `HKWorkoutTypeIdentifierTraditionalStrengthTraining`
  }
}

When I looked at the comment I added and the list of types returned to me, I indeed don't see type HKWorkoutTypeIdentifierTraditionalStrengthTraining there, even though I've logged this activity multiple times on Apple Watch (my export.xml seems to contain 58 such records).

To Reproduce
Just ask about Traditional Strength Training activity on any set containing this data.

Expected result
Data should be returned.

Environment (please complete the following information):

  • OS: MacOS
  • Agent/LLM Claude Desktop (Sonnet 4)
  • Execution method [docker]
  • Python version -

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions