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

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)