get_inprogress_virtual_challenges
Fetch all virtual challenges currently in progress. Stay updated on active fitness challenges.
Instructions
Get virtual challenges currently in progress
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/client/garmin.client.ts:594-596 (handler)Client method that makes the HTTP request to fetch in-progress virtual challenges from the Garmin API endpoint.
async getInProgressVirtualChallenges(): Promise<unknown> { return this.request(INPROGRESS_VIRTUAL_CHALLENGES_ENDPOINT); } - src/tools/challenges.tools.ts:70-81 (registration)Registers the 'get_inprogress_virtual_challenges' tool on the MCP server, calling the client method and returning JSON.
server.registerTool( 'get_inprogress_virtual_challenges', { description: 'Get virtual challenges currently in progress', }, async () => { const data = await client.getInProgressVirtualChallenges(); return { content: [{ type: 'text' as const, text: JSON.stringify(data, null, 2) }], }; }, ); - src/tools/challenges.tools.ts:71-73 (schema)Schema/description for the tool: no input parameters, description 'Get virtual challenges currently in progress'.
'get_inprogress_virtual_challenges', { description: 'Get virtual challenges currently in progress', - Endpoint constant pointing to '/badgechallenge-service/virtualChallenge/inProgress' used by the client handler.
export const INPROGRESS_VIRTUAL_CHALLENGES_ENDPOINT = '/badgechallenge-service/virtualChallenge/inProgress';