naftiko: 1.0.0-alpha2 info: label: Fitbit Activity API — Activity description: Fitbit Activity API. Read daily activity summary, log an activity, and read AZM time series for the authorized user. Self-contained Naftiko capability covering one Fitbit business surface. tags: - Fitbit - Activity - Wearable created: '2026-05-25' modified: '2026-05-25' binds: - namespace: env keys: FITBIT_ACCESS_TOKEN: FITBIT_ACCESS_TOKEN capability: consumes: - type: http namespace: activity-activity baseUri: https://api.fitbit.com description: Fitbit Activity API business capability. resources: - name: daily-activity-summary path: /1/user/-/activities/date/{date}.json operations: - name: getDailyActivitySummary method: GET description: Get daily activity summary including steps, distance, calories, AZM, and heart rate zones. outputRawFormat: json inputParameters: - name: date in: path type: string required: true description: YYYY-MM-DD or 'today'. outputParameters: - name: result type: object value: $. - name: azm-time-series path: /1/user/-/activities/active-zone-minutes/date/{date}/{period}.json operations: - name: getAzmTimeSeries method: GET description: Get Active Zone Minutes time series for date and period. outputRawFormat: json inputParameters: - name: date in: path type: string required: true - name: period in: path type: string required: true outputParameters: - name: result type: object value: $. authentication: type: bearer value: '{{env.FITBIT_ACCESS_TOKEN}}' placement: header exposes: - type: rest namespace: activity-activity-rest port: 8080 description: REST adapter for Fitbit Activity API. resources: - path: /v1/activities/summary/{date} name: activity-summary description: Daily activity summary. operations: - method: GET name: getDailyActivitySummary description: Get daily activity summary. call: activity-activity.getDailyActivitySummary with: date: rest.path.date outputParameters: - type: object mapping: $. - type: mcp namespace: activity-activity-mcp port: 9090 transport: http description: MCP adapter for Fitbit Activity API. tools: - name: fitbit-get-daily-activity-summary description: Fetch a daily activity summary (steps, calories, AZM, distance, floors) for the authenticated user. hints: readOnly: true destructive: false idempotent: true call: activity-activity.getDailyActivitySummary with: date: tools.date outputParameters: - type: object mapping: $. - name: fitbit-get-azm-time-series description: Fetch Active Zone Minutes time series for a date and period. hints: readOnly: true destructive: false idempotent: true call: activity-activity.getAzmTimeSeries with: date: tools.date period: tools.period outputParameters: - type: object mapping: $.