Skip to main content
Glama

Get training thresholds

get_thresholds
Read-only

Retrieve current and historical training thresholds—LTHR, FTP, HRmax, pace, and zone floors—to see exactly which values analytics use for load and readiness calculations.

Instructions

Thresholds the analytics use on date (default today): per param its value, the date it applies since and its source (garmin-auto from the Garmin profile and its LTHR, threshold pace and FTP history; test, manual, import), by_sport (run, bike, swim: LTHR and LT1 with a note when a fallback, default or approximation), HRmax and the 28-day resting HR. zones has the HR and power zone floors per sport from the Garmin profile (method, HRmax/rest/LTHR or FTP used, fetched date; current, not historical). estimates.ftp_w: 95 % of best stored 20 min ride power, not saved. history adds every recorded row. Use it to see what get_load and get_readiness compute with; record a new test result with set_threshold. Example: {"param":"lthr_run","history":true}.

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_thresholds"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoDay the thresholds are in effect on; default today
paramNoOnly this threshold; default all
historyNotrue: add all recorded rows (of `param`, if given) with date, value, source and note

Output Schema

NameRequiredDescriptionDefault
dataYes
metaYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.7.0
    • addedOutput schema / properties / data / properties / estimates
      Added value: +{
      +  "additionalProperties": {},
      +  "properties": {
      +    "ftp_w": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "activity_id": {
      +          "type": "number"
      +        },
      +        "best_20min_w": {
      +          "type": "number"
      +        },
      +        "date": {
      +          "type": "string"
      +        },
      +        "note": {
      +          "type": "string"
      +        },
      +        "value": {
      +          "type": "number"
      +        }
      +      },
      +      "type": "object"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Changed4 schema fields changedv0.6.2
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / properties / date / description
      Added value: +"Day the thresholds are in effect on; default today"
    • addedInput schema / properties / history / description
      Added value: +"true: add all recorded rows (of `param`, if given) with date, value, source and note"
    • addedInput schema / properties / param / description
      Added value: +"Only this threshold; default all"
  3. First observedv0.6.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only tell the agent this is a read-only, open-world call. The description goes well beyond: sources are labeled (garmin-auto, test, manual, import), fallback/default/approximation cases are flagged, zones are stated to be current rather than historical, and estimates.ftp_w is explicitly not saved. That is exactly the extra context the annotations do not carry.

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?

Front-loaded and largely free of filler, with a concrete example at the end. It is, however, one long run-on sentence stitched together with parentheses and semicolons, which slows parsing of an otherwise information-dense paragraph.

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?

Comprehensive for a read-only getter: it explains the response sections (per-param, by_sport, zones, estimates, history), source provenance, and how it relates to get_load, get_readiness and set_threshold. With an output schema present, nothing further is required.

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 100%, so the baseline is 3. The description still adds meaning: the date is the day the analytics apply the thresholds on, param restricts all sections, and history interacts with param ('of param, if given') – that interplay is only implicit in the schema. The worked example reinforces it.

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: thresholds in effect on a date, and enumerates the shape of what comes back (per-param value/since/source, by_sport, zones, estimates). It is clearly distinguishable from set_threshold, the write sibling.

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

Usage Guidelines4/5

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

Gives an explicit use case ('see what get_load and get_readiness compute with') and routes the write path to set_threshold. There is no explicit when-not or precondition (e.g. what happens with no Garmin profile connected), so it stops short of the top band.

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