Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNoPort for serve-http.8080
MCP_API_KEYNoAPI key required by serve-http; at least 32 characters.
GARMIN_TIMEZONENoIANA time zone for local dates (e.g. Europe/London); defaults to the machine zone.
GARMIN_MAX_CONCURRENCYNoMaximum concurrent requests to Garmin; default 2 (clamped 1–6).2
GARMIN_PERSONAL_API_KEYNoGarmin Personal API key (highest precedence).
GARMIN_CACHE_TTL_SECONDSNoIn-memory response cache TTL in seconds; default 900 (300 cap for today).900
GARMIN_PERSONAL_API_KEY_FILENoExplicit path to a key file (overrides the default file and keychain).
GARMIN_ENABLE_MENSTRUAL_CYCLENoSet to true to enable the opt-in menstrual-cycle tools.false
GARMIN_BEARER_TOKEN_CACHE_FILENoOverride the bearer-token cache file path.

Instructions

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

Read-only access to the user's Garmin Connect health, wellness, fitness, and activity data via Garmin's official Personal API. All date parameters use ISO format YYYY-MM-DD in the user's configured timezone and default to today when omitted. Daily range arrays are sorted newest-first. Units: raw Garmin distances are in meters (m), durations in seconds (s), weights in grams (g), hydration in milliliters (ml), heart rate in bpm, HRV in ms, SpO2 in %, stress and Body Battery on 0-100. WATCH OUT: recoveryTime fields (if present) are in MINUTES, not hours. Explicit *_km, *_kg, *_hours fields are labeled. For multi-week or multi-month questions, prefer garmin_get_trends or garmin_get_activity_stats to keep responses compact. Composite tools return partial data alongside an errors array if one metric fails. Not available on Garmin's Personal API: Training Status/Load, Training Readiness, Race Predictions, Personal Records, or any write operations (no creating workouts or modifying activities).

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
garmin_statusA

Check server configuration, timezone, cache stats, units table, and token status without calling Garmin by default.

garmin_get_health_summaryA

One-day composite health snapshot: steps, RHR, stress, sleep, HRV, Body Battery, SpO2, and that day's activities.

garmin_get_recoveryA

Recovery-focused snapshot for one day: sleep stages/score, overnight HRV & baseline, resting HR, Body Battery, and stress.

garmin_get_resting_heart_rateA

Daily resting heart rate trend (newest-first) plus min/max/avg over a date range (default last 14 days).

garmin_get_fitness_profileC

Combined user profile settings, heart-rate zones, fitness age, latest VO2 Max, and latest weight & weight goals.

garmin_get_full_snapshotB

Comprehensive briefing: today's health summary, trailing multi-day wellness summaries, recent activities, and fitness profile.

garmin_get_trendsA

Server-side weekly or monthly trend rollups (newest-first) across up to 366 days, keeping context compact.

garmin_get_activity_statsA

Aggregated activity totals, sport breakdown, and weekly/monthly volume over a date range (default last 90 days).

garmin_get_daily_summariesA

User daily summaries over an inclusive date range (newest-first, auto-chunked in 28-day windows, default 7 days).

garmin_get_stepsA

Daily step statistics over an inclusive date range (newest-first, auto-chunked in 28-day windows, default 14 days).

garmin_get_stressA

Daily stress statistics (0-100 scale) over an inclusive date range (newest-first, auto-chunked, default 14 days).

garmin_get_hydrationA

Daily hydration statistics (milliliters) over an inclusive date range (newest-first, auto-chunked, default 14 days).

garmin_get_sleepA

Detailed single-night sleep data for a calendar date (stages, scores, SpO2, respiration).

garmin_get_sleep_summariesA

Daily sleep summaries over an inclusive date range (newest-first, auto-chunked in 28-day windows, default 14 days).

garmin_get_body_batteryA

Daily Body Battery reports over an inclusive date range (newest-first, auto-chunked, default 7 days).

garmin_get_heart_rateB

Daily heart rate summary (resting, min, max, and optionally intraday HR curve) for a calendar date.

garmin_get_hrvA

Overnight heart rate variability (HRV) summary, baseline, status, and optionally 5-minute readings for one date.

garmin_get_hrv_summariesA

Daily HRV summaries over an inclusive date range (newest-first, auto-chunked in 28-day windows, default 14 days).

garmin_get_spo2B

Daily blood oxygen saturation (SpO2 %) and altitude acclimation data for a calendar date.

garmin_get_vo2_maxA

Daily VO2 Max metrics over an inclusive date range (newest-first, auto-chunked, default 28 days).

garmin_get_fitness_ageC

Garmin Fitness Age estimate and contributing biometric factors for a calendar date.

garmin_get_heart_rate_zonesA

Current user's configured heart rate zones across sports (default, running, cycling, swimming).

garmin_get_profile_settingsA

Current user's Garmin Connect profile settings (measurement units, timezone, sleep schedule, goals).

garmin_get_weightB

Weight and body composition measurements over an inclusive date range (raw weights are typically in grams).

garmin_get_weight_goalsA

Effective weight goals over an inclusive date range (newest-first, auto-chunked, default 28 days).

garmin_get_food_logsC

Nutrition food logs for a calendar date.

garmin_get_wellness_activitiesB

Wellness activity summaries over an inclusive date range (newest-first, auto-chunked, default 14 days).

garmin_get_activity_typesA

List Garmin parent activity_type keys and child activity_sub_type keys for filtering garmin_search_activities.

garmin_search_activitiesA

Search and list summarized activities (newest-first). Use garmin_get_activity_types to discover valid filter keys.

garmin_get_activityA

Return full summary and metadata details for one activity by activity_id.

garmin_get_activity_workoutsB

Return structured workout definitions associated with an activity.

garmin_download_activity_fileA

Download an activity's original ZIP archive (.FIT) and return its metadata (plus optional bounded base64).

Prompts

Interactive templates invoked by user choice

NameDescription
recovery_checkAssess today's recovery and training readiness from Garmin wellness data.
weekly_training_reviewReview the last 7 days of activities, volume, sleep, HRV, and stress.
activity_analysisDeep-dive analysis of a single Garmin activity with surrounding recovery context.
monthly_trends_reviewReview multi-month health and training trends using compact server-side rollups.

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.2/5.0

Scored across 32 tools

Disambiguation3/5

Most metric tools are clearly scoped (get_sleep vs get_sleep_summaries vs get_hrv vs get_hrv_summaries), but the overview family overlaps heavily: garmin_get_health_summary, garmin_get_recovery, garmin_get_full_snapshot, garmin_get_trends, and garmin_get_daily_summaries all return composite wellness data covering sleep, HRV, Body Battery, and stress. An agent asked for a daily briefing has five plausible entry points and must read long descriptions to choose correctly.

Naming Consistency4/5

Nearly all tools follow a predictable garmin_verb_noun pattern (garmin_get_*, garmin_search_activities, garmin_download_activity_file) with namespacing that makes ownership obvious. Minor deviations: garmin_status has no verb, and the singular-vs-_summaries suffix convention is a subtlety rather than a break in style.

Tool Count2/5

32 tools exceeds a comfortable set for a read-only health dashboard, especially since many are near-duplicate per-metric endpoint wrappers (get_steps, get_stress, get_hydration, get_body_battery, get_spo2, get_vo2_max, get_weight_goals) that share identical range/chunking semantics and could be consolidated behind a metric parameter. The surface is defensible for the domain but heavy for what an agent can realistically pick between.

Completeness4/5

Coverage of Garmin's health and activity domain is strong: sleep, HRV, stress, Body Battery, SpO2, VO2 Max, weight, nutrition, workouts, activity search/detail/FIT download, plus profile, zones, and status. Gaps are mostly write operations (no logging weight, food, or setting goals) and no workout/course creation, which are reasonable omissions for an intentionally read-oriented server.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues