Skip to main content
Glama
google-health-mcp

google-health-mcp

health_get_activity_events

Retrieve activity events over a date range, including sedentary periods, altitude gains, and swim lengths, to analyze daily movement and trends.

Instructions

Get activity events over a date range: sedentary periods, altitude gains, swim lengths.

Each event's start and end (UTC), start_utc_offset for the local time, and the values Google sends with it, as sent: gainMillimeters for an altitude gain, strokeCount for a swim length, integers often as strings. Google counts altitude among its true zeros, so an interval with no gain field is a gain of none. Swim lengths are detected passively by the watch and need not belong to a swim workout. Sedentary periods are read from Google's merge of every source rather than from each source's own list.

Args: start_date: Start date as "YYYY-MM-DD", "YYYY-MM", or "7d". Default: 7 days back from the end date or today, whichever is earlier. end_date: End date as "YYYY-MM-DD", "YYYY-MM" (its last day), or "Nd". Default: today. live: If true, re-fetch this window from the API before reading the cache. include_records: If true, return each event's point exactly as Google sent it instead of its interval and values. Altitude and swim points carry their data source; Google's merged sedentary stream carries none.

Returns sedentary_periods, altitude_gains and swim_lengths, each a list of events with the local date it started on, and count, the events in all.

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_get_activity_events"
  }
}

Input Schema

NameRequiredDescriptionDefault
liveNo
end_dateNo
start_dateNo
include_recordsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/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 substantial work: it reveals the cache-first read model ("re-fetch this window from the API before reading the cache"), the UTC-plus-offset time convention, Google's true-zero quirk for altitude, and that sedentary periods come from Google's merged stream rather than per-source lists. It omits auth/permission requirements and any rate-limit or volume expectations, which keeps it short of a 5 for an unannotated tool.

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 a one-line purpose, then a compact behavioral paragraph and a structured Args block, so the reader can scan. A few clauses (the parenthetical on where sedentary data comes from, the merged-stream caveat repeated under include_records) run long, but each conveys a real quirk rather than filler.

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?

There is no output schema and no annotations, yet the description names the return keys (sedentary_periods, altitude_gains, swim_lengths), describes each event's fields (start/end in UTC, start_utc_offset, the raw values), and documents the total count. Given four optional parameters and no destructive behavior, 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 coverage is 0%, so the description must compensate entirely, and it does: all four parameters are documented with accepted formats ("YYYY-MM-DD", "YYYY-MM", "7d", "Nd") and their defaults for both date bounds, plus the precise effect of `live` and `include_records` including what `include_records` returns instead.

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 ("Get activity events over a date range") and enumerates the three event families returned: sedentary periods, altitude gains, swim lengths. The note that swim lengths "are detected passively by the watch and need not belong to a swim workout" implicitly separates this from the exercise/workout siblings, so an agent can tell what it gets here.

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

Usage Guidelines3/5

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

Usage is implied by the data types and the per-parameter defaults, but the description never says when to choose this tool over a sibling (e.g. health_get_exercises for workout-scoped swim data) or when not to call it. The `live` and `include_records` explanations hint at use cases without framing them as selection criteria.

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