createGear
write
Creates a piece of gear (shoes, bike and so on). Usage limits are given in km and minutes. POSTs `/gear-service/gear/v2`; defaults `usageType="DISTANCE", notes=""`; `gearType`/`usageType` upper-cased via `validateSportKey`; **converts** `maxUsageDistanceKm` -> `maxUsageDistanceMeters` (`round(km*1000)`, floor 1) and `maxUsageDurationMin` -> `maxUsageDurationSeconds` (`round(min*60)`, floor 1), the opposite direction from `addWeighIn`'s "send raw" rule; returns the response unchecked.
createGear(gearType, brand, model, name, firstUseDate, usageType?, maxUsageDistanceKm?, maxUsageDurationMin?, notes?, activityTypeKeys?)| Parameter | Type | Optional | Description |
|---|---|---|---|
| gearType | string | no | |
| brand | string | no | |
| model | string | no | |
| name | string | no | |
| firstUseDate | string | no | Calendar date, YYYY-MM-DD (UTC) |
| usageType | "NONE" | "DISTANCE" | "DURATION" | "DATE" | "none" | "distance" | "duration" | "date" | yes | |
| maxUsageDistanceKm | number | yes | |
| maxUsageDurationMin | number | yes | |
| notes | string | yes | |
| activityTypeKeys | string[] | yes |
In Claude this is the create_gear tool.