Skip to main content
Glama
KerkhofMe
by KerkhofMe

get_segment

Retrieve detailed information about a specific Strava segment using its segment ID to analyze performance data and segment characteristics.

Instructions

Get detailed information about a specific Strava segment

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
segment_idYesThe Strava segment ID

Implementation Reference

  • The handler implementation for the 'get_segment' tool.
    server.tool(
      "get_segment",
      "Get detailed information about a specific Strava segment",
      {
        segment_id: z.number().describe("The Strava segment ID"),
      },
      async ({ segment_id }) => {
        const segment = await stravaFetch(`/segments/${segment_id}`);
        return {
          content: [{ type: "text", text: JSON.stringify(segment, 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