Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
GARMIN_EMAILYesGarmin Connect email
TRAINBUD_HOSTNoBind host for HTTP server127.0.0.1
TRAINBUD_PORTNoBind port for HTTP server3847
CACHE_TTL_SLEEPNoSleep cache TTL (seconds)7200
CACHE_TTL_STATSNoStats cache TTL (seconds)3600
GARMIN_PASSWORDYesGarmin Connect password
TRAINBUD_API_KEYNoBearer token for HTTP MCP (`trainbud serve`)auto-generated
TRAINBUD_LOG_PATHNoLog file path.trainbud/mcp.log
TRAINBUD_CACHE_PATHNoSQLite cache database.trainbud/cache.db
CACHE_TTL_ACTIVITIESNoActivity cache TTL (seconds)1800
TRAINBUD_SESSION_PATHNoSession token storage.trainbud/session.json

Instructions

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

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_latest_activityA

Returns the most recent Garmin activity with distance, duration, pace, and heart rate stats.

get_activities_rangeA

Returns Garmin activities within an ISO 8601 date range.

get_sleep_dataB

Returns sleep duration, quality score, stage breakdown, and interruptions for recent nights.

get_heart_rate_trendsB

Returns resting, max, and average heart rate trends over a time period.

get_recovery_statusB

Combines HRV, sleep, stress, and resting heart rate into a recovery score and training recommendation.

get_body_compositionC

Returns weight, body fat, and muscle mass trends over a time period.

get_stress_levelsC

Returns daily stress averages and trends from Garmin Connect.

get_vo2_max_trendsA

Returns VO2 max fitness trends over time from Garmin Connect.

get_training_insightsC

Returns a combined weekly training summary: latest activity, recent workouts, sleep, recovery, and stress.

get_findingsA

Returns what stands out in the user's stored history against their own 28-day baselines: resting heart rate elevation, sleep debt, HRV trend breaks, and training load ratio. Prefer this over reading raw metrics when asked how things are going.

get_week_reviewA

Returns this training week against the previous one — sessions, training load, sleep, resting heart rate, HRV and stress — plus where the acute:chronic load ratio lands if next week repeats this one, a sleep debt and consistency read against the user's own baseline, and the next race on record. Prefer this over reading individual metrics when asked how the week or the block is going, whether to back off, or what to do next week.

remember_contextA

Records something about the user that Garmin does not know: a goal, a race and its date, an injury, or a free-form note. Use this whenever the user mentions one in passing.

get_user_contextA

Returns the goals, races, injuries and notes on record for the user. Read this before giving training advice.

log_subjectiveA

Records how a day or session actually felt, rated 1-10: perceived effort (rpe), soreness, or mood. Garmin has no equivalent.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Zsadigzade/trainbud'

If you have feedback or need assistance with the MCP directory API, please join our Discord server