get_non_completed_badge_challenges
Retrieve Garmin badge challenges that you have started but not yet completed, so you can track and finish your ongoing goals.
Instructions
Get badge challenges that are started but not yet completed
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/client/garmin.client.ts:590-592 (handler)Client method that calls the API endpoint to fetch non-completed badge challenges
async getNonCompletedBadgeChallenges(): Promise<unknown> { return this.request(NON_COMPLETED_BADGE_CHALLENGES_ENDPOINT); } - API endpoint constant for non-completed badge challenges
export const NON_COMPLETED_BADGE_CHALLENGES_ENDPOINT = '/badgechallenge-service/badgeChallenge/non-completed'; - src/tools/challenges.tools.ts:57-68 (registration)Tool registration with MCP server, defining name, description, and handler that calls the client method
server.registerTool( 'get_non_completed_badge_challenges', { description: 'Get badge challenges that are started but not yet completed', }, async () => { const data = await client.getNonCompletedBadgeChallenges(); return { content: [{ type: 'text' as const, text: JSON.stringify(data, null, 2) }], }; }, );