Skip to main content
Glama
Garmin Connect Personal API MCP

Garmin Connect Personal API MCP

by hannta

Get Garmin activity laps

garmin_get_activity_laps
Read-only

Retrieve per-lap and interval-rep stats for a Garmin activity, including distance, pace, heart rate, power, cadence, elevation, calories, and respiration, to compare splits and see how each rep went.

Instructions

One row per lap of an activity, plus one row per interval rep when it was an interval session: distance, time, pace and grade-adjusted pace, heart rate, power, cadence, running dynamics, elevation, calories, temperature and respiration. For questions like "how did each rep go?" or "which kilometres were slowest?". Location is never returned. Get the activity id from garmin_search_activities. On the Cloudflare free plan a long activity can fail with a connector error (CPU limit): say so rather than retrying.

Input Schema

NameRequiredDescriptionDefault
activity_idYesGarmin activity ID.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.1

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the readOnly/openWorld annotations it discloses three things structured data cannot: location is never returned (privacy boundary), long activities can fail on the Cloudflare free plan with a CPU-limit connector error, and the agent should report that failure rather than retry. That failure-mode handling is exactly the behavioral context an agent needs.

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?

Front-loaded with output shape, then use cases, then prerequisite, then failure handling — four dense sentences with no filler. Every sentence contributes a fact the agent cannot get from annotations or schema.

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?

There is no output schema, so the description carries the return-value burden and does so by enumerating the metric families returned plus the lap/rep row duality. Combined with the failure-mode note and the id-sourcing hint, nothing needed to call it correctly 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% and there is only one parameter, so the baseline is 3; the description earns an extra point by telling the agent where activity_id comes from (garmin_search_activities), a provenance hint absent from the schema.

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 the exact output shape ("one row per lap of an activity, plus one row per interval rep when it was an interval session") and enumerates the metrics returned, which distinguishes it clearly from siblings like garmin_get_activity (summary) and garmin_get_activity_streams (raw time series). An agent knows from the first clause what granularity this tool yields.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete example questions ("how did each rep go?", "which kilometres were slowest?") that select this tool, and supplies the prerequisite workflow (get activity_id from garmin_search_activities). It stops short of explicitly naming when to prefer garmin_get_activity or garmin_get_activity_streams instead, so no exclusion guidance.

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