Skip to main content
Glama

Reimport Apple Health Export from Watch Folder

apple_health_reimport
Idempotent

Re-scan the watch folder for a newer Apple Health export and promote it, clearing the snapshot and incremental caches so subsequent summaries reflect the new data. Optionally run a dry-run with check_only.

Instructions

Re-scan the configured watch folder (APPLE_HEALTH_WATCH_PATH or setup --watch-path <dir>) for a newer Apple Health export. If a newer export.xml/export.zip/apple_health_export directory is found, it is promoted to the active export, the in-memory snapshot cache and incremental cache are cleared, and subsequent summaries reflect the new data. With check_only=true, only report what would happen without promoting. This is the cross-platform recurring-refresh path — the native HealthKit bridge needs macOS and is separate.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNoWhen true, re-promote the newest export in the folder even if it already matches the active export (forces a cache refresh).
check_onlyNoWhen true, report the watch-folder status without promoting a new export.
response_formatNomarkdown
Behavior4/5

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

Annotations already indicate not read-only and not destructive. Description adds details on cache clearing and promotion behavior, which is useful beyond annotations.

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?

Three concise sentences, no wasted words, front-loaded with main action.

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?

No output schema, so description should hint at return format, but it only says 'report what would happen' for check_only. Lacks specifics on output structure.

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

Parameters4/5

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

Schema covers 2 of 3 params with descriptions; description adds meaning to force and check_only. Response_format is self-explanatory via enum. No additional description needed.

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?

Clearly states it re-scans watch folder for newer Apple Health export, promotes it, clears caches. Distinguishes from sibling by noting cross-platform vs native HealthKit bridge.

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?

Explains when to use (re-scan for newer export) and mentions check_only for dry-run. Also distinguishes from native bridge. Could be more explicit about when not to use.

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/davidmosiah/apple-health-mcp'

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