get_gear
Retrieve all gear and equipment tracked in Garmin Connect, such as shoes and bikes.
Instructions
Get all gear/equipment: shoes, bikes, and other tracked equipment
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/client/garmin.client.ts:483-485 (handler)The actual handler logic for 'get_gear' - calls the Garmin API endpoint to fetch all gear/equipment.
async getGear(): Promise<unknown> { return this.request(`${GEAR_ENDPOINT}?userProfilePk=${this.userProfilePk}`); } - src/tools/profile.tools.ts:106-117 (registration)Registration of the 'get_gear' tool using McpServer.registerTool, with description and handler that calls client.getGear().
server.registerTool( 'get_gear', { description: 'Get all gear/equipment: shoes, bikes, and other tracked equipment', }, async () => { const data = await client.getGear(); return { content: [{ type: 'text' as const, text: JSON.stringify(data, null, 2) }], }; }, ); - The API endpoint constant used by getGear(): '/gear-service/gear/filterGear'
export const GEAR_ENDPOINT = '/gear-service/gear/filterGear';