Skip to main content
Glama
google-health-mcp

google-health-mcp

health_sync

Fetches Google Health API data into a local SQLite cache for offline queries. Run it before other health query tools; it syncs incrementally or by date range.

Instructions

Sync health data to the local cache.

Fetches data from the Google Health API and stores it in SQLite for fast offline queries. Run this before using other health_get_* tools.

Syncs incrementally: only fetches data newer than the most recent entry in each table. First sync fetches the specified number of days.

Args: data_types: What to sync. Options: "all", "heart_rate", "heart_rate_zones", "activity", "exercises", "sleep", "weight", "spo2", "hrv", "azm", "breathing_rate", "skin_temperature", "core_temperature", "cardio_fitness", "food_log", "ecg", "irn", "account", "height", "exercise_routes", "sleep_sessions", "weight_readings", "body_fat_readings", "sedentary_periods", "altitude_gains", "swim_lengths", "respiratory_rate_sleep", "food_entries", "water_entries". Comma-separated for multiple, e.g. "sleep,hrv". Default: "all". days: Days of history for first sync (default: 30). Ignored on subsequent syncs (uses last synced date). since: Optional "YYYY-MM-DD" backfill date. When set, fetches from this date regardless of what is already cached - use to pull history older than the current cache. Overrides incremental resume and days. until: Optional "YYYY-MM-DD" inclusive end date; requires since. Together they re-fetch and upsert exactly the since..until window - use to repair a gap in the middle of the cache without re-pulling everything from the gap to today.

Returns summary of records synced per data type; for the day-at-a-time types (sedentary_periods, altitude_gains, swim_lengths, respiratory_rate_sleep, food_entries, water_entries) the count is of days. Not for querying data - use health_get_heart_rate, health_get_activity, health_get_sleep, etc. instead.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "health_sync"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNo
sinceNo
untilNo
data_typesNoall

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.12.0
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "result": {
      -      "title": "Result",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "title": "health_syncOutput",
      -  "type": "object"
      -}New value: +null
  2. First observedv1.0.0

TDQS

A4.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does most of it: it discloses the incremental resume behavior, that `days` is ignored on later runs, that since/until override resume and perform an upsert over an exact window, and that counts for certain types are day-counts rather than record counts. It does not mention auth/credential requirements, rate limits, or whether a sync can overwrite/delete existing cached rows (relevant given the health_rebuild sibling), which keeps it short of a 5.

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?

Front-loaded with purpose, then usage ordering, then parameters, then return shape and exclusions — a sensible structure. The long inline enumeration of ~28 data types is bulky but justified since the schema provides no enum; it is the one place the description feels list-heavy.

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

Completeness5/5

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

For a 4-parameter, no-annotation, no-output-schema mutation-of-cache tool, the description covers purpose, ordering, incremental semantics, per-parameter override rules, return value shape (including the day-count caveat), and the query alternative. Nothing an agent needs in order to call it correctly is missing.

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

Parameters5/5

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

Schema description coverage is 0% and the schema has no enums, so the description must compensate — and it does, enumerating every valid `data_types` value and the comma-separated multi-value syntax, plus defaults and override semantics for `days`, `since`, and the `until`-requires-`since` constraint. This is meaning the agent cannot get from the schema.

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?

States a specific verb and resource ('Sync health data to the local cache') and immediately explains the mechanism (Google Health API -> SQLite) so the agent knows this is a cache-population step, not a query. The closing sentence explicitly contrasts it with the health_get_* siblings.

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

Usage Guidelines5/5

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

Gives an explicit precondition ('Run this before using other health_get_* tools') and an explicit exclusion with alternatives ('Not for querying data - use health_get_heart_rate, health_get_activity, health_get_sleep, etc.'). It also names the specific scenario for each optional parameter (backfill older history, repair a gap).

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