Skip to main content
Glama
jakub-m-arch

Intervals.icu MCP Server

by jakub-m-arch

Get activity time distribution

get_activity_histogram
Read-onlyIdempotent

View time spent at each heart rate, pace, or power level in an activity, with ranges and share of total. Analyze intensity distribution for training insights.

Instructions

Get how much time was spent at each heart rate, pace or power level in one activity (a histogram with ranges, time and % of total). Finer-grained than time in zones.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesActivity id, e.g. "i123456789" (from list_activities or search_activities).
metricYesWhat to bucket by.
bucket_sizeNoBucket width: bpm (default 5), seconds of pace (default 15) or watts (default 25).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
metricYes
bucketsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds behavioral detail about the output format (ranges, time, and % of total) and the finer-grained comparison, providing value beyond the annotations without contradiction.

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?

The description is exceptionally concise, consisting of two sentences that pack the core purpose and a distinguishing comparison. There is zero fluff, and the key information (what it does, for what scope) is front-loaded. Every sentence earns its place.

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

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present and full parameter documentation, the description is largely complete. It explains the output (histogram with ranges, time, and %), scopes it to one activity, and gives a granularity comparison. It does not mention potential limitations (e.g., activity types), but given the schema and annotations, nothing essential 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 description coverage is 100%, so all three parameters are already well-documented in the schema (id, metric enum, bucket_size defaults). The description adds minimal semantic value beyond the schema, mentioning the metric types but not enhancing parameter understanding. Baseline 3 is appropriate given high schema coverage.

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?

The description clearly states the verb 'Get' and the resource: how much time was spent at each heart rate, pace, or power level in one activity. It specifies the output (histogram with ranges, time, and % of total) and differentiates from 'time in zones' by noting finer granularity, which distinguishes it from any zone-based tools.

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?

The description provides clear context by noting 'in one activity' and that it is 'finer-grained than time in zones,' which implies when this tool is appropriate. However, it does not explicitly name an alternative tool or state when not to use it, so it falls short of full explicit guidance.

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