Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

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

Personal health data exported from one person's Garmin device (sleep, HRV, stress, Body Battery, heart rate, activity, training readiness). Start with status to see which days exist, then get_day / get_range_summary. Use list_metrics before asking for intraday series.

Things to keep in mind when interpreting the data:

  • Dates are local calendar dates. A night's sleep belongs to the day you wake up.

  • The latest day is usually still in progress; its totals are partial.

  • Values are personal: judge them against the person's own baseline (trends in get_day, with z-scores vs the last 28 days), not against population norms. HRV in particular varies a lot between people.

  • Missing data is normal (device off, charging, no workout). Say so instead of guessing.

  • This is wellness data, not medical advice.

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
statusB

Which days are stored, the latest day, and the time of the last heart-rate reading.

list_metricsA

Every metric with its unit, meaning, source table/column and whether higher is better.

get_dayB

One day in a single record: steps, sleep (score, stages), HRV, resting HR, stress, Body Battery, readiness, training status, activity totals, plus trends (7/28-day averages and z-scores).

get_daysC

The same daily record for every day from start to end (YYYY-MM-DD, inclusive).

get_range_summaryB

Average / min / max of the key daily metrics between two dates.

compare_periodsB

Compare two periods (e.g. this week vs last week). change_b_vs_a is B minus A, absolute and in %.

get_sleep_detailB

A night in detail (date = the morning you woke up): stage timeline in local time, score components with Garmin's qualifiers, sleep need, skin temperature, and naps that day.

get_timeseriesA

Intraday values of a metric (see list_metrics for source_table 'timeseries': heart_rate, stress, body_battery, spo2, respiration, hrv_5min, steps_15min). Times are local. resolution is auto | raw | 5min | 15min | hour | day; 'auto' keeps the answer to a few hundred points.

get_activitiesC

Recorded workouts between two dates: type, duration, distance, heart rate, calories, training effect/load.

run_sqlA

Run one read-only SELECT against the database for questions the other tools cannot answer. Prefer the views v_day (one row per day), v_week and v_trends. Raw API payloads are not accessible.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
schemaTables, views and the metric catalog

TDQS

B3.4/5.0

Scored across 10 tools

Disambiguation4/5

Most tools have clearly distinct purposes: single-day, multi-day, range summary, period comparison, sleep detail, intraday timeseries, activities, and a SQL fallback. There is some potential overlap between get_day (which includes trends), get_range_summary, and compare_periods, but the descriptions make the boundaries reasonably clear.

Naming Consistency4/5

The set mostly follows a predictable verb_noun pattern (get_day, get_days, get_range_summary, compare_periods, list_metrics, run_sql). The bare noun `status` is the only notable deviation, but the overall convention remains clear.

Tool Count5/5

Ten tools is well-scoped for a read-only Garmin data server. Each tool covers a distinct access pattern, and the SQL fallback avoids bloating the surface with one-off query tools.

Completeness4/5

The surface covers daily records, ranges, period comparisons, sleep detail, intraday timeseries, activities, metadata, and custom SQL, which is strong lifecycle coverage for analytics. Minor gaps remain around detailed single-activity breakdowns (e.g. laps/splits), though run_sql may allow workarounds.