Skip to main content
Glama
PhilipAD

Health Export AI

by PhilipAD

get_health_metrics

Retrieve values for a specific Apple Health metric or all metrics over a date range, with average, sum, min, max, or latest aggregation. Supports daily to yearly granularity.

Instructions

Get values for a metric (or all metrics) over an optional date range, with an aggregate (avg/sum/min/max/latest). The core data-retrieval tool. Every result carries a coverage block giving the metric's real firstDate/lastDate/days — check it before trusting a long window, and note that aggregate is always computed over the full range even when points are rolled up.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endNoYYYY-MM-DD
limitNoMaximum data points to return (default 365, max 3000). The server rolls up rather than truncating.
startNoYYYY-MM-DD
metricNoMetric name, e.g. step_count, heart_rate, sleep_analysis. Omit for all.
aggregationNo
granularityNoRoll daily values up before returning them. 'auto' (default) picks the finest granularity that fits the response budget, so a multi-year range returns monthly points instead of thousands of daily ones.
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses that results include a coverage block, that aggregate is always computed over the full range even when points are rolled up, and that the server rolls up rather than truncates. These are meaningful behavioral traits beyond simple 'read' semantics.

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?

Three sentences total, each earning its place: the first gives purpose, the second establishes core status, the third provides critical caveats. It is dense but not overly verbose, though slightly less concise than a two-sentence ideal.

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

Completeness4/5

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

Though no output schema is present, the description explains key return elements (coverage block, aggregate behavior) and rollup semantics, which is substantial. For a retrieval tool with well-described parameters, this is largely sufficient, though a bit more on response shape would be ideal.

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

Parameters3/5

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

Schema coverage is 83% with detailed descriptions for most parameters. The description adds overall context (optional date range, aggregation) but does not detail each parameter beyond the schema. Baseline 3 is appropriate since the schema does the primary work.

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

Purpose5/5

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

The description uses a specific verb 'Get' with a clear resource ('metric') and scope (optional date range, aggregation). It positions itself as 'The core data-retrieval tool,' distinguishing it from siblings like get_trends and compare_periods.

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

Usage Guidelines4/5

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

The description provides clear context as the 'core data-retrieval tool' and warns about checking coverage before trusting long windows, implying when to be cautious. However, it does not explicitly name alternative tools or state when to use them instead.

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

Install Server

Other Tools

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/PhilipAD/health-export-mcp'

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