> ## 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.

# Goals

> Reference for managing client personal targets and goals.

The `goals` module provides tools to check client target metrics, weight goals,
behavior targets, nutrition targets, and measurement goals.

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

***

## Available Tools

### `get_client_goals`

Retrieve client targets and active goals, including daily and weekday-specific
nutrition targets.

Measurement goals are restricted to active, non-deleted settings and valid
measurement types visible in the connected company. Custom goals owned by
another company are excluded, even when both companies share the client.
System measurement goals remain shared client settings.

* **Type:** Read-only
* **Important Input Fields:**
  * `clientId` (string, required): Unique client ID.

### `update_client_goals` **`Write`**

Update safe stored goal fields for an existing client.

* **Type:** Write
* **Important Input Fields:**
  * `clientId` (string, required): Unique client ID.
  * goal fields (optional): Provide only the goal fields that should change.

### `set_client_nutrition_targets` **`Write`**

Set daily and optional weekday-specific nutrition targets for a client.

* **Type:** Write
* **Important Input Fields:**
  * `clientId` (string, required): Unique client ID.
  * `daily` (object, optional): Default daily calories and macro targets.
  * `weekly.enabled` (boolean, optional): Whether weekday-specific nutrition targets are active.
  * `weekly.<weekday>` (object, optional): Calories and macro targets for a specific weekday such as `weekly.monday`.

***

## Natural Language Examples

* *"What are the current fitness goals set for client client\_5f81?"*
* *"Retrieve active goals for client client\_9823."*
* *"Update Jane's daily step target to 9000."*
* *"Set Jane's daily nutrition target to 2300 kcal and 170g protein."*

***

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

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": "goal-1",
  "method": "tools/call",
  "params": {
    "name": "get_client_goals",
    "arguments": {
      "clientId": "client_abc123"
    }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.