get_cycling_ftp
Retrieve your latest cycling Functional Threshold Power (FTP) from Garmin Connect to track performance and set training zones.
Instructions
Get latest Functional Threshold Power (FTP) for cycling
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/performance.tools.ts:158-169 (registration)Tool registration for 'get_cycling_ftp' via server.registerTool. No input schema needed (no parameters). Calls client.getCyclingFTP() and returns JSON-stringified result.
server.registerTool( 'get_cycling_ftp', { description: 'Get latest Functional Threshold Power (FTP) for cycling', }, async () => { const data = await client.getCyclingFTP(); return { content: [{ type: 'text' as const, text: JSON.stringify(data, null, 2) }], }; }, ); - src/client/garmin.client.ts:448-450 (handler)Handler method getCyclingFTP() on GarminClient. Makes a GET request to CYCLING_FTP_ENDPOINT.
async getCyclingFTP(): Promise<unknown> { return this.request(CYCLING_FTP_ENDPOINT); } - Constant CYCLING_FTP_ENDPOINT defining the API endpoint path for latest cycling functional threshold power.
export const CYCLING_FTP_ENDPOINT = '/biometric-service/biometric/latestFunctionalThresholdPower/CYCLING';