Food log
get_food_logDecrypt and read local daily food-intake logs, newest first, filtered by recent days or a date range for meal and nutrition review.
Instructions
Decrypt daily food-intake logs locally (newest first).
limit counts LOGGED days: by default the newest 14 days that have a
log — not a calendar fortnight. Days with nothing logged are skipped, so
the 14 can reach further back; coverage.span_days and
coverage.days_missing_in_span say how far. since / until
("YYYY-MM-DD", local days, both inclusive) read a calendar window
instead — "what did I eat in the first week of August" — and then
limit applies only if you pass it. Each day's date is its local
calendar day (the same as local_date, and the form log_food_entry
and get_strength_log use). A logged day is roughly 0.5-1k
tokens (more with notes, and Chinese text counts more), so a month can
already be past what a client takes in one result — it then comes back
as result_too_large; ask for fewer days or a narrower window.
Each day carries meals, each meal a list of items with food (name),
optional free-text portion ("1 根" / "300g" / "小份"), optional
per-item/per-meal note, and — when the logging agent estimated them —
optional structured nutrition numbers (kcal, proteinGrams,
fatGrams, carbGrams). Items without those fields need analysis-time
estimation from name + portion; items with them can be summed directly.
Owner's own days only. Pass limit_days to cap how many days return.
Carries a coverage block: quote coverage.days_covered (distinct days, not
the row count) and coverage.span_days beside any average or trend.
coverage.window_satisfied: false alone does NOT mean a short history: it is
also false when older days exist beyond your window. 🔴 Before saying how far
back someone's data goes, read coverage.more_available: true means this
server can decrypt days OLDER than first_day that your limit left behind —
re-read with a larger limit, or quote coverage.oldest_available as the real
start of their history. Never report a limit-shaped window as the extent of
their data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fresh | No | ||
| limit | No | ||
| since | No | ||
| until | No | ||
| limit_days | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||