Skip to main content
Glama
happyc0der

garmin-connect-api

Get activity sets

get_activity_sets
Read-onlyIdempotent

Retrieve a strength activity's sets with exercise category and name, reps, weight, duration, and total volume; optionally include rest periods.

Instructions

Return a strength activity's sets: exercise category and name, reps, weight in kg and duration, with the total volume.

Each working set has a set_number (1, 2, 3...), which edit_activity_sets takes to correct or delete sets; rests have none and are left out unless include_rests. Only strength activities have sets: for runs, rides and swims use get_activity_laps. For the last few sessions at once, recent_strength_sessions saves a call per session.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
activity_idYesGarmin's activity id, from list_activities.
include_restsNoInclude the rest periods between sets.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteNoSet when something about this answer needs saying.
setsNo
activity_idYes
total_volume_kgYesSum of reps times weight over the working sets. The usual definition of training volume. Sets with no weight recorded (bodyweight work) contribute nothing, which is the conventional treatment rather than a claim that they were easy.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnly, idempotent, openWorld), so the description only needs to add context — and it does: rest periods are omitted by default and only appear with include_rests, and set_number is the handle that edit_activity_sets consumes to correct or delete sets. That cross-tool semantics is non-obvious and valuable, though nothing is said about pagination or failure modes for non-strength activities beyond the scope note.

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?

Three short paragraphs, front-loaded with the return contract, then the set_number/edit_activity_sets linkage, then sibling routing. Every sentence carries distinct information with no filler.

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?

An output schema exists, so return-shape documentation is a bonus rather than a requirement, and the description still summarizes the payload. Scope limits, the default for rests, and the sibling alternatives are all covered — nothing an agent needs before calling is missing.

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 goes beyond it by explaining the behavioral effect of include_rests (rests are excluded unless it is set) and by grounding activity_id in the workflow (its role as the key passed to edit_activity_sets).

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?

Names a specific verb and resource ('Return a strength activity's sets') and enumerates the returned content (category, name, reps, weight in kg, duration, total volume). It actively distinguishes itself from siblings, noting that runs/rides/swims have no sets and pointing to get_activity_laps instead.

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 routing: use this for strength activities, use get_activity_laps for runs/rides/swims, and use recent_strength_sessions when you want the last few sessions in one call. Both the when and the when-not are stated with the alternative named.

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