Skip to main content
Glama

Fitbit MCP Server

get_sleep_by_date_range

Retrieve raw sleep logs in JSON format from Fitbit for a specified date range using 'startDate' and 'endDate' parameters in 'YYYY-MM-DD' format. Maximum range allowed is 100 days.

Instructions

Get the raw JSON response for sleep logs from Fitbit for a specific date range. Requires 'startDate' and 'endDate' parameters in 'YYYY-MM-DD' format. Note: The API enforces a maximum range of 100 days.

Input Schema

NameRequiredDescriptionDefault
endDateYesThe end date for which to retrieve sleep data (YYYY-MM-DD).
startDateYesThe start date for which to retrieve sleep data (YYYY-MM-DD).

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "endDate": { "description": "The end date for which to retrieve sleep data (YYYY-MM-DD).", "pattern": "^\\d{4}-\\d{2}-\\d{2}$", "type": "string" }, "startDate": { "description": "The start date for which to retrieve sleep data (YYYY-MM-DD).", "pattern": "^\\d{4}-\\d{2}-\\d{2}$", "type": "string" } }, "required": [ "startDate", "endDate" ], "type": "object" }

You must be authenticated.

Other Tools from Fitbit MCP Server

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/TheDigitalNinja/mcp-fitbit'

If you have feedback or need assistance with the MCP directory API, please join our Discord server