Skip to main content
Glama

Training load and personal baselines

derived_metrics

Duration-based training workload (minutes), excluding walking unless include_walking=true: rolling ATL 7 days, CTL 42 days, same-day TSB=CTL-ATL and acute/chronic ratio. Not intensity-weighted TSS. Every training row includes trimp_load, trimp_atl, trimp_ctl and trimp_tsb: simple zone TRIMP = sum(zone_seconds[z] * z / 60), with weights [0,1,2,3,4,5] for zones 0–5. TRIMP ATL/CTL use 7/42-day rolling means; TSB=CTL-ATL. max_hr overrides the observed workout maximum. include_trimp=true also returns the legacy trimp object with coverage details. Existing duration fields remain unchanged. TRIMP sums observed zone time; workouts without usable zones contribute zero, so rolling ATL/CTL/TSB remain numeric with incomplete coverage. trimp_coverage, trimp_coverage_7d and trimp_coverage_42d report the fraction of included workout duration with usable HR zones for the day and rolling windows. Covered seconds are capped per workout at its duration; coverage is null when there is no included duration. Missing workout days count as zero; coverage is reported. HRV SDNN and resting HR compared with the preceding 30–60 calendar days, excluding the target date; at least 7 valid daily values required. Includes mean, population SD, absolute/percentage delta and z-score. Maximum 500 total rows; narrow the range if truncated.

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": {
      "from": "<from>",
      "to": "<to>"
    },
    "name": "derived_metrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYes
fromYes
max_hrNoMaximum HR for TRIMP; otherwise observed workout maximum through to
baseline_daysNo
include_trimpNoInclude the legacy trimp object with coverage details; flat trimp_* fields are always returned
include_walkingNoInclude walking in both duration and zone load; excluded by default

Output Schema

NameRequiredDescriptionDefault
methodYes
baselinesYes
truncatedYes
plan_limitNo
assumptionsYes
training_loadYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / plan_limit
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "available_from": {
      +      "type": "string"
      +    },
      +    "message": {
      +      "type": "string"
      +    },
      +    "plan": {
      +      "const": "free",
      +      "type": "string"
      +    },
      +    "requested_from": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "plan",
      +    "requested_from",
      +    "available_from",
      +    "message"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Beyond the annotations, the description discloses substantive behavior: a 500-row cap with truncation, missing workout days counting as zero, coverage being null when there is no included duration, a minimum of 7 valid daily values for baselines, and per-workout capping of covered seconds. It does not explain why readOnlyHint is false for what reads as a computation endpoint, which is the one gap given a non-readOnly annotation.

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

Conciseness2/5

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

A single dense block mixing load metrics, TRIMP formulas, coverage semantics and HRV baselines, with the unrelated baseline behavior appended at the end without framing. Formulas are repeated (TRIMP ATL/CTL/TSB stated twice) and much of the text re-describes output fields rather than front-loading what the tool is for.

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?

An output schema exists, so the heavy field-level explanation is partly redundant, but the description still covers the operational edge cases an agent needs: truncation at 500 rows, zero-fill for missing days, null coverage, and baseline validity thresholds. Nothing critical for correct invocation appears to be missing.

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?

With only 50% schema description coverage, the description compensates well: include_walking's scope ('excluding walking unless include_walking=true'), max_hr's override of the observed workout maximum, include_trimp's legacy object, and the 30–60 day baseline window mapped to baseline_days. The from/to range is only indirectly referenced via the 500-row narrowing advice.

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 the concrete resource and computations: duration-based workload with rolling ATL (7d), CTL (42d), TSB=CTL-ATL, plus TRIMP and HRV/resting-HR baselines. It also explicitly distinguishes the metric from intensity-weighted TSS. It never names a sibling tool (query_daily, list_metrics) as an alternative, so tool-level differentiation is left to inference.

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 call this instead of query_daily or list_metrics; the only contrast given is a metric-level one ('Not intensity-weighted TSS'). Defaults (include_walking=false, include_trimp=false, baseline_days=60) are restated but not framed as decision guidance. An agent must infer the use case from the field semantics alone.

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