Skip to main content
Glama

Aggregate activity stats

garmlink_stats_summary
Read-only

Aggregated training volume over a date range, grouped by sport, month or ISO week: activity count, total distance (km), duration (h), calories and average HR per bucket.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "garmlink_stats_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoISO date upper bound (inclusive). A date-only bound covers the whole day.
fromNoISO date lower bound (inclusive).
group_byNoBucketing dimension.sport

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / required
      Removed value: -[
      -  "group_by"
      -]
  2. Changed1 schema field changed
    • changedInput schema / properties / to / description
      Previous value: -"ISO date upper bound (inclusive). A date-only bound covers the WHOLE day."New value: +"ISO date upper bound (inclusive). A date-only bound covers the whole day."
  3. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so safety and scope are covered structurally. The description adds useful behavioral context by specifying returned metrics and their units (km, h, calories, average HR per bucket), which matters since there is no output schema. It does not state what happens with empty ranges or buckets, nor any default range behavior.

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?

A single front-loaded sentence: purpose first, then bucketing dimensions, then the metric list. No filler, no repetition of the title, and every clause carries information the agent needs.

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?

For a 3-parameter, zero-required read tool with no output schema, the description does the most important work by enumerating return fields and units. Gaps remain: what happens when from/to are omitted or inverted, whether empty buckets are returned, and how the summary relates to the per-activity siblings.

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 documented in the schema, including the inclusive-bound semantics and the group_by enum. The description restates the grouping options and date-range framing but adds no new syntax, format, or default behavior beyond the schema. Baseline 3 applies.

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?

The description names a specific operation and resource: aggregated training volume over a date range, bucketed by sport/month/week. The metric list (count, distance, duration, calories, avg HR) makes the output concrete. It does not explicitly contrast itself with raw-listing siblings like garmlink_activities_list or garmlink_daily_summary_get, so an agent must infer the aggregate-vs-raw distinction.

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?

Usage is implied by 'over a date range, grouped by' — an agent can infer this is the tool for period totals rather than per-activity detail. However, no alternative is named and no exclusions are given (e.g., 'use garmlink_activities_list for individual activities'). Guidance is adequate but inferential.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources