Skip to main content
Glama

get_activity_power_in_timezones

Read-only

Returns the time spent in each power zone for a Garmin Connect activity using its activity ID, enabling read-only analysis of power distribution.

Instructions

Return the time spent in each power zone during an activity. (Garmin Connect, read-only. Dates are YYYY-MM-DD.)

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_power_in_timezones"
  }
}

Input Schema

NameRequiredDescriptionDefault
activity_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

The annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=true, so 'Garmin Connect, read-only' merely restates them. Beyond that, the description discloses nothing about how zones are derived (user-configured vs. defaults), what units the time is in, or whether the activity must have power data; the date-format note is a non-sequitur.

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

Conciseness3/5

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

The first sentence is well front-loaded and does the real work. The parenthetical second sentence spends words on a date-format rule that cannot apply to this tool's inputs, so it does not earn its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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-value detail is not required. Still missing is the context an agent needs to call this correctly: the origin of activity_id and any prerequisite that the activity contain power-meter data; the spurious date note partly crowds out that information.

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

Parameters2/5

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

Schema description coverage is 0% and the single parameter, activity_id, is never explained. The description should say where an activity_id comes from (for example, get_activities) and that it accepts an integer or string, but it instead talks about date formats that no parameter uses.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: return time spent in each power zone for an activity. This implicitly distinguishes it from the sibling get_activity_hr_in_timezones (heart-rate zones vs. power zones), though it never names that sibling explicitly.

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

Usage Guidelines2/5

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

No guidance on when to use this instead of get_activity_hr_in_timezones, get_activity_details, or get_activity_splits, all of which could look plausible for a similar question. The only contextual note, 'Dates are YYYY-MM-DD,' is irrelevant because the schema has no date parameter, which adds confusion rather than guidance.

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