Skip to main content
Glama
happyc0der

garmin-connect-api

Get trend

get_trend
Read-onlyIdempotent

See how a Garmin health metric like steps or sleep changed over a date range, with averages, high and low points, and the overall change.

Instructions

How one metric moved over a range, with average, extremes and change.

Metrics: steps, resting_hr, sleep (hours), sleep_score, hrv, readiness (the morning score), stress (the day's average), body_battery (the day's high), weight, body_fat, vo2max (running), vo2max_cycling. Up to two months comes back daily, up to a year weekly, longer monthly. Ranges are limited to two years. Steps, sleep, sleep_score, stress and body_battery are fetched four weeks per Garmin request, so a year of one is about 14 requests; hrv, readiness and resting_hr a year per request; weight, body_fat and VO2 max one request.

For one day use get_day_summary or that metric's own tool; for every weigh-in rather than one a day, list_weigh_ins.

The summary gives days_with_data (periods_with_data for VO2 max, which Garmin groups itself), the average, min and max of the days, the first and last day, and change: the last whole period's average minus the first whole period's, so a week the range cuts short does not count.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endYesLast day, inclusive.
startYesFirst day, inclusive.
metricYesOne of the metrics listed above.
aggregationNoday, week or month. Chosen from the range when left out.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
endYes
unitYes
startYes
metricYes
pointsNo
summaryNo
aggregationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations cover only the safety profile (readOnly/idempotent/openWorld), and the description adds substantial behavior the annotations cannot: automatic aggregation switching (daily up to two months, weekly up to a year, monthly beyond), a hard two-year range cap, per-metric Garmin request cost (steps ~14 requests/year vs one for weight), and the exact semantics of 'change' (last whole period's average minus the first, short periods excluded).

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 the core outcome, then density-packed supporting detail. The per-metric request counts are useful for latency expectations rather than filler. It is long for a description, but nearly every clause carries operational information, so only minor trimming is possible.

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?

Although an output schema exists, the description still explains the summary fields (days_with_data vs periods_with_data for VO2 max, average/min/max, first/last day, change definition), which prevents misreading. With four parameters, a hard range limit, and metric-dependent granularity all covered, nothing an agent needs to invoke correctly is missing.

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 coverage is 100%, so baseline is 3. The description exceeds that by glossing metric meaning — hrv, readiness is the morning score, stress is the day's average, body_battery is the day's high, vo2max is running vs vo2max_cycling — and by explaining that aggregation is inferred from the range when omitted, which changes the shape of the result.

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?

The description states a specific job — how one metric moved over a range, returning average, extremes and change — over a named enumerable set of metrics. It clearly differentiates from single-metric siblings (get_steps, get_hrv) and from get_day_summary by scope. An agent can select it without opening the schema.

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?

Explicit routing: 'For one day use get_day_summary or that metric's own tool; for every weigh-in rather than one a day, list_weigh_ins.' It also states range limits (two years) and implies when to prefer this aggregate view. Both the when-to-use and the when-not-to-use cases are covered with named alternatives.

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