get_inprogress_virtual_challenges
Fetch all virtual challenges currently in progress. Stay updated on active fitness challenges.
Instructions
Get virtual challenges currently in progress
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_inprogress_virtual_challenges"
}
}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';