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
| Name | Required | Description | Default |
|---|---|---|---|
| segment_id | Yes | The Strava segment ID |
Implementation Reference
- src/index.ts:209-220 (handler)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) }], }; }