Skip to main content
Glama
athlete.ts1.47 kB
import { z } from 'zod'; import { StravaClient } from '../strava-client.js'; export function createAthleteTools(client: StravaClient) { return { get_athlete: { description: 'Get the authenticated athlete profile', inputSchema: z.object({}), handler: async () => { const athlete = await client.getAthlete(); return { content: [ { type: 'text' as const, text: JSON.stringify(athlete, null, 2), }, ], }; }, }, get_athlete_stats: { description: 'Get athlete statistics (totals and recent activities)', inputSchema: z.object({ athlete_id: z.number().describe('Athlete ID'), }), handler: async (args: { athlete_id: number }) => { const stats = await client.getAthleteStats(args.athlete_id); return { content: [ { type: 'text' as const, text: JSON.stringify(stats, null, 2), }, ], }; }, }, get_athlete_zones: { description: 'Get athlete zones (heart rate and power zones)', inputSchema: z.object({}), handler: async () => { const zones = await client.getAthleteZones(); return { content: [ { type: 'text' as const, text: JSON.stringify(zones, 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/gcoombe/strava-mcp'

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