Skip to main content
Glama

PB-Runner: Running Coach

get_athlete_profile

Read-only

The user's athlete profile: age, sex, max HR, resting HR, goal, target race + date, training phase, units. ALSO returns the structured goal pair goal_time_s + goal_distance_key (a target finish time in seconds at one of 1k|1mi|5k|10k|half|marathon, both null when no time goal is set) — this is what drives the in-app goal-convergence view; settable (and clearable, both-null) via propose_profile_update. ALSO returns goal_source ('ai' | 'athlete' | null): who set the structured goal. If goal_source is 'athlete', the USER set this goal themselves in the app — do NOT overwrite or clear it unless they explicitly ask you to. max_hr_bpm, resting_hr_bpm and vo2_max_ml_kg_min each carry {value, source} where source is "manual" (the user's set value is in use) or "auto" (derived from their data); a null value means not known — never invent one. max_hr_bpm is the value in use: the user's set value when there is one (it wins, even below their highest recorded heart rate), otherwise the highest heart rate on any recorded run of 1 km or more. manual_max_hr_bpm is the value the user set (null if none), and observed_max_hr is the peak with its provenance {value_bpm, run_id, date, source_app} (null when no run has heart rate; run_id/date/source_app null if the run can't be named) — use them to show the user where their max HR comes from, and treat a lone old peak far above their recent maxima with suspicion (a sensor spike is possible). resting_hr_bpm uses recent readings from their watch or Apple Health (the median of the 14 most recent days with a reading) and vo2_max_ml_kg_min the latest reading, whenever one exists (both track up and down); a value the user sets is used only when there is no reading. Use this context to ground coaching (HR zones from max HR, effort vs goal, etc.). Present figures in the user's units (units field). Useful to read at the start of a coaching session to ground your advice in the user's goals and physiology; fields with source 'auto' or a null value may be worth confirming or setting with the user via propose_profile_update (which can also set VO2max and personal bests by hand). ALSO returns personal_bests — the best-of(manual, auto) distance bests, each tagged source 'manual' (the user entered it) or 'auto' (computed from their runs); these anchor VDOT / Critical Speed / race predictions. ALSO returns performance_profile — the derived fitness fingerprint computed from the user's best efforts: vdot (Daniels VDOT, the single race-fitness number — the app shows this to the user as 'Race Fitness'; prefer that label when talking to them); training_paces — the Daniels E/M/T/I/R paces (easy range, marathon, threshold, interval, repetition) in raw metric s/km, the runner lingua franca for prescribing sessions — use these to set target_pace_s_per_km when authoring guided sessions; threshold_s_per_km — the threshold (tempo) pace, which IS the VDOT T-pace; and critical_speed — a Critical Speed + D' two-parameter fit over the best-efforts ladder (cs_m_per_s, cs_pace_s_per_km, d_prime_m = the finite work capacity above CS in metres), the more physiologically precise sustainable-boundary estimate WHEN enough effort-spread exists. CS is RELATED TO BUT DISTINCT FROM the VDOT threshold pace (CS ≈ the 30–45 min boundary, T-pace ≈ 60-min pace) — do not conflate them. EVERY performance_profile value is a model ESTIMATE, never lab-grade — present it as such, and lean on provenance: training_paces derive from VDOT (anchored on the effort nearest 5 km); critical_speed.from lists the exact (distance, time) efforts the fit used, n_points is how many fed it, and reason is non-null when the fit was NOT surfaced (insufficient_efforts | insufficient_spread_for_confident_fit | efforts_too_clustered | implausible_fit) — when reason is set, cs_m_per_s is null, so fall back to the VDOT threshold pace and say so (insufficient_spread_for_confident_fit means only 2 efforts fed the fit — invite one more effort at a different distance). A null vdot/training_paces means no usable best effort yet (never zero). The easy range's slow bound is the raw 59%-VO₂max anchor (intentionally a touch slower than clipped printed Daniels tables). Present performance_profile paces in the user's units: metric s/km as-is; imperial multiply pace_s_per_km by 1.609344 for s/mile.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare a safe read, and the description adds substantial behavior beyond them: provenance semantics for {value, source} pairs, the rule that max_hr_bpm falls back to the highest recorded run HR, the warning to treat a lone old peak as a possible sensor spike, and the hard constraint not to overwrite a goal when goal_source is 'athlete'. The performance_profile section discloses fallback behavior when critical_speed.reason is set and warns that all values are model estimates.

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 ~700-word paragraph of chained em-dash clauses with no headings or bullets, despite covering at least four distinct topics (core fields, goal pair, HR provenance, performance profile). The content is largely substantive, but the density and run-on structure make it hard to scan and easy to miss the critical 'do not overwrite athlete goals' rule buried mid-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?

There is no output schema, so the description carries the full burden of explaining return values, and it does so thoroughly: null-means-unknown, source tags, unit conversion instructions (multiply pace_s_per_km by 1.609344 for imperial), VDOT vs Critical Speed distinction, and the exact meaning of each critical_speed.reason value. An agent could act on the returned data correctly from this text alone.

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 tool takes zero parameters, so there is nothing for the description to disambiguate at the input level; baseline for a no-param tool is 4. The extensive field-level semantics it provides belong to the return payload, not to parameters.

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?

The opening sentence names the resource and enumerates its contents (age, sex, max HR, resting HR, goal, target race, training phase, units), then names the derived blocks it also returns (personal_bests, performance_profile). It is unambiguous that this is a read of the athlete's own profile, and it points at propose_profile_update as the mutation path, separating it from the write siblings.

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?

It gives an explicit use case — 'read at the start of a coaching session to ground your advice in the user's goals and physiology' — and routes writes to propose_profile_update, including confirming auto/null fields with the user. What is missing is any negative guidance, e.g. when to prefer get_personal_bests or get_goal_progress, whose content overlaps with what this tool returns.

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