Skip to main content
Glama

PB-Runner: Running Coach

get_planned_schedule

Read-only

The user's planned training sessions in a date range (default: the current Mon–Sun week). Each: date, session_type (easy|tempo|intervals|long|race|rest), optional target_distance_m / target_duration_s / target_pace_s_per_km / note / interval_spec (a structured spec may attach to any non-rest type). Read this before revising a plan. Optional from/to are YYYY-MM-DD. Each session also carries its completion state so you can coach on adherence: completed_at (the time of the session's first tick, not the run's time; null = not ticked, which does not prove the runner did not run, so check get_runs for a run on that date before calling a session missed), tick_count (POINTS earned, 1-3 = the sum of three independent checks), completion_source ('auto' from a synced run, or 'manual' if the user set it), and match_quality { checks { activity (a qualifying run happened — always true when completed), distance (ran >=90% of the planned distance or duration), pace (within 10% of target pace in the session's intended direction — easy/long not-too-fast, tempo/intervals/race not-too-slow) }, distance_ratio (achieved fraction of target), pace_ratio (run vs target pace; >1 slower, <1 faster), pace_basis ('gap'|'pace'), type_match (false when the run's type differed from the plan) }. A target that was not set auto-passes its check. Manual completion records the Activity point only. Rest days never complete. Use this to see what was done versus planned, and which dimension fell short. Each session also carries authored_by ('ai' = an AI like you wrote it; 'coach' = the athlete's human coach prescribed it on the coach portal or via their own AI; 'athlete' = self-authored; null = written before provenance existed) and matched_run_hk_uuid (the run that satisfied a completed session, for linking). RESPECT coach-authored sessions: when authored_by is 'coach', do not overwrite, move or re-plan that session unless the athlete explicitly asks you to — flag the conflict and let the athlete decide. Each session may carry notes_annotation {count, latest_line} — human notes anchored to that date (see get_shared_notes). Each session also carries display_label — the label the athlete sees for it in the app (e.g. 'Cruise intervals'); use it when naming the session back to them.

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

Input Schema

NameRequiredDescriptionDefault
toNo
fromNo

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?

Annotations already declare readOnly/no-destructive/closed-world, and the description adds substantial context beyond them: the default week window, that completed_at is the first tick time not the run time, that null completion does not prove no run, that rest days never complete, that manual completion only awards the Activity point, and that unset targets auto-pass their checks. These are exactly the non-obvious semantics an agent would otherwise get wrong.

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?

Purpose is correctly front-loaded and nearly every sentence carries real information given there is no output schema. However it is delivered as one dense unbroken block with nested parenthetical braces for match_quality, which makes the return-shape semantics hard to scan.

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 document return fields, and it comprehensively covers completion state, match_quality sub-checks and ratios, provenance, matched run link, note annotations, and display label. An agent has everything needed to interpret and act on results.

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 0% schema description coverage, the description must carry the params, and it does: both are optional, formatted YYYY-MM-DD, with the default window named. It stops short of stating timezone, boundary inclusivity, or behavior when only one bound is supplied, so not quite complete.

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 and resource plus scope: 'The user's planned training sessions in a date range (default: the current Mon–Sun week).' It is immediately distinguishable from get_runs (actual runs) and the coach_* propose/commit siblings, which it references later.

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 when-to-use ('Read this before revising a plan'), an explicit alternative for a specific decision ('check get_runs for a run on that date before calling a session missed'), and a hard constraint on when-not to modify ('when authored_by is coach, do not overwrite, move or re-plan that session unless the athlete explicitly asks').

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