Skip to main content
Glama

PB-Runner: Running Coach

coach_get_run

Read-only

COACH TOOL — full single-run detail for a consented athlete's run: identical payload to get_run (summary + per-km splits, segment_summary rep-by-rep breakdown on interval runs, best_efforts, hr_zones, GAP, decoupling). Same conventions as get_run (null ≠ zero; recovery_segment_count 0 means work-only by design). splits[] is empty on any manually-logged run, and may be empty on an imported one — but an import is NOT splitless by rule: where the source supplied no kilometre markers and no usable route clock, splits are derived from the run's own speed series, so most imported runs do carry them. An empty splits[] is expected rather than missing data; the rest of the summary (metrics, best_efforts, elevation) is unaffected. A run may end with one row carrying coverage:"uncovered": the source's samples stop before the run did, so that distance has no split data and no pace. Never estimate or quote a pace for it; the run-level splits_coverage block says how much is covered. The run carries distance_provenance ('recorded' | 'corrected' | 'manual') with the same semantics as get_run — corrected/manual runs never set personal bests and never feed Race Fitness; a manual run's metrics read not_recorded. Clocks: the run's duration_s/pace_s_per_km are MOVING time (pauses excluded). Each split carries clock — wall means its duration_s includes any pause inside that kilometre, so a paused run's split can read far slower than the run's pace without being a bad kilometre; do not compare a wall split against the run pace, or sum wall splits to the run's duration, without allowing for pauses. A split with pace_s_per_km: null and split_quality: "implausible_pace" is a clock artefact, not a fast kilometre. best_efforts and time_bests are WALL-CLOCK windows — the fastest contiguous stretch of the run with any pause inside it counted — so on a paused run a best-effort rung can legitimately read slower than a rep in segment_summary or a run-level pace timed on the moving clock; that is the pause, not a contradiction. Never restate a best effort as a moving-time pace. Garmin (Connect IQ) runs send no pause events, so their split moving time may be priced from pauses INFERRED from gaps in the watch's own sample stream and used only when those gaps reconcile against the run's own two clocks — on such a run a split reading clock: "moving" was priced that way, while one still reading wall means the inference did not apply — the run had no pause to find, or the gap evidence did not reconcile. A run may also carry clock_contradiction — {excess_s, span_s, duration_s}, present only when that run's pause-excluded moving time exceeds its own wall clock (ended_at − started_at) by more than 60 s, which means NEITHER clock on that run can be trusted: the run is still stored and still listed, but it is excluded from every aggregate, every personal best, every race prediction and the training-load model, and its best_efforts and time_bests are null. Do not restate that run's pace or duration as a fact. A Garmin (Connect IQ) run may carry sample_coverage: when truncated is true, the watch's sample series ends unexplained_tail_s before the run did; run-level HR is the watch's own figure when run_hr_source is watch; charts and per-km HR inside the tail are absent, not zero. series_samples: 0 means the watch sent no sample series at all for that run (not a lost tail): truncated and unexplained_tail_s then describe the whole run, not a missing ending.

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": {
      "athlete_id": "<athlete_id>",
      "run_id": "<run_id>"
    },
    "name": "coach_get_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
run_idYesThe run's backend id (from coach_get_runs)
athlete_idYesFrom coach_list_athletes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior5/5

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

Annotations already declare readOnly/closed-world/non-destructive, and the description adds substantial behaviour beyond that: consent framing, the exclusion of clock_contradiction runs from every aggregate, personal best and race prediction, the rule that corrected/manual runs never set personal bests, and the warning never to restate a pace or duration for suspect runs. It does not contradict the annotations and it discloses what an agent must not do with particular outputs.

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 sprawling block of roughly 450 words with no headings or grouping; caveats about splits, clocks, clock_contradiction, Garmin sample inference and sample_coverage all run together in unstructured prose. The lead sentence is front-loaded correctly, but the middle becomes a stream of edge cases that is hard to scan and far longer than a tool-selection description needs.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read tool with no output schema and only two required params, the definition is unusually complete about payload shape and data hazards, which is exactly where an agent would otherwise misreport numbers. What is missing is the one thing the payload detail crowds out: an explicit statement of when to call this instead of get_run.

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 100% and both parameters are already described in the schema with provenance pointers (run_id from coach_get_runs, athlete_id from coach_list_athletes). The description adds no further meaning about either parameter — no format, no failure mode for a wrong athlete_id. Baseline 3 applies when the schema does the work.

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?

States a specific verb+resource ("full single-run detail for a consented athlete's run") and enumerates the payload contents (splits, segment_summary, best_efforts, hr_zones, GAP, decoupling), so the agent knows exactly what it gets. Differentiation from the sibling get_run is only implied by "COACH TOOL" and "identical payload to get_run" plus "consented athlete" — it never says plainly 'this is the coach-scoped equivalent of get_run'. Clear purpose, weak explicit sibling routing.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage context is implied: the "COACH TOOL" prefix and "consented athlete" framing suggest the coach/consent scope, and "identical payload to get_run" implies the choice between the two. But there is no explicit statement of when to prefer this over get_run or coach_get_run_streams, and no when-not condition. The reader must infer the selection rule from labeling.

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