Skip to main content
Glama

Personal bests and race estimates

get_personal_bests
Read-onlyIdempotent

Calculate personal bests for 1 km through marathon from Garmin activities, with race-time estimates for 5 km to marathon based on recent efforts.

Instructions

Fastest 1 km, 1 mile, 5 km, 10 km, half and marathon across many activities, each with date, activity, pace, avg HR and the next two best efforts; plus race time estimates for 5 km to marathon from the last 90 days of the range: your actual time where you ran the distance, otherwise Riegel from the effort closest in distance. Use for 'what's my 5k PB', 'fastest half this year', 'what could I run a 10k in'. These are computed from the user's activity files (fastest continuous stretch within each run), NOT Garmin's official personal records, which the Personal API doesn't provide; estimates are estimates, not Garmin's race predictor. Analyses the newest 150 matching activities per call. The first call over a long range is slow (each activity's file is downloaded once, then cached). The result starts with complete. If complete is false (the fields are then named provisional_*), the bests are NOT final: call again with the same arguments (it continues from the cache) until complete is true, or tell the user the results are partial. Defaults to the last 365 days and running.

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
unitNoPace unit. Defaults to the user's Garmin unit setting.
periodNoNamed period resolved in the user's time zone (weeks start Monday). Use instead of start_date/end_date.
end_dateNoLast day, YYYY-MM-DD, inclusive. Defaults to today.
distancesNoDistances to report. Defaults to all six.
start_dateNoFirst day, YYYY-MM-DD, inclusive. Defaults to 365 days ago.
activity_typeNoParent type key, e.g. running (includes trail and treadmill), walking, hiking.running

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.4.1

TDQS

A4.4/5.0
Behavior5/5

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

Goes well past what readOnlyHint/idempotentHint convey: it discloses the computation method (fastest continuous stretch within each run), the pagination-style completeness protocol (complete flag, provisional_* fields, re-call with the same arguments until complete), the 150-activity-per-call cap, caching behavior, and the slow first call over long ranges. That is exactly the operational context an agent needs to avoid reporting partial results as final.

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?

Front-loads the returnable content and the highest-risk caveat (not Garmin's official PRs), then the operational notes. It is a dense single paragraph, but nearly every sentence carries unique information; only the defaults sentence is redundant with the schema.

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?

With no output schema, the description carries the return-shape burden itself and does so: per-distance best with date, activity, pace, avg HR, next two efforts, and the estimate derivation rule (actual time vs Riegel). The completeness/retry protocol closes the main failure mode for a computationally heavy, paginated tool.

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 the schema already documents defaults for start_date, end_date, distances, activity_type and unit, so the description's 'defaults to the last 365 days and running' is largely repetition. It adds only the mild clarification that activity_type is a parent key covering variants (trail/treadmill), which the schema examples partly cover too.

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 computed resource (fastest 1 km through marathon efforts plus race time estimates) and immediately distinguishes it from the thing an agent might confuse it with: Garmin's official personal records and Garmin's race predictor. The example queries pin the intent further.

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 concrete triggers ('what's my 5k PB', 'fastest half this year', 'what could I run a 10k in') plus defaults of last 365 days and running, so the agent knows when to reach for it. It does not name a sibling tool as an alternative, so it stops short of full when/when-not routing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.