Skip to main content
Glama
Garmin Health MCP

Garmin Health MCP

by EmilbMadsen

get_activity_time_in_hr_zones

Read-only

Calculates time in each heart rate zone and below zone 1 for a single Garmin activity, excluding paused time, with seconds, percentages, BPM ranges, and watch totals for comparison.

Instructions

Time in heart rate zones for one activity, computed from the recorded heart rate: seconds and percent below zone 1 and in zones 1-5, with each zone's bpm range. Paused time is excluded. Also returns the watch's own time-in-zone totals for comparison.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "activity_id": "<activity_id>"
    },
    "name": "get_activity_time_in_hr_zones"
  }
}

Input Schema

NameRequiredDescriptionDefault
zonesNo'current': the user's heart rate zones in Garmin Connect now. 'recorded': the zones the watch used during the activity.current
activity_idYesActivity ID from search_activities (a positive integer).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds real behavioral context beyond that: paused time is excluded, values are computed from recorded heart rate, and the watch's own totals are returned for comparison — details an agent could not infer from annotations.

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 tight sentences, front-loaded with the core purpose, then the computation and exclusion rule, then the comparison output. No filler or redundancy.

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 values need not be spelled out, and the description still covers computation basis, exclusion of paused time, and the comparison payload. Nothing an agent needs to invoke this 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%, so both parameters are already documented, including the 'current' vs 'recorded' enum. The description's mention of 'recorded heart rate' and the watch's own totals loosely relates to the zones parameter but does not clarify the default 'current' behavior, so it adds only marginal meaning over 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 a specific verb and resource ('Time in heart rate zones for one activity') and enumerates exactly what is returned: seconds and percent below zone 1 and in zones 1-5, each zone's bpm range, plus the watch's own totals. This is precise enough to separate it from get_heart_rate_zones (zone definitions) and get_activity_summary_stats.

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

Usage Guidelines3/5

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

The phrase 'for one activity' scopes usage and the comparison framing hints at when the tool is useful, but there is no explicit when-to-use or when-not guidance and no named alternative such as get_heart_rate_zones for zone configuration. Usage is implied rather than stated.

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