Loki Docs
Tools › Meals › Get a macro summary

Get a macro summary

get_macro_summaryReads
What it does
Reads only. Changes nothing.
Permission
Meals, read meals:read

What your assistant is told

Get the macro + hydration tally vs the user's targets for one LOCAL day. date is YYYY-MM-DD in the user's local calendar; pass their IANA tz (e.g. "Europe/Bucharest") so the day is bucketed locally — meals are stored in UTC, so without tz a late-night meal can fall in the wrong day. Returns consumed and target values; compute remaining = target − consumed.

Parameters

  • datetext, requiredLocal calendar date, YYYY-MM-DD.
  • tztext, optionalIANA time zone, e.g. "Europe/Bucharest". Omit for UTC.