Skip to main content
Glama

PB-Runner: Running Coach

propose_profile_update

Read-only

Stage an athlete-profile change for the user to confirm. Pass ONLY fields the user explicitly provided — never invent values. Returns a current->proposed diff (scalars in diff, manual personal bests in personal_bests_diff), any rejected fields, warnings (accepted values the user should double-check, each with the reason), and a confirmation_token. Show the diff AND any warnings to the user and, ONLY after they explicitly confirm, call commit_profile_update with the token. Scalar fields: date_of_birth (YYYY-MM-DD), sex, max_hr_bpm (100-240, a whole number — a max HR the user sets is used even below their highest recorded heart rate, and warnings then names that peak's value, date and run so they can check the value isn't too low before they confirm; null clears it, returning to the recorded peak), resting_hr_bpm (30-100 — used only when their watch or Apple Health has no resting-HR reading), vo2_max_ml_kg_min (20-90, ml/kg/min — for a device that never recorded one: a watch or Apple Health VO2max reading, when one exists, is used instead), goal, target_race, target_race_date (YYYY-MM-DD), training_phase (base|build|peak|taper|offseason), units (metric|imperial). STRUCTURED GOAL: goal_time_s + goal_distance_key encode a target finish time at a PB-ladder distance — YOUR job is the structuring: when the user states a time goal in words, translate it (e.g. "sub-40 10K" -> goal_time_s 2400 + goal_distance_key "10k"; "3:30 marathon" -> goal_time_s 12600 + goal_distance_key "marathon"). The two are ALWAYS a pair: pass both to set a goal, or BOTH explicitly null to clear it — one without the other is rejected. goal_distance_key one of 1k|1mi|5k|10k|half|marathon; goal_time_s must be plausible for the distance (the manual-PB band with the slow end widened x1.5 — an ambitious-but-slow goal is fine, a typo is not). This structured pair drives the in-app goal-convergence chart and prediction; the free-text goal stays for narrative context — set both when the user states a time goal. RESPECT PROVENANCE: get_athlete_profile returns goal_source — if it is 'athlete' the user set this goal themselves in the app, so do NOT overwrite or clear it unless they explicitly ask. ALSO accepts personal_bests: an array of {distance_key, time_seconds, set_on?} to hand-enter the user's race bests (e.g. a 5K run on another watch before they used this app) — distance_key one of 1k|1mi|5k|10k|half|marathon, time_seconds the finish time in seconds, optional set_on (YYYY-MM-DD). A manual PB is merged BEST-OF with the app-computed best (the faster of the two wins per distance), and feeds VDOT / Critical Speed / race predictions. Use this whenever the user tells you a race result the app doesn't already know.

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": "propose_profile_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
sexNo
goalNo
unitsNo
max_hr_bpmNoMax HR (100-240 bpm, a whole number), or null to clear a set value. A set value is used even below the highest recorded peak (see warnings); null returns to that peak.
goal_time_sNoStructured goal: target finish time in seconds (e.g. sub-40 10K -> 2400). MUST be paired with goal_distance_key; pass both null to clear the goal.
target_raceNo
date_of_birthNo
personal_bestsNoHand-entered personal bests, merged best-of with the app-computed bests; feed VDOT/CS/predictions.
resting_hr_bpmNoResting HR (30-100 bpm, a whole number).
training_phaseNo
target_race_dateNo
goal_distance_keyNoStructured goal distance: 1k | 1mi | 5k | 10k | half | marathon. MUST be paired with goal_time_s; pass both null to clear the goal.
vo2_max_ml_kg_minNoManual VO2max (20-90 ml/kg/min); used only when there is no watch or Apple Health VO2max reading.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and non-destructive, which matches the staging semantics rather than contradicting them. Beyond that, the description discloses what is returned (diff, personal_bests_diff, rejected fields, warnings with reasons, confirmation_token) and non-obvious behaviors: max HR is honored even below the recorded peak and flagged in warnings, manual PBs merge best-of with computed bests, and goal_time_s/goal_distance_key are rejected unless passed as a pair. It does not discuss limits on how many fields can be staged or what happens to a stale token, but coverage is strong.

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 purpose, then the confirm/commit contract, then field semantics — a sensible order. It is long and dense with nested parentheticals, and some range/enum detail duplicates the schema, but nearly every sentence carries behavior an agent would otherwise have to guess.

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, and the description fully covers the return contract (diff keys, warnings, rejected fields, confirmation token) plus the required next step. For a 13-parameter staging tool with a commit sibling, nothing an agent needs in order to call it correctly 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?

With only 46% schema description coverage and 13 parameters, the description compensates well: formats for date_of_birth and target_race_date, ranges for max_hr/resting_hr/vo2max, fallback semantics for resting HR and VO2max, the pairing and plausibility rule for the structured goal, and the personal_bests shape. A few parameters (sex, target_race, goal beyond narrative context) get no semantic detail beyond the schema's type.

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: 'Stage an athlete-profile change for the user to confirm.' It immediately distinguishes itself from the sibling commit_profile_update by naming the staging/commit split, so an agent knows this tool never applies the change itself.

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 workflow (propose → show diff and warnings → call commit_profile_update with the token only after explicit confirmation) plus a negative rule: do not overwrite or clear a goal when goal_source is 'athlete' unless the user asks. It also states the triggering condition ('use this whenever the user tells you a race result the app doesn't already know').

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