# Garmin reader

> The Garmin reader skill tells your assistant how to read your recorded Garmin runs with your own Garmin key, then record each outcome in Pacado.

> **Note:** Other products change their menus. If a label here differs from what you see, look for the nearest match.

## What it does

This skill tells your assistant how to read your recorded runs from Garmin with your own Garmin key, then record each outcome in Pacado. It knows two routes: Garmin's official command-line client on your computer, or your own reader added as a second connector. It never asks for your key, never shows it, and never gives it to the Pacado connector. Pacado reads nothing from Garmin and never sees the key.

The ZIP also holds `references/reader-template.md`: what your own reader offers, and how a coding assistant can build one on Garmin's official client. There is no ready-made reader from us yet.

Your own reader has three tools. One lists your recorded trainings of every sport and names the sport: run, ride, swim, strength or other. One reads a recorded training with its laps. The third returns one recorded training's per-second samples in compact columns: time, heart rate, speed, power, cadence, elevation and distance, where your watch recorded them. The [Estimates skill](https://pacado.run/en/help/skills/estimates) needs that third tool. A reader built from an earlier version has two tools, so you rebuild it from the new template.

On your computer with Garmin's command-line client, Garmin's tool documents downloading a recorded training's original file. Reading the samples in that file needs a way to open it. Without one, that training gets no estimate.

## When your assistant uses it

When you ask it to read your runs from Garmin, or to check in on past workouts once your key is set up. The steps to create the key and pick a route are in [Link your Garmin data to Claude or ChatGPT](https://pacado.run/en/help/garmin/runs-to-your-assistant).

## Sentences to try

- "List my recorded runs of the last 7 days."
- "Read Tuesday's run from Garmin and record it."
- "Check in on last week with my Garmin runs."
- "Is the Garmin tool set up on this computer?"

## Works well with

- [Check in](https://pacado.run/en/help/skills/check-in)
- [Read a run](https://pacado.run/en/help/skills/read-a-run)
- [Strava reader](https://pacado.run/en/help/skills/strava-reader)
- [Estimates](https://pacado.run/en/help/skills/estimates)
- [Weekly review](https://pacado.run/en/help/skills/weekly-review)

## The skill: SKILL.md

```markdown
---
name: garmin-reader
description: "Use when the athlete wants you to read their recorded runs from Garmin with their own Garmin key: on their computer with Garmin's command-line client, or through their own Garmin reader connected beside the schedule connector. Then record outcomes through the schedule connector."
---

# Garmin reader

Read the athlete's recorded runs from Garmin with the athlete's own Garmin key, so that the
check-in and read-a-run skills can record outcomes. The key is the athlete's Personal API key from
Garmin Connect. It belongs to the athlete and stays in their own setup. The schedule connector
holds no key and reads nothing from Garmin; it only sends workouts there.

## The key

1. The athlete creates the key themselves on the **Personal API Key** page of Garmin Connect on the
   web, and keeps it like a password.
2. Never ask for the key, never ask the athlete to paste it into the chat, never print it or repeat
   it, and never pass it to the schedule connector.
3. If the athlete pastes a key into the chat anyway, do not use it. Tell them to delete that key on
   the same Garmin page and create a new one.
4. A key ends on the date the athlete chose when they created it. When Garmin refuses the key, tell
   the athlete to create a new one in their own setup; do not ask them for it.

## Route A: on the athlete's computer

Use this route when you can run commands on the athlete's computer. Garmin's official open-source
client (https://github.com/garmin/connect-personal-api-python) installs a command-line tool,
gc-personal.

1. Check that the tool is installed: run `gc-personal --help`. If it is not, tell the athlete it
   comes from Garmin's official client, whose README gives the install and key steps, and install
   it only with their go-ahead.
2. The tool reads the key from a key file or from an environment variable. Never pass the key on
   the command line (not with `--api-key`): it would show in the shell history and the process list.
   Check only that the key file or the variable exists, in a way that prints neither its content nor
   its value. Never open it, print it or copy it.
3. The tool keeps a cached token on the computer. It is a credential too: never open it, print it
   or copy it.
4. Read the tool's own help for the command that lists recorded runs in a date range. Run it for
   the dates you need, such as the dates of the unchecked workouts get_schedule lists.
5. For a run you match to a workout with steps, run the tool's command that shows that one run and
   read the output as it prints. Use laps only when that output shows them. Do not rely on the
   downloaded file unless you can open it; otherwise record the run's distance and duration only.
6. Per-second data, for the estimates skill: Garmin's tool documents downloading a recorded
   training's original file. Reading the samples in that file needs a way to open it on the
   athlete's computer, such as a reader for that file format that you can run there. Without one,
   that training gets no estimate: say so, and do not fall back on laps or averages. See
   references/reader-template.md for the columns to read.

## Route B: the athlete's own reader

Use this route when the athlete has added their own Garmin reader to you as a second connector,
beside the schedule connector. A reader is a small remote MCP server in the athlete's own cloud
account that holds the key as a secret and offers read tools only. It must ask for a sign-in or a
secret before it answers.

1. Call list_runs with from and to for the dates you need. It covers every sport and names it.
2. Call get_run for a run you match to a workout with steps, to read its laps.
3. Call get_run_samples for one recorded training when the estimates skill needs its per-second
   data. A reader that has only list_runs and get_run is an older one: the athlete rebuilds it from
   references/reader-template.md.
4. When the athlete has no reader and wants one, references/reader-template.md says what it offers
   and how a coding assistant can build it on Garmin's official client. The athlete deploys it to
   their own account and stores the key there themselves.

## Then

1. Record outcomes the way the check-in skill does, or the read-a-run skill for a single run, with
   run: {source, id} naming Garmin and the run's own id there.
2. Never fill in a number you cannot see. When the laps are not shown, or do not line up with the
   work steps, record the totals only and say so.
3. When neither route is set up, ask the athlete for their runs: in words, as pasted figures or as
   an exported file.

If a tool answers that the schedule is not available, say so in one line and stop.
```

### references/reader-template.md

```markdown
# Reader template

What the athlete's own Garmin reader offers, so that the check-in can match recorded runs to the
schedule. A reader is a small remote MCP server in the athlete's own cloud account, for that one
athlete, with that athlete's own Personal API key. Read tools only; the reader writes nothing, to
Garmin or anywhere else. The reader must require authentication before it answers any call. A
reader without it must not be deployed: it would show the athlete's recorded runs to anyone who has
its address.

## Tools

| Tool | Input | Returns |
|---|---|---|
| list_runs | from, to (YYYY-MM-DD) | for each recorded training of every sport (run, ride, swim, strength, other): id, start date and time, sport, distance in metres, duration in seconds |
| get_run | id | the recorded training with its laps: for each lap, distance, duration, average pace (s/km), swim pace (s/100 m), heart rate, power and cadence where the watch recorded them |
| get_run_samples | id; optionally from_s and to_s | the per-second samples of that one recorded training, in compact columns (below) |

Units are metric, like the schedule connector's.

## The samples

get_run_samples answers with the sport, the start date and time, the time zone, and one list per
column. Every list has the same length, one entry per recorded sample, in time order:

| Column | Holds |
|---|---|
| t | seconds from the start |
| hr | heart rate, bpm |
| speed | metres per second |
| power | watts |
| cadence | rpm (steps per minute for a run, as the watch records it; say which) |
| elevation | metres |
| distance | metres from the start |

A column the watch did not record for this training is left out, and a gap inside a column is null.
The reader never fills a gap, smooths a column or computes a figure of its own: the assistant reads
the samples and does the working. When the answer would be too large for one reply, from_s and
to_s ask for a part of the training by seconds from the start; the answer then says which part it
holds.

An athlete whose reader was built from an earlier version of this template has two tools and
cannot serve the estimates skill. They rebuild it from this version.

## Building one

A coding assistant can build the reader for the athlete:

1. Build it on Garmin's official open-source client,
   https://github.com/garmin/connect-personal-api-python (Apache 2.0). Its README says how it
   takes the key and what it can read.
2. Offer the three tools above and nothing else. Garmin's client documents downloading a recorded
   training's original file; if it does not return the samples itself, open that file with a
   library that reads its format, inside the reader.
3. Keep the key only in the cloud account's secret settings. Never write it into the code, a log or
   an answer.
4. Require authentication on every call, in a way the cloud account and the assistant both support,
   so that only the athlete's own assistant can call it. Do not deploy it without this.
5. The athlete deploys it to their own account and adds its address to their assistant as a second
   connector, beside the schedule connector.

The reader serves one athlete. It is never shared or offered to others.
```

---

This page for people: https://pacado.run/en/help/skills/garmin-reader

Claude, ChatGPT and Garmin are trademarks of their owners, as are the other product names on this site. Pacado is not made by or affiliated with Anthropic, OpenAI, Garmin or any of them.
