Skip to main content
Glama
happyc0der

garmin-connect-api

Get activity laps

get_activity_laps
Read-onlyIdempotent

Return laps and pace summaries for runs, rides, or pool swims to check whether pace held up across halves and compare lap splits.

Instructions

Return the laps of a run or ride, or the pace per 100 m or yd of a pool swim, with a summary: average pace or speed, first half against second half, and the fastest and slowest lap or 100.

Answers "did my pace hold up?". Strength sessions have sets, not laps: use get_activity_sets. Two Garmin requests.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
activity_idYesGarmin's activity id, from list_activities.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
lapsNo
sportNo
summaryNo
segmentsNoPool swims: pace per 100 of the pool's unit.
pool_unitNo"m" or "yd".
activity_idYes
pool_lengthNoIn pool_unit.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover readOnly/idempotent/openWorld, so the bar is lower, but the description adds a real cost disclosure: "Two Garmin requests." It also previews the shape of the summary (avg pace, halves comparison, fastest/slowest), which is behavioral context beyond the hints, though it does not discuss pagination or failure modes.

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 sentences, front-loaded with the return payload, then routing, then cost. Nothing redundant and 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?

With an output schema present, return values need not be detailed, yet the description still frames what the summary contains and which sibling handles the non-lap case. Nothing an agent needs to invoke it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and there is only one parameter, whose description already points at list_activities as the id source. The description adds no syntax or format detail beyond the schema, so the baseline 3 applies.

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 (return the laps of a run or ride) plus the swim variant (pace per 100 m/yd), and explicitly distinguishes itself from the sets-based sibling. An agent can tell what it returns without opening the schema.

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?

Gives an explicit when-not rule (strength sessions have sets, not laps: use get_activity_sets) and names the user question it answers ("did my pace hold up?"). Alternative routing is unambiguous.

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