Skip to main content
Glama
Barbaroso

apple-health-semantic-mcp

by Barbaroso

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OSCAR_DATA_DIRNoFolder containing oscar.db
HEALTH_DATA_DIRYesDirectory produced by convert
HEALTH_MAX_MEMORYNoDuckDB memory ceiling, MB2048
HEALTH_WINDOW_DAYSNoLoad only the last N days. '0' loads everything0
HEALTH_NIGHT_SPLIT_HOURNoHour separating one night from the next12

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
health_schemaA

List every available health table and return the curated semantic layer: what each metric measures, which aggregate function is valid for it, and the known traps in the data. Call this before writing any query.

health_queryA

Run a read-only DuckDB SQL query against the health tables. Call health_schema first so you know the columns and the correct aggregate function for each metric.

health_reportA

Generate a summary across heart rate, sleep, activity, blood oxygen, workouts and CPAP therapy for a period. The window is either a named relative period or explicit dates; the reply states which window was used and why, so check period.start and period.end against what you asked for. Use health_query for anything more specific.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.4/5.0

Scored across 3 tools

Disambiguation5/5

Each tool has a distinct role: health_schema provides metadata, health_query executes arbitrary SQL, and health_report generates a curated summary. The cross-references between them clarify when to use which, leaving no ambiguity.

Naming Consistency5/5

All tools follow the consistent health_<noun> pattern: health_schema, health_query, health_report. This uniform convention makes the toolset predictable and easy to navigate.

Tool Count5/5

With only three tools, the set is tightly scoped for a semantic layer: schema discovery, query execution, and report generation. Each tool is essential and the count is appropriate for the purpose.

Completeness5/5

The domain is read-only exploration of Apple Health data, and the three tools cover the full workflow: understanding the schema, running specific queries, and generating high-level summaries. There are no obvious gaps or dead ends.

Maintenance

ActivitySlowing
ResponsivenessNo issues