get_activity
Retrieve detailed Strava activity data by ID to analyze workouts, track performance metrics, and review training progress.
Instructions
Get detailed information for a specific Strava activity by ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| activity_id | Yes | The Strava activity ID |
Implementation Reference
- src/index.ts:145-157 (handler)Registration and handler implementation for the 'get_activity' tool.
server.tool( "get_activity", "Get detailed information for a specific Strava activity by ID", { activity_id: z.number().describe("The Strava activity ID"), }, async ({ activity_id }) => { const activity = await stravaFetch(`/activities/${activity_id}`); return { content: [{ type: "text", text: JSON.stringify(activity, null, 2) }], }; } );