Skip to main content
Glama

log_metric

Record a MEASUREMENT with its date — a lab test (LT1, LT2, MAP, VO2max, a lactate draw), a blood panel (ferritin, haemoglobin), a weigh-in, a field-test result. One call takes several rows, so a whole lab report lands as one card. This is history, not the profile: it does NOT change what the app plans against — if the test says the threshold moved, propose update_athlete_profile as well and say so. An FTP row DOES change how PAST rides are scored: every power ride from its date to the next FTP row is re-read against it (IF, TSS, zones), and the change shows on the calendar — so when they tell you what their FTP was back then, log it on THAT date (source self-report). Date the MEASUREMENT, never today-because-that-is-when-they-told-you. note is where the test came from ("Trisystems СПб, step test to exhaustion"), never an interpretation of the athlete.

Input Schema

NameRequiredDescriptionDefault
itemsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / items / items / properties / note / description
      Previous value: -"where it came from; never a judgement about the athlete"New value: +"the protocol (FTP20, trainer) and where it came from; never a judgement about the athlete"
  2. Changed2 schema fields changed
    • changedInput schema / properties / items / items / properties / kind / enum
      Previous value: -[
      -  "ftp",
      -  "thrPace",
      -  "lthrBike",
      -  "lthrRun",
      -  "maxHrBike",
      -  "maxHrRun",
      -  "weightKg",
      -  "vo2max",
      -  "map",
      -  "lt1",
      -  "lt2",
      -  "lactate",
      -  "ferritin",
      -  "hb",
      -  "rhr",
      -  "hrv",
      -  "cssPace",
      -  "runCp"
      -]New value: +[
      +  "ftp",
      +  "thrPace",
      +  "lthrBike",
      +  "lthrRun",
      +  "maxHrBike",
      +  "maxHrRun",
      +  "weightKg",
      +  "vo2max",
      +  "map",
      +  "lt1",
      +  "lt2",
      +  "lactate",
      +  "ferritin",
      +  "hb",
      +  "rhr",
      +  "hrv",
      +  "cssPace",
      +  "runCp",
      +  "bodyFatPct"
      +]
    • changedInput schema / properties / items / items / properties / value / description
      Previous value: -"the number, in the kind's own unit (w, sec_per_km, bpm, kg, ml_kg_min, mmol_l, ng_ml, g_l, ms)"New value: +"the number, in the kind's own unit (w, sec_per_km, bpm, kg, pct, ml_kg_min, mmol_l, ng_ml, g_l, ms)"
  3. Changed1 schema field changed
    • changedInput schema / properties / items / items / properties / kind / enum
      Previous value: -[
      -  "ftp",
      -  "thrPace",
      -  "lthrBike",
      -  "lthrRun",
      -  "maxHrBike",
      -  "maxHrRun",
      -  "weightKg",
      -  "vo2max",
      -  "map",
      -  "lt1",
      -  "lt2",
      -  "lactate",
      -  "ferritin",
      -  "hb",
      -  "rhr",
      -  "hrv"
      -]New value: +[
      +  "ftp",
      +  "thrPace",
      +  "lthrBike",
      +  "lthrRun",
      +  "maxHrBike",
      +  "maxHrRun",
      +  "weightKg",
      +  "vo2max",
      +  "map",
      +  "lt1",
      +  "lt2",
      +  "lactate",
      +  "ferritin",
      +  "hb",
      +  "rhr",
      +  "hrv",
      +  "cssPace",
      +  "runCp"
      +]
  4. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only declare it is a non-read-only, non-destructive write; the description supplies the substantive behavior: batching (a whole lab report as one card), and the retroactive rescoring of every power ride from an FTP row's date to the next FTP row (IF, TSS, zones, calendar repaint). That is exactly the kind of side effect an agent cannot infer from annotations. It stops short of saying what happens on duplicate dates, invalid kinds, or beyond the 20-row cap.

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 with the core action and the batch behavior, then the profile distinction, then the FTP side effect — a sensible ordering where each sentence carries operational content. It is dense and leans on caps, backticks, and a long run-on clause ("never today-because-that-is-when-they-told-you"), which makes it slower to parse than it needs to be.

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 write tool with no output schema, the description covers purpose, dating, provenance, batching, and the main side effect, so an agent can call it correctly on the happy path. Gaps remain around the `kind` enum (19 values with no per-kind unit or valid-range guidance), the 20-item cap, and what the tool returns or does on partial failure.

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?

The description adds meaning the schema does not: `note` is provenance ("Trisystems СПб, step test to exhaustion"), never athlete interpretation, and `date` is the measurement date rather than the reporting date, reinforced with the FTP backdating rule. It does not compensate for the absence of enum/unit guidance for `kind` or the unit table for `value`, which remain only in the schema.

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?

"Record a MEASUREMENT with its date" is a specific verb+resource, and the examples (lab test, blood panel, weigh-in, field-test) plus explicit enum-like kinds make the scope unmistakable. It also draws a hard line against profile mutation by naming update_athlete_profile. It loses a point for not distinguishing itself from the sibling log_lactate, despite listing "a lactate draw" as an example of what this tool takes.

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 when-not guidance: "This is history, not the profile: it does NOT change what the app plans against — if the test says the threshold moved, propose update_athlete_profile as well." It also prescribes the correct date semantics via a concrete case (backfilled FTP should be dated to when it was measured, source self-report) and warns against defaulting to today.

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