Skip to main content
Glama
KerkhofMe
by KerkhofMe

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
NameRequiredDescriptionDefault
activity_idYesThe Strava activity ID

Implementation Reference

  • 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) }],
        };
      }
    );

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