Skip to main content
Glama

PB-Runner: Running Coach

propose_planned_sessions

Read-only

Stage a set of planned training sessions for the user to confirm (does NOT write). BEFORE authoring: read get_coach_note (current calibrated working paces + this-week guidance — a calibration OVERRIDES generic VDOT-table paces) and get_athlete_profile. The response carries coaching_context: the active coach-note digest plus pace_warnings for any session staged faster than its calibration — show warnings to the user with the draft and resolve them (confirm intent or restage) before committing. The response may also carry coach_conflicts — staged dates that collide with a coach-authored session; surface those to the user like pace_warnings and let the athlete decide before committing. Pass sessions: each needs date (YYYY-MM-DD) and session_type (easy|tempo|intervals|long|race|rest), plus — for non-rest — at least one of target_distance_m (100–80000), target_duration_s (60–21600), target_pace_s_per_km (120–900), note (≤200 chars), or interval_spec (a structured session — see below); rest days take no targets. Every non-rest session should carry a distance or duration, directly or through interval_spec blocks (a note or pace alone cannot be played as a guided run); prefer interval_spec where a session has structure. One session per date; up to 60 per call. Returns a human-readable draft, any rejected sessions with reasons, and a confirmation_token. Each draft summary is ALREADY rendered in the athlete's display units — present it verbatim, do NOT re-convert it (unlike the raw-metric run/data tools). Show the draft and, ONLY after the user confirms, call commit_planned_sessions with the token. interval_spec composes ANY structured session — not just classic intervals — by listing blocks in order: a uniform set (warm-up + one work/recovery pair ×N + cool-down via the repeat group), OR a composed session by listing each block explicitly: a pyramid (200/400/800/400/200), a progression (e.g. easy→tempo→hard work blocks with no recovery between, descending pace), descending-pace reps, or a long run with a race-pace finish. Attach interval_spec to whichever session_type fits ('intervals', 'long', 'tempo', …; not 'rest'). Translate the athlete's effort/zones into concrete target_pace_s_per_km or target_hr_bpm using get_athlete_profile (max/resting HR, PBs→paces) before authoring. WHAT THE ATHLETE SEES AND FEELS MID-RUN — author to fit it, never ask them to hit a number no screen shows. PACE target on a work/recovery block: shown on every device (Apple Watch/iPhone '@m:ss/km'; Android 'Target m:ss /km'; Garmin 'TARGET m:ss', plus a TARGET ±m:ss gap on its end-of-step result panel and, on a session with one main block, its km/mile split panel). A session-level target_pace_s_per_km is IGNORED when the session has an interval_spec, and without one reaches only a single-block plan built from the session's distance (any device) or duration (not Android; Android also only for easy/long) — so put pace on blocks. Off-pace alert: Garmin always (±15 s/km, no setting); Android, Apple Watch and iPhone only if the athlete turned pace alerts on (off by default, ±8%; Android's guided voice off also silences them); Android/Apple hold it for a block's first ~20 s (first block ~2 min). HR target or range: from app 1.0.19 the Apple Watch and iPhone show it on the step screen beside any pace target and buzz when heart rate stays outside it (a single value ±5 bpm on a work block; on a warm-up, cool-down or recovery only above it; the athlete can turn heart-rate alerts off); a Garmin shows it only on a block with NO pace target (pace wins when both are set) and never cues it; Android never shows or cues it. Warm-up/cool-down PACE targets reach no device under the current server policy (stored only). No device speaks a target value. So: put the pace to hit on work blocks as target_pace_s_per_km; use an HR target or range where effort is held by heart rate (easy runs, warm-up ceilings); still state any HR target in your reply to the athlete (Android and older app versions do not show it); a Garmin shows only one target per step. Detail: get_help topic session-targets-on-screen.

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": {
      "sessions": "<sessions>"
    },
    "name": "propose_planned_sessions"
  }
}

Input Schema

NameRequiredDescriptionDefault
sessionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description is consistent with them while adding substantial non-structured context: the response carries coaching_context, pace_warnings, coach_conflicts, rejected sessions, and a confirmation_token, and draft summaries are pre-rendered in display units. It also discloses limits (60 sessions per call, one per date) and device-level cueing behavior that changes how targets should be authored, none of which is inferable from the annotations.

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?

Core purpose, prerequisites, and the commit handoff are front-loaded, but the midsection runs several hundred words on per-device target display behavior that partly duplicates the interval_spec block descriptions in the schema and is already deferred to 'get_help topic session-targets-on-screen'. The authoring-relevant conclusions are repeated more than once, so the definition is longer than it needs to be even though little of it is off-topic.

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?

For a staging tool with no output schema, the description covers the return surface (draft text, rejected sessions with reasons, confirmation_token, coaching_context), the failure/conflict modes the agent must surface, and the confirmation protocol. An agent has everything needed to author, present, and route to commit without further documentation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Top-level schema description coverage is 0%, so the description carries the full burden and does so thoroughly: date format, the session_type value set, numeric ranges for distance/duration/pace, the 200-char note limit, the requirement of at least one target, and a full prose explanation of interval_spec block roles, repeat ranges, and block limits. This meaningfully exceeds what the raw schema exposes.

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 and resource ('Stage a set of planned training sessions for the user to confirm') and immediately distinguishes itself from the write path with '(does NOT write)' plus the explicit handoff to commit_planned_sessions. An agent can tell this apart from commit_planned_sessions, coach_propose_planned_sessions, and get_planned_schedule without opening a 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 explicit preconditions ('BEFORE authoring: read get_coach_note ... and get_athlete_profile'), an explicit ordering constraint ('ONLY after the user confirms, call commit_planned_sessions with the token'), and named alternatives for calibration vs generic VDOT-table paces. It also states what to do with pace_warnings and coach_conflicts instead of leaving the decision to inference.

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