> ## Documentation Index
> Fetch the complete documentation index at: https://docs.spikeapi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP Tools

> Tools available in the MCP server

## Available Tools

The MCP server provides access to all Spike API endpoints including sleep data, daily statistics, workouts, and user profiles. Tools are automatically discovered and made available to the AI model. However, you can also manually limit the tools that are available to the AI model for security and optimization purposes

## Tools

The MCP server provides the following tools:

### `query_statistics_hourly`

Query hourly health and fitness statistics aggregated by hour intervals. Returns hourly aggregated values for activity patterns like steps, distance, calories, heart rate, and sleep duration.

### `query_statistics_daily`

Query daily health and fitness statistics aggregated by day. Returns daily aggregated values for health metrics including steps, distance, calories, heart rate, sleep data, and wellness scores.

### `query_sleep`

Query sleep data for a specific day. Returns detailed sleep information including sleep stages and duration for the requested date.

### `query_workout`

Query workout data for a specific date range. Returns comprehensive workout information with optional detailed breakdowns including sessions, laps, GPS routes, splits, and segments.

### `get_user_info`

Get user information including application details, user ID, and integrated providers. Returns account overview and connected health data provider status.

### `get_user_properties`

Get user properties including personal health and demographic information. Returns profile data such as timezone, physical measurements, and demographics collected from connected devices.
