Skip to main content
Glama
KerkhofMe
by KerkhofMe

get_athlete_stats

Retrieve lifetime and recent fitness statistics for authenticated athletes, including total runs, rides, swims, and distances to analyze training progress.

Instructions

Get lifetime and recent statistics for the authenticated athlete (total runs, rides, swims, distances, etc.)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The `get_athlete_stats` tool handler implementation. It first fetches the athlete ID using `/athlete` and then fetches the stats using `/athletes/${athlete.id}/stats`.
    server.tool(
      "get_athlete_stats",
      "Get lifetime and recent statistics for the authenticated athlete (total runs, rides, swims, distances, etc.)",
      {},
      async () => {
        const athlete = (await stravaFetch("/athlete")) as { id: number };
        const stats = await stravaFetch(`/athletes/${athlete.id}/stats`);
        return {
          content: [{ type: "text", text: JSON.stringify(stats, null, 2) }],
        };
      }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/KerkhofMe/StravaMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server