Skip to main content
Glama
PhilipAD

Health Export AI

by PhilipAD

get_structured_export

Export selected Apple Health metrics as clean structured JSON for any date range, with pagination to handle large datasets. Specify metrics and dates to get exactly the data you need.

Instructions

Return clean structured JSON for the chosen metrics/date range. Paginated: the result carries nextCursor when more metrics remain — pass it back as cursor for the next page. Prefer naming the metrics you need and a date range; calling it bare over a full history is a lot of data.

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
cursorNoOpaque cursor from a previous call's nextCursor.
metricsNo
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 provided, the description carries the full burden. It discloses pagination behavior: 'the result carries `nextCursor` when more metrics remain — pass it back as `cursor` for the next page,' and warns about data volume: 'calling it bare over a full history is a lot of data.' These are valuable behavioral insights beyond the schema. Missing details like auth/rate limits, but still strong for a read-like export tool.

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

Conciseness5/5

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

The description is compact and front-loaded: it opens with the core purpose, follows with pagination behavior, and ends with a usage tip. Every sentence adds distinct value with no redundancy or unnecessary detail.

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?

For a tool with 6 parameters, no annotations, and no output schema, the description covers purpose, pagination, and usage but does not describe the shape of the returned JSON beyond 'clean structured JSON.' Since there is no output schema, the description should ideally clarify the return structure, but the pagination and metric/date range guidance make it reasonably usable. It is minimally complete but has a clear gap in return format details.

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 description coverage is 83%, so the schema already explains most parameters (start/end format, limit roll-up, granularity auto behavior, cursor). The description adds little new parameter semantics—it reiterates cursor usage and encourages specifying metrics/date range. According to the baseline rule for high schema coverage, a score of 3 is appropriate.

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 clearly states the verb and resource: 'Return clean structured JSON for the chosen metrics/date range.' It is specific, but does not explicitly differentiate from sibling tools like get_trends or query_health_data, though the pagination and raw data focus imply an export tool. Thus it is clear but lacks explicit sibling distinction.

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?

Provides concrete usage guidance: 'Prefer naming the metrics you need and a date range; calling it bare over a full history is a lot of data.' This tells the agent when to call it (with metrics/date range) and warns against bare calls, offering clear context. However, it does not mention when this tool should be used over alternatives or exclusions, so it stops short of the highest rating.

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