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

# Habits

> Reference for managing client daily habits and tracking compliance.

The `habits` module provides tools to inspect client habits (like hydration or sleep targets) and check progress entries.

| Key                  | Value               |
| :------------------- | :------------------ |
| **Module Key**       | `habits`            |
| **Sensitivity**      | `health`            |
| **Consent Required** | `healthDataConsent` |

***

## Available Tools

### `list_client_habits`

List client assigned habits and frequencies.

* **Type:** Read-only
* **Important Input Fields:**
  * `clientId` (string, required): Unique client ID.
  * `page` (integer, optional): Page number.
  * `limit` (integer, optional): Items per page.

### `get_habit_entries`

Retrieve daily progress logs of habit check-ins and consistency.

* **Type:** Read-only
* **Important Input Fields:**
  * `clientId` (string, required): Unique client ID.
  * `habitId` (string, optional): Specific habit filter.
  * `dateFrom` (string, optional): Start date range filter.
  * `dateTo` (string, optional): End date range filter.

***

## Natural Language Examples

* *"Is client client\_5f81 keeping up with their assigned hydration habit?"*
* *"Retrieve habit entries for Sarah Jenkins from the last two weeks."*

***

## JSON-RPC Call Example (`get_habit_entries`)

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": "habit-1",
  "method": "tools/call",
  "params": {
    "name": "get_habit_entries",
    "arguments": {
      "clientId": "client_abc123",
      "dateFrom": "2026-06-01"
    }
  }
}
```
