Skip to main content
Glama

PB-Runner: Running Coach

get_personal_bests

Read-only

The user's personal bests. distance_bests = the best-of(manual, auto) for each distance (1k/1mi/5k/10k/half/marathon): the faster of the fastest rolling effort across all runs and any hand-entered PB the user set; each carries a source ("manual" | "auto") and a best ({time_s, date, run_id}) — run_id is null when a manual PB won. time_bests = furthest distance in 20min/60min (auto only). A best of null means neither a run nor a manual entry covers that distance — never report it as zero. Report times and distances directly in the user's units. 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

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already cover safety (readOnlyHint true, destructiveHint false, closed world), and the description adds substantial semantics beyond them: the best-of merge rule between manual and auto PBs, the source and best field shapes, the run_id null case, and the meaning of a null best. It also discloses a real limitation — Garmin/non-Apple imports carry no per-second speed data, so empty auto results are an export limit, not absent fitness — which prevents a serious misinterpretation.

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?

Information is front-loaded and the 'distance_bests =' / 'time_bests =' structure makes the return shape scannable. The closing Garmin paragraph is long and slightly tangential, but it earns its place by pre-empting a likely misreading of empty results.

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 carry the full burden of explaining return values, and it does — field names, value shapes, the manual/auto precedence rule, null semantics, and unit handling. Nothing an agent needs in order to call and correctly interpret this tool 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?

The tool takes no parameters, so per the baseline this scores 4. The description correctly adds no parameter noise and instead spends its words on output semantics, which is the right allocation for a zero-argument call.

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?

The definition states the resource precisely and unpacks it: 'The user's personal bests' followed by explicit definitions of distance_bests and time_bests and their sub-fields. An agent can tell this is a read-only PB lookup distinct from propose_profile_update. The only weakness is that the opening is a noun fragment with no explicit verb (get/return), leaving the action implied by the name.

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?

It gives clear contextual guidance: 'never report it as zero' when a best is null, 'report times and distances directly in the user's units', and it routes the manual-entry path to a named sibling (propose_profile_update -> personal_bests). What it lacks is an explicit statement of when to call this versus siblings like get_athlete_profile or get_progression, so selection guidance is implied rather than stated.

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