Skip to main content
Glama

get_trends

Aggregate daily Garmin fitness metrics into day, week, or month buckets over a date range to track trends in sleep, heart rate, steps, stress, body battery, training load, VO2 max, or HRV.

Instructions

Aggregate a daily metric into day/week/month buckets.

    `metric` is one of:
        resting_hr, steps, stress_avg, body_battery_high, body_battery_low,
        sleep_score, sleep_hours, training_load, vo2max, hrv
    Sums are used for steps and training_load; everything else is averaged.
    `bucket` is "day", "week", or "month" (default "week").
    

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": {
      "metric": "<metric>",
      "start": "<start>",
      "end": "<end>"
    },
    "name": "get_trends"
  }
}

Input Schema

NameRequiredDescriptionDefault
endYes
startYes
bucketNoweek
metricYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It does disclose the genuinely useful aggregation rule (sums for steps and training_load, averages otherwise) and the default bucket, but says nothing about date format, whether start/end are inclusive, week-start convention, or result shape.

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

Conciseness4/5

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

The operative statement is front-loaded and the metric list plus aggregation rule follow compactly. The awkward indentation and stray whitespace cost a little polish but not clarity.

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 four-parameter aggregating query tool with no annotations and no output schema, the description covers the metric vocabulary and aggregation semantics but leaves the required time-range parameters undocumented and never hints at what the response contains.

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 0% and the schema has no enums, so the description must compensate. It does so well for `metric` (all ten allowed values) and `bucket` (values plus default), but `start` and `end` — two of three required parameters — get no mention of format or inclusivity.

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 first sentence gives a specific verb and resource: 'Aggregate a daily metric into day/week/month buckets.' That is enough to distinguish it from get_daily_summary or get_sleep, which read raw data rather than bucket aggregates, though the description never explicitly names that distinction.

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?

There is no statement of when to use this tool instead of get_daily_summary or get_sleep, and no exclusions or prerequisites. The metric and bucket vocabulary implies trending-over-time usage, but the agent must infer that on its own.

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