Skip to main content
Glama

PB-Runner: Running Coach

predict_race_time

Read-only

Predict a race time for a target distance (metres) on TWO bases, both Riegel-model estimates. all_time = extrapolated from the user's nearest all-time personal best — what they've proven capable of; null in the rare case where no all-time PBs exist yet. current_fitness = Riegel equivalence from their best efforts in the LAST 90 DAYS — what they're good for today; it carries confidence ('solid'|'moderate'|'extrapolated' — how far the source effort's distance sits from the target; marathon estimates never grade above 'moderate') and aging (true when the source effort is over 45 days old — worth suggesting a tune-up effort), plus full source provenance. current_fitness is null when there's no qualifying effort in the window. current_fitness also carries delta_4w_s — the change vs the same prediction made 4 weeks ago (negative = faster now = improving; null when no 4-weeks-ago prediction exists). Lead with current_fitness when coaching toward a near-term race; cite all_time as the proven ceiling. Both are model estimates, not promises. An athlete whose history is all non-Apple-device imports (e.g. Garmin) will legitimately show no auto-detected efforts — those runs carry no per-second speed data to mine; that is a source export limit, not absent fitness, so offer manual PB entry (propose_profile_update -> personal_bests) which drives Race Fitness, training paces and predictions just as well.

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": {
      "distance_m": "<distance_m>"
    },
    "name": "predict_race_time"
  }
}

Input Schema

NameRequiredDescriptionDefault
distance_mYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

With no output schema, the description carries the full burden and does so thoroughly: null conditions for both fields, confidence grading ('solid'|'moderate'|'extrapolated') including the marathon cap, the aging flag threshold (45 days), delta_4w_s sign convention, and source provenance. It also discloses a real data limitation (Garmin imports lacking per-second speed data) and a modeling caveat ('estimates, not promises'), all consistent with the readOnly/non-destructive 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?

The purpose is front-loaded in the first clause, but the body is a long run-on packed with parentheticals and em-dash asides that make the confidence/aging/delta definitions harder to scan than necessary. Nearly all content is substantive, yet a tighter structure (bulleted field semantics) would earn the same information in less space.

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 complex, dual-output predictive tool with no output schema and one undocumented parameter, the description supplies everything an agent needs: both return shapes, their nullability, the meaning and direction of every derived field, and the fallback when data is missing. Nothing material is left for the agent to infer.

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?

Schema coverage is 0% for the single parameter, so the description must compensate; it specifies the unit ('metres') for distance_m, which is essential to avoid a unit error. It does not give bounds, plausible ranges, or format examples, so a point remains missing.

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 ('Predict a race time for a target distance') and immediately defines the two output bases (all_time and current_fitness) with what each represents. An agent can distinguish this from sibling profile/PB tools without opening any schema.

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?

Gives clear operational guidance: 'Lead with current_fitness when coaching toward a near-term race; cite all_time as the proven ceiling,' and names the alternative path (propose_profile_update -> personal_bests) when auto-detected efforts are absent. It lacks explicit when-not-to-call guidance (e.g., no history at all, non-running activities), so it falls just short of the top score.

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