Skip to main content
Glama

getYearReview

Review a calendar year of training from the local cache: totals, sports, months, streaks, best efforts, weekdays and HRV trends. Use for a year in review; for recent weeks, use the dashboard.

Instructions

The recap of a calendar year from the local cache: totals (sessions, active days, km, hours, ascent in metres, calories, load), sports, months, the biggest month and week, the best 4 weeks, the most consistent month, streaks, the longest and the biggest session, the progression of the best efforts, weekdays, time of day, and HRV and resting HR by month. Use it for a year in review; for the last weeks, use getDashboardData. year.coverage.missing lists the days that the cache does not have. With a day before today in it, the tool asks the user first, in a form, and only after a yes it fetches the activity list of these days, and of other days that the cache needs (no HRV, no resting HR). fill.asked says what came of it: notNeeded (no day before today is missing), yes, no, unasked (this client has no form), or tooLarge (about estimate requests, over 20: for a year before this year, say to review a newer year first, then this one, which works only in a client with a form). Only yes fetches; fill.error says why a fetch failed. With lastDayOpen true, the last cached day, year.coverage.activities.to, can lack sessions that came after that day's update: say so. When fill.asked is notNeeded and the year is the year of today, say also that a dashboard update adds them. null is n/a, never 0.

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": "getYearReview"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoThe dashboard page whose sports and excluded data apply; it must exist; relative paths are inside the data dir; default: the page garmin-dashboard.html, when there is one
yearNoCalendar year, 2000 to this year; default this year (the year before until 14 January)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.15.0

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses that data is local-cache based, that gaps are exposed via year.coverage.missing, that a form prompt precedes any fetch, that only 'yes' fetches, and that the request estimate can exceed 20 and trigger a refusal. It further documents fill.asked state values, fill.error, the lastDayOpen caveat, and that null means n/a rather than 0 — exactly the side effects and edge cases an agent needs.

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?

Purpose and the key alternative are front-loaded, and nearly every clause carries distinct operational information rather than filler. However, the prose is dense and some sentences are awkwardly constructed ('With a day before today in it, the tool asks the user first, in a form'), forcing re-reading of information that could have been bulleted.

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?

There is no output schema, so the description must explain the return shape — and it does, listing the recap sections, the coverage object, the fill object, and the null convention. For a complex, cache-backed, user-prompting tool, an agent has everything needed to call it and interpret the result.

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 both the path and year parameters (including defaults and the 14 January rollover rule, and the 2000-to-this-year bound) are already fully documented in the schema. The description adds no parameter-level syntax, format, or interaction detail beyond that; baseline 3 applies.

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?

Opens with a specific verb+resource ('The recap of a calendar year from the local cache') and then enumerates the exact contents (totals, sports, months, streaks, HRV by month), so an agent knows precisely what comes back. It also names the sibling getDashboardData for the short-range case, making it distinguishable without opening a schema.

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

Usage Guidelines5/5

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

Explicit routing: 'Use it for a year in review; for the last weeks, use `getDashboardData`.' It also gives conditional guidance for the tooLarge case ('say to review a newer year first, then this one') and tells the agent what to say to the user when lastDayOpen is true. Both when-to-use and how-to-advise-the-user are covered.

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