Skip to main content
Glama

A Good Sign: Apple Health MCP

Get Activity Details

get_activity_details
Read-only

Summarize one authenticated user activity window with matching workouts, complete active-energy totals, heart-rate stats, and optional heart-rate zone sample counts. When available, workoutSummary also reports estimated time in zones, covered versus missing sensor time, longest continuous Zone 5 effort and a compact zone timeline. Time percentages are separate from the original sample percentages.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "startDate": "<startDate>",
      "endDate": "<endDate>"
    },
    "name": "get_activity_details"
  }
}

Input Schema

NameRequiredDescriptionDefault
endDateYes
startDateYes
maxHeartRateNoOptional maximum heart rate in bpm. When provided, the tool reports percent-of-max heart-rate zone sample counts for the activity window.
includeSamplesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare a safe read (readOnlyHint=true, destructiveHint=false, openWorldHint=false), so the safety profile is covered. The description adds real value beyond that by disclosing conditional availability ('when available'), the meaning of covered versus missing sensor time, and the caveat that time percentages differ in basis from the original sample percentages, but it says nothing about empty windows, errors, or how workouts are matched.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the core purpose and followed by output detail, with no filler. The second sentence is dense but each clause (zone time estimate, missing sensor time, Zone 5 effort, zone timeline) carries distinct information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description does a decent job of enumerating return fields, but the 4-parameter schema has an undocumented includeSamples flag and the date-window semantics (inclusivity, timezone) are unstated. For a read tool with no annotations gaps, this is adequate but incomplete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 25%: maxHeartRate is documented in the schema, but includeSamples (a boolean defaulting to false) is described nowhere, and startDate/endDate rely entirely on pattern/format. The description mentions zone sample counts but never ties them to the includeSamples switch, so it does not compensate for the coverage gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: it summarizes one authenticated user's activity window and enumerates the returned content (matching workouts, active-energy totals, heart-rate stats, zone sample counts). This clearly separates it from siblings like get_workouts or get_sleep, though it never names an alternative explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this tool versus get_workouts or query_samples, nor any stated prerequisites beyond the implied date window. The usage is only inferable from the described outputs, which is the bar for a 2 rather than an explicit when/when-not statement.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources