Skip to main content
Glama

PB-Runner: Running Coach

get_recovery_context

Read-only

The user's recovery and fitness context from passive daily Apple Watch metrics — read this whenever recovery, readiness, fatigue, sleep, HRV, resting HR, training load or VO2max comes up, and ALWAYS before you propose or adjust a training plan. No arguments; returns one pre-shaped payload, each metric windowed to the horizon where it actually means something. Read it and apply your own coaching judgment — there is deliberately no server-side readiness verdict; you are the coach, this is the data. Read load AND recovery together: high acute load with suppressed recovery is a different call from high load with recovery sitting at baseline. Blocks returned: vo2_max — the slow-moving fitness arc: latest (carried forward from the last real reading, with its date), d30_avg / d90_avg / d365_avg, a direction (improving | stable | declining vs the longer window), a vdot_estimate derived from the user's race PBs, and a plain-English gap_note reconciling Apple's VO2max against that race-implied VDOT (they often differ — read the note, don't just quote the number). hrv and resting_hr — near-daily signals that only mean anything against the person's own baseline: latest (+ date), d7_avg, d30_baseline, direction vs that baseline, and n_30d (how many days fed the baseline). For resting HR, lower than baseline is the good direction; for HRV, higher is the good direction. sleep — last_night broken into stages in hours (total_h, rem_h, core_h, deep_h, awake_h, in_bed_h), d7_avg_h, d30_avg_h, and direction; sleep variance matters more than the average, so look at last_night against the week. recent_14d — a day-by-day series [{ date, sleep_h, hrv, rhr, vo2max? }] so an acute disruption (a 2-3h night with resting HR spiking, a suppressed-HRV stretch) is visible to you rather than averaged away — scan it before judging readiness. load — the training-load picture, computed from the user's HR data: today (today's load), d7_load (last 7 days), acute (7-day load average), chronic (42-day load average), balance (chronic − acute, SIGNED: positive = fresh, negative = loaded/fatigued), acute_chronic_ratio (acute vs chronic — this is LOAD-BALANCE, NEVER an injury-risk figure; do not present it as injury risk), and ramp_flag (rising_fast | steady | detraining — again a load-balance label, not a risk verdict). load_metric names the score honestly ('edwards_trimp_5band', an HR-zone-weighted load). There is NO 0–100 readiness score anywhere and never will be — a single number implies a weighting we cannot defend; read the balance and the recovery blocks and make the coaching call yourself. flags — descriptive co-occurrences the model noticed (e.g. acute_load_high_and_hrv_suppressed, resting_hr_elevated_and_loaded, cardiac_drift_high_recent, freshening), each fired only when both sides are present — they are observations for YOU to turn into coaching, never instructions; a flag never means 'skip the session', that call is yours. NULL DISCIPLINE: every absent value is null with a reason ('not_worn' | 'not_yet_computed' | 'insufficient_history' for recovery; 'no_runs' | 'no_max_hr' | 'insufficient_history' for load) — NEVER zero, and never invent a figure. The payload shape is identical whether or not data exists, so a new user simply gets nulls with reasons. Lead with the analysis: weave load and recovery into your coaching naturally, don't lecture about sample size or recite which days are missing. Concrete use: after a poor night or suppressed HRV, or when acute load is running hot against chronic, soften the next session (or swap a hard workout for easy/rest); when sleep, HRV and resting HR all sit at or better than baseline and balance isn't deeply negative, the user is absorbing load well and can take the harder session. Pair with get_athlete_profile (which now also surfaces VO2max) and get_planned_schedule when shaping or revising a plan.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the readOnly/destructive annotations: it discloses that there is no server-side verdict, that every absent value is null with an enumerated reason ('not_worn' | 'not_yet_computed' | 'insufficient_history' etc.) and never zero, that the payload shape is stable for new users, and that acute_chronic_ratio/ramp_flag are load-balance labels that must NOT be presented as injury risk. Those are exactly the misread risks an agent would otherwise hit.

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?

Front-loaded correctly — purpose and trigger conditions come first, payload detail after. But it is roughly 600 words for a zero-argument read, and key warnings are repeated defensively (the 'no 0–100 readiness score' point appears twice, the 'not injury risk' point twice), plus stylistic coaching advice ("don't lecture about sample size") that adds length without adding call-relevant information.

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?

There is no output schema, so the description must carry the entire return contract — and it does, block by block (vo2_max, hrv, resting_hr, sleep, recent_14d, load, flags), including field names, sign conventions for balance, and the null-reason vocabulary. Nothing an agent needs to interpret the payload or decide how to coach from it is 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?

There are zero parameters, so the baseline is 4. The description confirms "No arguments" and instead spends its space documenting the returned payload (block names, fields, directions, null reasons), which is where the real ambiguity for this tool lies.

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+resource: "The user's recovery and fitness context from passive daily Apple Watch metrics," then enumerates the exact domains (recovery, readiness, sleep, HRV, resting HR, training load, VO2max). It explicitly positions itself against siblings by naming get_athlete_profile and get_planned_schedule as companions, so an agent can tell this apart from the profile/schedule tools 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 an explicit trigger list ("read this whenever ... comes up") plus a hard precondition ("ALWAYS before you propose or adjust a training plan"). It also supplies concrete decision rules — soften the next session after a poor night or hot acute load; allow the harder session when sleep/HRV/RHR are at or above baseline and balance isn't deeply negative — which is genuinely actionable when-to-use guidance, not just context.

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