Skip to main content
Glama

Meter — Training Calculators

Heart Rate Zone Calculator

heart_rate_zones
Read-onlyIdempotent

Calculate heart-rate training zones from a single anchor number the caller supplies. Models: five_zone_percent_max (anchor = max HR), karvonen_hrr (anchor = max HR, also pass resting_hr), friel_cycling_lthr and friel_running_lthr (anchor = lactate-threshold HR). Pure arithmetic on the inputs of this one call — nothing is stored, and no training data is involved.

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": {
      "anchor_hr": "<anchor_hr>"
    },
    "name": "heart_rate_zones"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNofive_zone_percent_max
anchor_hrYesMax HR for percent-of-max and Karvonen models; LTHR for the Friel models. Beats per minute, 100–230.
resting_hrNoResting HR in bpm (required only for karvonen_hrr).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint, openWorldHint=false, destructiveHint=false). The description reinforces this with "nothing is stored, and no training data is involved," which is useful confirmation but largely restates what the annotations imply, and it omits any mention of the output shape or precision.

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

Conciseness5/5

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

Three tight sentences: purpose first, then the model-to-anchor mapping that a caller needs before invoking, then the purity/no-persistence note. Every clause carries actionable information and there is no filler.

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 simple pure-calculation tool this is nearly sufficient, but with no output schema present the description never says what a caller receives back — zone boundaries, a list of zones, labels, or rounding. That gap matters for an agent deciding whether the result is usable as-is.

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 coverage is 67% and the schema itself already documents anchor_hr's per-model meaning, the 100–230 bpm range, and that resting_hr is Karvonen-only. The description repeats those same mappings ("anchor = max HR, also pass resting_hr") without adding format, default, or edge-case detail beyond the schema, so the baseline 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?

States a specific verb and resource ("Calculate heart-rate training zones") and enumerates the four supported models with the anchor each expects. This clearly separates it from the sibling conversion utilities, which deal with pace, elevation, and units rather than physiological zone modeling.

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 concrete per-model selection guidance by pairing each model with the anchor value it consumes (max HR vs LTHR) and noting that Karvonen also needs resting_hr. It stops short of stating when to prefer one model over another or any exclusions, but the surrounding toolset offers no competing alternative to route against.

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