Skip to main content
Glama

Summarise a week, month or range

get_period_summary
Read-only

Summarize a training week, month, or custom date range with sessions and volume by sport, HR zone time, active/rest days, key sessions, load model, and average sleep, HRV, and resting HR.

Instructions

Training week or month at a glance: sessions and volume per sport, time in the Garmin HR zones 1-5 (for the 3-zone Z1/Z2/Z3 split against LT1/LTHR, e.g. time below LT1 or polarisation, use get_load), active vs rest days, longest and hardest session, garmin_load_model at the end (CTL/ATL/TSB from Garmin's daily training load (EPOC); the own TSS model is get_load), and only avg/min/max of sleep, HRV, resting HR, steps, stress and body battery plus average daily kcal. Day-by-day values and other metrics (calorie totals, intensity minutes, floors, respiration, SpO2) come from query_health, weight from get_body_composition. Weeks run Monday-Sunday. Period "range" gives the same for any from..to up to 366 days, e.g. a training block: {"period":"range","from":"2026-08-04","to":"2026-09-28"}.

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

Input Schema

NameRequiredDescriptionDefault
toNorange only, required
fromNorange only, required
periodNoweek
anchor_dateNoweek/month: any date inside the period; default today

Output Schema

NameRequiredDescriptionDefault
dataYes
metaYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.8.0
    • addedOutput schema / properties / data / properties / health / additionalProperties / properties / status_days
      Added value: +{
      +  "additionalProperties": {},
      +  "properties": {
      +    "balanced": {
      +      "type": "number"
      +    },
      +    "low": {
      +      "type": "number"
      +    },
      +    "no_status": {
      +      "type": "number"
      +    },
      +    "poor": {
      +      "type": "number"
      +    },
      +    "unbalanced": {
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / data / properties / vs_previous
      Added value: +{
      +  "additionalProperties": {},
      +  "properties": {
      +    "from": {
      +      "type": "string"
      +    },
      +    "health": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "hrv_avg_ms": {
      +          "type": "number"
      +        },
      +        "resting_hr_avg": {
      +          "type": "number"
      +        },
      +        "sleep_hours_avg": {
      +          "type": "number"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "previous": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "health": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "hrv_avg_ms": {
      +              "type": "number"
      +            },
      +            "resting_hr_avg": {
      +              "type": "number"
      +            },
      +            "sleep_hours_avg": {
      +              "type": "number"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "training": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "hours": {
      +              "type": "number"
      +            },
      +            "km": {
      +              "type": "number"
      +            },
      +            "sessions": {
      +              "type": "number"
      +            },
      +            "training_load": {
      +              "type": "number"
      +            }
      +          },
      +          "type": "object"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "to": {
      +      "type": "string"
      +    },
      +    "training": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "hours": {
      +          "type": "number"
      +        },
      +        "km": {
      +          "type": "number"
      +        },
      +        "sessions": {
      +          "type": "number"
      +        },
      +        "training_load": {
      +          "type": "number"
      +        }
      +      },
      +      "type": "object"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Changed1 schema field changedv0.6.2
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
  3. First observedv0.6.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint, and the description adds substantial beyond-schema behavior: weeks are Monday-Sunday, range is capped at 366 days, and health metrics are deliberately limited to avg/min/max plus average daily kcal while other metrics are excluded. That tells the agent exactly what a result will and will not contain, which is the kind of disclosure that prevents wrong-tool selection.

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?

Purpose and exclusions are front-loaded, but the body is a single run-on sentence riddled with nested parentheses and backticked tool names, forcing the reader to parse layers of qualification. Nearly every clause carries information, so little is wasted, but the delivery could be split into short bullets for routing, contents, and parameters.

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?

For a moderately complex aggregation tool with an output schema, this covers the missing pieces an agent needs: what is aggregated, the temporal semantics of week and range, the 366-day limit, and where the omitted metrics live. Output schema means return shape need not be described, and nothing operationally important is absent.

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

Parameters4/5

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

Schema coverage is 75% and already documents anchor_date ('any date inside the period') and role of from/to. The description adds the 366-day ceiling for range and a literal JSON example showing how period/from/to compose for a training block, which is genuine added meaning. It does not restate that from/to are required when period=range, but the schema carries that.

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 concrete verb+resource framing ('Training week or month at a glance') and then enumerates the exact payload: sessions and volume per sport, HR zone time, active vs rest days, longest/hardest session, Garmin load model, and sleep/HRV/RHR/steps/stress/body battery aggregates. It explicitly demarcates itself from get_load, query_health, and get_body_composition, so an agent can distinguish it from siblings without opening any 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?

Gives explicit routing rules: use get_load for the 3-zone LT1/LTHR split and the TSS model, query_health for day-by-day values and other metrics (calorie totals, intensity minutes, floors, respiration, SpO2), get_body_composition for weight. It also distinguishes the three period modes and shows a concrete range invocation, leaving nothing to inference.

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