Skip to main content
Glama

Sync Garmin data

garmin_sync

Downloads Garmin Connect data into the local cache to refresh or preload a date range, skipping stored days and reporting background progress.

Instructions

Download data from Garmin Connect into the local cache. Read tools already download missing data by themselves, so call this only when the user asks to sync/refresh or to pre-load a range, or when a tool returned meta.sync_hint (auto fetch turned off) and the user agreed; pass the hint's scope/from/to. Days already stored are skipped. Long ranges continue in the background: this waits at most 20 s and reports progress (also in garmin://sync-status).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "garmin_sync"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoEnd date; default: today
fromNoStart date; default: 7 days before `to`
forceNoRe-download days that are already stored
scopeNoall | activities | health (daily summary, sleep, HRV, weight) | training (status, readiness, VO2max) | reference (profile, gear, devices, activity types, workouts, calendar months of from..to, also in the future)all

Output Schema

NameRequiredDescriptionDefault
dataYes
metaYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.6.2
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
  2. First observedv0.6.0

TDQS

A4.7/5.0
Behavior4/5

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

Adds substantial behavior beyond the annotations: already-stored days are skipped, force overrides that, long ranges continue in the background with a 20 s wait cap, and progress is echoed at garmin://sync-status. It also implicitly explains why readOnlyHint is false (writes to local cache). The only minor gap is what happens to a partially completed background job if the client disconnects, but the output schema covers the return shape.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four dense sentences, front-loaded with purpose, then when-to-use, then the hint fallback, then the runtime behavior. No filler and every sentence carries operational information.

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?

Covers triggers, exclusions, default skipping behavior, long-running/timeout semantics, and a progress channel, while an output schema exists to describe return values. An agent has everything needed to decide and invoke correctly.

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 the baseline is 3; the description still adds meaning by tying scope/from/to to the sync_hint values an agent may receive and by explaining that 'from' is used for pre-loading a range and that stored days are skipped (context for 'force'). It does not restate parameter syntax, which is fine.

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?

States a specific verb and resource ('Download data from Garmin Connect into the local cache') and immediately distinguishes itself from the read tools that auto-fetch. An agent can tell exactly what this tool does and how it differs from get_activities/query_health siblings.

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 when-to-use (user asks to sync/refresh or to pre-load a range), when-not (read tools already download missing data by themselves), and an additional trigger plus parameter routing ('when a tool returned meta.sync_hint ... pass the hint's scope/from/to'). Nothing is left to inference.

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