{"at":"2026-11-23T02:34:06.505Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T02:34:07.502Z","dir":"received","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"Vaultbeat Health","version":"0.9.3"}},"cacheScope":"private","capabilities":{"prompts":{"listChanged":true},"resources":{"listChanged":true,"subscribe":true},"tools":{"listChanged":true}},"instructions":"Vaultbeat serves one person's Apple Health history, end-to-end encrypted in the cloud and decrypted only on this machine. You are reading a real body's record, so the cost of a confident wrong sentence is higher than the cost of saying you do not know.\n\nOrder of operations: call `vaultbeat_doctor` first — it reports which kinds actually have data and is the only tool that can tell apart the several reasons a kind might be empty. `list_metric_series` then names every one-number-per-day series with how much data backs it; read them with `get_metric` (one name, a list, or all — it aggregates server-side, so do not pull raw days to average them yourself). Sleep has two tools: `get_sleep_nights` — every night as one compact row, a year in one call, the tool for any period — and `get_sleep_detail` for one or two nights in depth; its timing, stages and awakenings are also `get_metric` series. There is no `get_sleep`. Workouts, strength, food, notes, symptoms, states of mind (moods) and cycle have their own tools, and sex, age and height are `get_user_profile`.\n\nA short result has three different causes and `coverage.more_available` separates them, so read it before you explain a short history to anyone.\n· `more_available: true` — YOUR `limit` is the boundary, nothing else. Older days are sealed here and decryptable right now; you simply did not ask for them. Every `limit` defaults to a page size, not to a lifetime, and on the dense kinds it counts SAMPLES: 30 rows of hourly data is a day and a quarter, not a month. Re-read with a larger `limit`, or quote `coverage.oldest_available` as the real start of their history. Reporting this as 'you only have N days' tells a person their records are missing when they are sitting right here.\n· `more_available: false` and the history is still short — THEN it is a plan boundary or a fresh pairing. From app 1.2.9 the cloud is the paid product: an account uploads its whole history while it or its partner has a membership or a live trial, and nothing new otherwise (what it already uploaded stays readable here). On app 1.2.8 and earlier a free account and a trial upload only the last 7 days. Either way that is all this server can decrypt, and re-syncing in the iOS app will not change it.\n· `more_available: null` — the tool did not say. Do not read it as either.\n\nWrites (`log_*`) record what the user told you, not what you inferred. Read the day first, append rather than replace when a tool offers both, and never invent a value to fill a field the user did not give you.\n\nStyle rules: say what the data covers before you conclude anything — quote `coverage.days_covered` (distinct days, not the row count) and `coverage.span_days` from the tool result, name how recent the newest day is. `coverage.window_satisfied: false` alone does not mean a short history: it is also false when older days exist beyond your window. Before you tell anyone how far back their records go, read `coverage.more_available`: when it is `true` there are older days this server can decrypt that your `limit` simply did not ask for, so widen the `limit` or quote `coverage.oldest_available` — a default-sized page is never evidence that someone's history is short. Describe, do not prescribe: no diagnosis, no treatment advice, no invented scores, grades or verdicts. State an association as an association, never as a cause. Quote the actual numbers, units and dates you used. And when the honest answer is that you do not know, give the last thing that IS known with its timestamp and stop there, rather than filling the gap with something that reads like a measurement.\n\nAbsence rule: an empty result never means the value was zero. It means one of four different things — the data was never recorded, Apple Health permission was not granted for that type, the iOS app is older than the feature, or this server was bound recently and its own encrypted copy of the history has not finished syncing yet. Those need opposite fixes, so do not pick one. Call `vaultbeat_doctor`, which is the tool that tells them apart, and report what it says.","resultType":"complete","supportedVersions":["2026-07-28"],"ttlMs":0}}}
{"at":"2026-11-23T02:34:07.502Z","dir":"sent","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T02:34:07.504Z","dir":"received","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"Vaultbeat Health","version":"0.9.3"}},"cacheScope":"private","resultType":"complete","tools":[{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true},"description":"Diagnose this Vaultbeat MCP install, and report which data types are unavailable.\n\nCall this when a read tool returns nothing, or when anything fails, before\ntelling the user their data is missing. Two distinct things come back:\n\n`checks` — the install/binding chain: config present, keypair usable,\nbinding valid, cloud reachable, a real record decryptable end to end.\nA failure here means the setup is broken, not that data is absent.\n\n`capabilities` — which metric kinds actually have data, and which empty\nones are explained by an older iOS app (with the release date each\nneeds). An empty kind is NOT proof the user never recorded it: their app\nmay predate the feature entirely. A kind under `kinds_not_checked` could\nnot be counted this run; it is neither empty nor full.\n\n`scope` — what this report does NOT cover. Everything here can pass and\nthe setup still be broken on the client side: this server is a subprocess\nof your MCP client, so it cannot read the client's config file, cannot see\nwhich environment variables the client forwarded, and cannot tell whether\nit was launched with the arguments the user believes. A green report never\nclears the client. `scope.env_overrides_received` lists which Vaultbeat\nvariables actually arrived — check that before guessing at the client's\nenvironment.\n\n`binding` — the local pairing state (which account, which server, whether\ndemo mode is serving synthetic data). No keys or tokens.\n\nThis runs a cloud round trip, so it takes a moment.\n","inputSchema":{"additionalProperties":false,"properties":{},"title":"vaultbeat_doctorArguments","type":"object"},"name":"vaultbeat_doctor","outputSchema":{"additionalProperties":true,"title":"vaultbeat_doctorDictOutput","type":"object"},"title":"Run diagnostics"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Decrypt recent symptoms locally, grouped by data owner — both sources.\n\nSENSITIVE. Each entry in `owners` carries `owner_user_id` and two lists:\n· `days` — symptoms imported from Apple Health (cramps, headache, fatigue,\n  coughing…), one row per day with each sample's severity\n  (mild/moderate/severe/present/…). These reach this server only when the\n  user opted in on iOS — their own AI toggle, or the partner-AI toggle for\n  a partner's. `symptom_counts` counts logged DAYS per type.\n· `reported` — episodes a person reported themselves, through\n  `log_symptom` or the Vaultbeat app: `entry_id`, `symptom_type`,\n  `display_name` (their own words), `severity`, `local_date`, `onset_at` /\n  `end_at` (`end_recorded: false` means no end was logged — ask, do not\n  assume it is still going), `duration_minutes`, `body_location`,\n  `triggers`, `note`. `reported_counts` counts EPISODES per type.\nA type that exists in Apple Health is spelled the same in both lists\n(`healthkit_type: true`), so \"headache\" from either source is one symptom.\nTo correct or remove a reported entry use `update_symptom` /\n`delete_symptom` with its `entry_id`; imported days are edited in Apple Health.\nStays on-device, never re-exported.\n\nReturns YOUR symptoms by default; `partner=true` returns your partner's\nApple Health `days` only (if they share symptoms with you from their own\napp). A partner's `reported` episodes never reach you: the app and\n`log_symptom` seal them for their owner's own AI alone, so an empty\n`reported` under `partner=true` means \"not shareable\", not \"none logged\".\n\nCarries a `coverage` block: quote `coverage.days_covered` (distinct days, not\nthe row count) and `coverage.span_days` beside any average or trend.\n`coverage.window_satisfied: false` alone does NOT mean a short history: it is\nalso false when older days exist beyond your window. 🔴 Before saying how far\nback someone's data goes, read `coverage.more_available`: `true` means this\nserver can decrypt days OLDER than `first_day` that your `limit` left behind —\nre-read with a larger `limit`, or quote `coverage.oldest_available` as the real\nstart of their history. Never report a `limit`-shaped window as the extent of\ntheir data. `limit` cuts each list on its own: that many imported days AND that\nmany reported entries, so a day with three reports can come back with one.\n","inputSchema":{"additionalProperties":false,"properties":{"fresh":{"default":false,"title":"Fresh","type":"boolean"},"limit":{"default":120,"title":"Limit","type":"integer"},"partner":{"default":false,"title":"Partner","type":"boolean"}},"title":"get_symptomsArguments","type":"object"},"name":"get_symptoms","outputSchema":{"additionalProperties":true,"title":"get_symptomsDictOutput","type":"object"},"title":"Symptoms"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Decrypt recent states of mind (how the person felt) locally — both sources.\n\nSENSITIVE. Apple Health's \"State of Mind\": each record is one feeling with\n`valence` (-1 very unpleasant … 0 neutral … +1 very pleasant),\n`valence_classification` (Apple's seven regions, veryUnpleasant …\nveryPleasant — use these words rather than inventing a grade), `labels`\n(Apple's feeling words: drained, stressed, calm, grateful…),\n`associations` (the life area: work, family, partner, health…), `kind`\n(`momentaryEmotion` = how they felt at that moment, `dailyMood` = how the\nday went overall), `local_date` / `local_time`.\n`source` says where it came from:\n· \"apple_health\" — logged by the person on their Watch, in the Health app\n  or in another app, and imported by their iPhone (`app` names it);\n· \"ai\" — recorded by an AI through `log_state_of_mind` (`entry_id`,\n  `note`). Remove a mistaken one with `delete_state_of_mind`.\nEach owner also carries `daily` (per day: `count`, `mean_valence`,\n`lowest_valence`, `highest_valence`, `daily_mood_valence`) and counts per\nregion, label and life area. Describe what was logged; a day with one\nrecord says far less than a day with ten — quote `count` beside any\naverage, and never read a day with no record as a neutral day.\n\nBy default the newest 100 records (about three months of daily moods).\n`since` / `until` (\"YYYY-MM-DD\", local days, both inclusive) read a\ncalendar window instead — \"how was I in March\", or anything older than\nthe default page — and then `limit` applies only if you pass it. A\nrecord with its tallies is roughly 450 bytes, so about 130 fit in one\nresult; a longer window comes back as `result_too_large` — read it a\nmonth or a quarter at a time.\n\nReturns YOUR records by default; `partner=true` returns your partner's —\nonly if they turned on sharing their moods with your AI in their own\nVaultbeat app (off by default). Stays on-device, never re-exported.\n\nCarries a `coverage` block: quote `coverage.days_covered` (distinct days, not\nthe row count) and `coverage.span_days` beside any average or trend.\n`coverage.window_satisfied: false` alone does NOT mean a short history: it is\nalso false when older days exist beyond your window. 🔴 Before saying how far\nback someone's data goes, read `coverage.more_available`: `true` means this\nserver can decrypt records OLDER than `first_day` that your read left behind —\nread them with a `since` / `until` window ending before `first_day` (a much\nlarger `limit` does not fit in one result), or quote\n`coverage.oldest_available` as the real start of their history. Never report a\n`limit`-shaped window as the extent of their data.\n","inputSchema":{"additionalProperties":false,"properties":{"fresh":{"default":false,"title":"Fresh","type":"boolean"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Limit"},"partner":{"default":false,"title":"Partner","type":"boolean"},"since":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Since"},"until":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Until"}},"title":"get_state_of_mindArguments","type":"object"},"name":"get_state_of_mind","outputSchema":{"additionalProperties":true,"title":"get_state_of_mindDictOutput","type":"object"},"title":"State of mind (moods)"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Decrypt recent free-text notes (day annotations) locally.\n\nSENSITIVE free text. Each note carries `owner_user_id` (who wrote it),\n`target_kind`, and `target_date` (the local day it annotates) — join\nagainst the same-day metric data for pattern analysis. Kinds:\n\"sleep\" | \"menstrual\" are written manually in the iOS app by either\npartner (e.g. \"昨晚舍友很吵\" on a sleep day), and \"day\" is what the\nperson wrote about the day itself in the app's notes list (app 1.3.0+);\n\"general\" is\nagent-authored via `log_note`; \"mood\" notes are ones an AI wrote before\nmoods moved to `get_state_of_mind` — read them here, write no new ones.\nPass target_kind to filter.\nStays on-device, never re-exported.\n\nReturns notes about YOU by default. `partner=true` returns notes about your\npartner: the ones they wrote themselves and shared, plus the ones your AI\nrecorded about them (`about: \"partner\"`, written with\n`log_note_append(partner=true)`).\n\nCarries a `coverage` block: quote `coverage.days_covered` (distinct days, not\nthe row count) and `coverage.span_days` beside any average or trend.\n`coverage.window_satisfied: false` alone does NOT mean a short history: it is\nalso false when older days exist beyond your window. 🔴 Before saying how far\nback someone's data goes, read `coverage.more_available`: `true` means this\nserver can decrypt days OLDER than `first_day` that your `limit` left behind —\nre-read with a larger `limit`, or quote `coverage.oldest_available` as the real\nstart of their history. Never report a `limit`-shaped window as the extent of\ntheir data.\n","inputSchema":{"additionalProperties":false,"properties":{"fresh":{"default":false,"title":"Fresh","type":"boolean"},"limit":{"default":120,"title":"Limit","type":"integer"},"partner":{"default":false,"title":"Partner","type":"boolean"},"target_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Target Kind"}},"title":"get_notesArguments","type":"object"},"name":"get_notes","outputSchema":{"additionalProperties":true,"title":"get_notesDictOutput","type":"object"},"title":"Notes"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Decrypt recent strength-training sessions locally (newest first).\n\nExercise-level detail HealthKit's workout type cannot carry: each\nsession lists exercises with their sets (weightKg × reps), an optional\nsession note, and `total_volume_kg` (Σ weight × reps). Logged manually\nin Vaultbeat; owner's own sessions only — strength has no partner\nfan-out. Join `date` against sleep/HRV/weight for training-load\nanalysis. Pass limit_days to cap how many sessions return.\n`duplicate_sessions`, when present, lists stored entries that only repeat\nanother session of the same day; they are already left out of `sessions`\nand `session_count`, so do not add their volume back.\n\nCarries a `coverage` block: quote `coverage.days_covered` (distinct days, not\nthe row count) and `coverage.span_days` beside any average or trend.\n`coverage.window_satisfied: false` alone does NOT mean a short history: it is\nalso false when older days exist beyond your window. 🔴 Before saying how far\nback someone's data goes, read `coverage.more_available`: `true` means this\nserver can decrypt days OLDER than `first_day` that your `limit` left behind —\nre-read with a larger `limit`, or quote `coverage.oldest_available` as the real\nstart of their history. Never report a `limit`-shaped window as the extent of\ntheir data.\n","inputSchema":{"additionalProperties":false,"properties":{"fresh":{"default":false,"title":"Fresh","type":"boolean"},"limit":{"default":120,"title":"Limit","type":"integer"},"limit_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Limit Days"}},"title":"get_strength_logArguments","type":"object"},"name":"get_strength_log","outputSchema":{"additionalProperties":true,"title":"get_strength_logDictOutput","type":"object"},"title":"Strength log"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Log one strength-training session on the owner's behalf (agent write).\n\n⚠️ THIS TOOL DELETES. The supplied `exercises` become the day's ENTIRE\nsession — any exercise you don't re-send is silently deleted. If you meant\nto ADD to a day rather than replace it, STOP and call\n`log_strength_append` instead; it cannot delete anything.\n\n(`merge=True` still does the same thing as `log_strength_append` and\nkeeps working for callers that already use it. New callers should use\nthe separate tool: which one you called is visible to the owner, a flag\nburied in the arguments is not.)\n\nThe result carries `replaced_exercises` — the names this call deleted.\nIf that list is non-empty and you did not intend to replace the day, you\njust destroyed those exercises; re-send them with `merge=True`.\n\n`note=None` LEAVES THE EXISTING NOTE ALONE (pass `note=\"\"` to clear it).\n\n`date` is the LOCAL calendar day the session happened, \"YYYY-MM-DD\".\n`exercises` is `[{\"name\": \"卧推\", \"sets\": [{\"weightKg\": 30, \"reps\": 8}, ...]}, ...]`.\nEncrypted end-to-end before it ever leaves this machine — this server\nnever sends plaintext. Requires a bind made after this feature shipped\n(carries owner_user_id/owner_public_key_base64/owner_device_id from\nthe pairing handshake); an older bind must re-pair by running\n`uvx vaultbeat-apple-health@latest bind` in a terminal.\n","inputSchema":{"additionalProperties":false,"properties":{"date":{"title":"Date","type":"string"},"exercises":{"items":{"additionalProperties":true,"type":"object"},"title":"Exercises","type":"array"},"merge":{"default":false,"title":"Merge","type":"boolean"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Note"}},"required":["date","exercises"],"title":"log_strength_entryArguments","type":"object"},"name":"log_strength_entry","outputSchema":{"additionalProperties":true,"title":"log_strength_entryDictOutput","type":"object"},"title":"Log strength session (replaces day)"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Add exercises to a session WITHOUT touching what is already logged (agent write).\n\nThis tool cannot delete anything you did not send. Your `exercises` are\nappended to the day's existing session; an exercise whose `name` matches an\nexisting one gets its sets appended to it. This is the right tool for \"log\nthe set I forgot\" or for logging a session in installments while the owner\nis still in the gym — which is how strength data actually arrives.\n\nReach for `log_strength_entry` ONLY when you intend the supplied exercises\nto become the day's ENTIRE session and everything else to be deleted.\n\n`date` is the LOCAL calendar day the session happened, \"YYYY-MM-DD\".\n`exercises` is `[{\"name\": \"卧推\", \"sets\": [{\"weightKg\": 30, \"reps\": 8}, ...]}, ...]`.\n\nThis tool deliberately cannot set the session note: that field is\nreplace-only, and a tool that promises to delete nothing must not carry an\nexception. Use `log_strength_entry` to change it.\n\nThe result is the same shape `log_strength_entry` returns.\n`replaced_exercises` is always `[]` here — that empty list is the receipt\nthat this call deleted nothing. Encrypted end-to-end before it ever leaves\nthis machine. Requires a bind made after the agent write path shipped; an\nolder bind must re-pair by running `uvx vaultbeat-apple-health@latest bind`\nin a terminal.\n","inputSchema":{"additionalProperties":false,"properties":{"date":{"title":"Date","type":"string"},"exercises":{"items":{"additionalProperties":true,"type":"object"},"title":"Exercises","type":"array"}},"required":["date","exercises"],"title":"log_strength_appendArguments","type":"object"},"name":"log_strength_append","outputSchema":{"additionalProperties":true,"title":"log_strength_appendDictOutput","type":"object"},"title":"Add to strength log"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Decrypt daily food-intake logs locally (newest first).\n\n`limit` counts LOGGED days: by default the newest 14 days that have a\nlog — not a calendar fortnight. Days with nothing logged are skipped, so\nthe 14 can reach further back; `coverage.span_days` and\n`coverage.days_missing_in_span` say how far. `since` / `until`\n(\"YYYY-MM-DD\", local days, both inclusive) read a calendar window\ninstead — \"what did I eat in the first week of August\" — and then\n`limit` applies only if you pass it. Each day's `date` is its local\ncalendar day (the same as `local_date`, and the form `log_food_entry`\nand `get_strength_log` use). A logged day is roughly 0.5-1k\ntokens (more with notes, and Chinese text counts more), so a month can\nalready be past what a client takes in one result — it then comes back\nas `result_too_large`; ask for fewer days or a narrower window.\n\nEach day carries `meals`, each meal a list of `items` with `food` (name),\noptional free-text `portion` (\"1 根\" / \"300g\" / \"小份\"), optional\nper-item/per-meal `note`, and — when the logging agent estimated them —\noptional structured nutrition numbers (`kcal`, `proteinGrams`,\n`fatGrams`, `carbGrams`). Items without those fields need analysis-time\nestimation from name + portion; items with them can be summed directly.\nOwner's own days only. Pass limit_days to cap how many days return.\n\nCarries a `coverage` block: quote `coverage.days_covered` (distinct days, not\nthe row count) and `coverage.span_days` beside any average or trend.\n`coverage.window_satisfied: false` alone does NOT mean a short history: it is\nalso false when older days exist beyond your window. 🔴 Before saying how far\nback someone's data goes, read `coverage.more_available`: `true` means this\nserver can decrypt days OLDER than `first_day` that your `limit` left behind —\nre-read with a larger `limit`, or quote `coverage.oldest_available` as the real\nstart of their history. Never report a `limit`-shaped window as the extent of\ntheir data.\n","inputSchema":{"additionalProperties":false,"properties":{"fresh":{"default":false,"title":"Fresh","type":"boolean"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Limit"},"limit_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Limit Days"},"since":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Since"},"until":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Until"}},"title":"get_food_logArguments","type":"object"},"name":"get_food_log","outputSchema":{"additionalProperties":true,"title":"get_food_logDictOutput","type":"object"},"title":"Food log"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Log one day's food intake on the owner's behalf (agent write).\n\n⚠️ THIS TOOL DELETES. The supplied `meals` become the day's ENTIRE log —\nany meal you don't re-send is silently deleted. If you meant to ADD to a\nday rather than replace it, STOP and call `log_food_append` instead; it\ncannot delete anything.\n\n(`merge=True` still does the same thing as `log_food_append` and keeps\nworking for callers that already use it. New callers should use the\nseparate tool: which one you called is visible to the owner, a flag\nburied in the arguments is not.)\n\nThe result carries `replaced_meals` — the meals this call deleted. If\nthat list is non-empty and you did not intend to replace the day, you\njust destroyed them; re-send them with `merge=True`.\n\n`note=None` LEAVES THE EXISTING NOTE ALONE in both modes (pass\n`note=\"\"` to clear it).\n\n`date` is the LOCAL calendar day, \"YYYY-MM-DD\".\n`meals` is a list of `{name?, timeOfDay?, items: [...], note?}` where each\nitem is `{food, portion?, note?, kcal?, proteinGrams?, fatGrams?, carbGrams?}`,\ne.g. `[{\"name\": \"lunch\", \"items\": [{\"food\": \"香蕉\", \"portion\": \"1 根\", \"kcal\": 105}]}]`.\nEverything but `food` is optional so a rushed \"just log 香蕉\" still works;\nwhen you DO estimate nutrition at logging time, put the numbers in the\nstructured fields (snake_case aliases like `protein_g` are accepted) —\nthey persist for later sessions instead of being re-guessed each read.\n\nESTIMATING FROM A PHOTO: look for something of known size in the frame\nfirst — a utensil, a hand, a coin, the rim of a standard plate — and\ncalibrate the portion against it. With no such reference an image cannot\nsettle portion size, and portion size is what the whole estimate rests\non. In that case say so in your reply and give a range rather than a\nprecise-looking number. These values are persisted and summed into daily\ntotals later, so a confident \"650 kcal\" that is wrong does more damage\nthan \"roughly 500-700, nothing in frame to judge size by\" — the first\nsilently poisons a week of trends, the second invites a correction.\n[keep the photo-estimation paragraph above in sync with log_food_append's copy]\nEncrypted end-to-end before it ever leaves this machine.\n","inputSchema":{"additionalProperties":false,"properties":{"date":{"title":"Date","type":"string"},"meals":{"items":{"additionalProperties":true,"type":"object"},"title":"Meals","type":"array"},"merge":{"default":false,"title":"Merge","type":"boolean"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Note"}},"required":["date","meals"],"title":"log_food_entryArguments","type":"object"},"name":"log_food_entry","outputSchema":{"additionalProperties":true,"title":"log_food_entryDictOutput","type":"object"},"title":"Log food (replaces day)"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Add meals to a day WITHOUT touching what is already logged (agent write).\n\nThis tool cannot delete anything you did not send. Your `meals` are appended\nto whatever the day already holds; a meal whose `name` matches an existing\nmeal gets its items appended to that meal. This is the right tool for \"log\nthe snack I forgot\" / \"add dinner to today\" — which is almost every\nfollow-up write of the day.\n\nReach for `log_food_entry` ONLY when you intend the supplied meals to become\nthe day's ENTIRE log and everything else to be deleted.\n\n`date` is the LOCAL calendar day, \"YYYY-MM-DD\".\n`meals` is a list of `{name?, timeOfDay?, items: [...], note?}` where each\nitem is `{food, portion?, note?, kcal?, proteinGrams?, fatGrams?, carbGrams?}`,\ne.g. `[{\"name\": \"lunch\", \"items\": [{\"food\": \"香蕉\", \"portion\": \"1 根\", \"kcal\": 105}]}]`.\nEverything but `food` is optional so a rushed \"just log 香蕉\" still works;\nwhen you DO estimate nutrition at logging time, put the numbers in the\nstructured fields (snake_case aliases like `protein_g` are accepted) — they\npersist for later sessions instead of being re-guessed each read.\n\nESTIMATING FROM A PHOTO: look for something of known size in the frame\nfirst — a utensil, a hand, a coin, the rim of a standard plate — and\ncalibrate the portion against it. With no such reference an image cannot\nsettle portion size, and portion size is what the whole estimate rests on.\nIn that case say so in your reply and give a range rather than a\nprecise-looking number. These values are persisted and summed into daily\ntotals later, so a confident \"650 kcal\" that is wrong does more damage than\n\"roughly 500-700, nothing in frame to judge size by\" — the first silently\npoisons a week of trends, the second invites a correction.\n[keep the photo-estimation paragraph above in sync with log_food_entry's copy]\n\nThis tool deliberately cannot set the day's note: that field is\nreplace-only, and a tool that promises to delete nothing must not carry an\nexception. Use `log_food_entry` to change it.\n\nThe result is the same shape `log_food_entry` returns. `replaced_meals` is\nalways `[]` here — that empty list is the receipt that this call deleted\nnothing. Encrypted end-to-end before it ever leaves this machine.\n","inputSchema":{"additionalProperties":false,"properties":{"date":{"title":"Date","type":"string"},"meals":{"items":{"additionalProperties":true,"type":"object"},"title":"Meals","type":"array"}},"required":["date","meals"],"title":"log_food_appendArguments","type":"object"},"name":"log_food_append","outputSchema":{"additionalProperties":true,"title":"log_food_appendDictOutput","type":"object"},"title":"Add to food log"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Log a free-text note on the owner's behalf (agent write).\n\nFor day events that belong next to the metric data instead of in chat\nhistory, worth joining against sleep/HRV later (`kind=\"general\"`, the\ndefault and the only kind this tool writes).\nA feeling does NOT go here, nor the story behind it: call\n`log_state_of_mind`, which keeps it as Apple Health's fields and has its\nown `note` for the why. This tool refuses `kind=\"mood\"` — one feeling\nrecorded twice, once structured and once as free text, is what that kind\nproduced. (sleep, menstrual and day notes are written in the iOS app —\nrefused too.)\n\n⚠️ THIS TOOL DELETES. There is one note per (kind, day), and your `text`\nbecomes its ENTIRE contents — anything already written for that kind+day\nis silently deleted. If you meant to ADD to a day rather than replace it,\nSTOP and call `log_note_append` instead; it cannot delete anything.\n\n(`merge=True` still does the same thing as `log_note_append` and keeps\nworking for callers that already use it. New callers should use the\nseparate tool: which one you called is visible to the owner, a flag\nburied in the arguments is not.)\n\nThe result carries `replaced_text` — the note this call deleted. If it is\nnon-null and you did not intend to replace, you just destroyed that text;\nre-send it with `merge=True`.\n\nSymptoms do NOT go here: use `log_symptom`, one call per symptom. A\nnote is free text nothing can be matched against; a symptom entry keeps\nits type, severity and timing so it can later be lined up with sleep,\nfood and heart rate. A note is for what surrounds it (events, how a day\nwent).\n\n`date` = LOCAL calendar day \"YYYY-MM-DD\" (default today). Read back via\n`get_notes` (optionally `target_kind=\"general\"`). Encrypted end-to-end\nbefore it ever leaves this machine.\n\n`partner=true` records a note ABOUT your partner (\"she had a stomach ache\nthis morning\"). It is stored in YOUR account and sealed for you and your own\nAI machines only (the Vaultbeat app passes it on to your other paired\nmachines) — never for your partner or their AI. Your partner's account is\nnever touched, and it never mixes into your own notes: plain reads leave it\nout, `get_notes(partner=true)` returns it. Default `false` = a note about you.\n","inputSchema":{"additionalProperties":false,"properties":{"date":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Date"},"kind":{"default":"general","title":"Kind","type":"string"},"merge":{"default":false,"title":"Merge","type":"boolean"},"partner":{"default":false,"title":"Partner","type":"boolean"},"text":{"title":"Text","type":"string"}},"required":["text"],"title":"log_noteArguments","type":"object"},"name":"log_note","outputSchema":{"additionalProperties":true,"title":"log_noteDictOutput","type":"object"},"title":"Log note (replaces note)"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Add a line to a day's note WITHOUT erasing what is already there (agent write).\n\nThere is one note per (kind, day). This tool appends your `text` to it on a\nnew line and cannot delete what is already written.\n\nThe second note of a day is the normal case, not the exception — a\nmorning event and an evening one — and `log_note` would replace the\nfirst with the second. Symptoms do NOT go here: use `log_symptom`, which\nkeeps type, severity and timing as fields a later analysis can match.\n\nReach for `log_note` ONLY when you intend your text to become the note's\nENTIRE contents and whatever is there now to be deleted (e.g. correcting\nsomething you yourself wrote a minute ago).\n\n`kind=\"general\"` (the default and the only kind it writes) for day events\nworth joining against sleep/HRV later. A feeling and the story behind it\ngo to `log_state_of_mind` and its `note`; this tool refuses `kind=\"mood\"`,\nand sleep, menstrual and day notes are written in the iOS app. `date` = LOCAL calendar day\n\"YYYY-MM-DD\" (default today). Read back via `get_notes`.\n\nThe result is the same shape `log_note` returns. `replaced_text` is always\n`null` here — that null is the receipt that this call deleted nothing.\nEncrypted end-to-end before it ever leaves this machine.\n\n`partner=true` records a note ABOUT your partner (\"she had a stomach ache\nthis morning\"). It is stored in YOUR account and sealed for you and your own\nAI machines only (the Vaultbeat app passes it on to your other paired\nmachines) — never for your partner or their AI. Your partner's account is\nnever touched, and it never mixes into your own notes: plain reads leave it\nout, `get_notes(partner=true)` returns it. Default `false` = a note about you.\n","inputSchema":{"additionalProperties":false,"properties":{"date":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Date"},"kind":{"default":"general","title":"Kind","type":"string"},"partner":{"default":false,"title":"Partner","type":"boolean"},"text":{"title":"Text","type":"string"}},"required":["text"],"title":"log_note_appendArguments","type":"object"},"name":"log_note_append","outputSchema":{"additionalProperties":true,"title":"log_note_appendDictOutput","type":"object"},"title":"Add to note"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Record one symptom the person reports — one call per symptom (agent write).\n\nThis is where \"我肚子疼\" / \"headache since lunch\" / \"拉肚子了\" goes, not a\nnote: each episode is kept as fields (type, severity, timing, place,\nsuspected causes) so a later read can line it up with sleep, food, heart\nrate and wrist temperature. Two symptoms at once are two calls. This tool\nonly ever adds; it cannot change or delete anything already recorded.\n\n`symptom_type`: a short English token. Use the Apple Health name when one\nfits — abdominal_cramps, bloating, constipation, diarrhea, heartburn,\nnausea, vomiting, headache, dizziness, fatigue, fever, chills, coughing,\nsore_throat, runny_nose, lower_back_pain, chest_tightness_or_pain,\nshortness_of_breath, acne, night_sweats… — so it merges with what Apple\nHealth imports; otherwise a plain descriptive one (rectal_bleeding,\nstomach_spasm, eye_strain). Any spelling is folded to one form.\n`display_name`: the person's own words, e.g. \"便血\" / \"胃痉挛\".\n\n`severity`: mild | moderate | severe | unspecified. Use `unspecified`\nunless they said how bad it is — never grade it for them.\n\n`onset_at`: when it began, ISO 8601 with their UTC offset, e.g.\n\"2026-09-30T10:49+08:00\". Omit it only for something happening NOW (it\ndefaults to the current time). If they named a day but no time\n(\"昨天头疼\"), pass that day as a bare \"2026-09-29\" — do not invent an hour.\n`end_at`: when it eased, if they said; add it later with `update_symptom`.\n`date`: the local day to file it under, only when it differs from the\nonset's own day.\n`body_location`, `note`: free text, only what they said.\n`triggers`: what THEY suspect caused it, as short tokens\n([\"bbq_dinner\", \"spicy_food\"], [\"sleep_deprivation\"]). Record their\nsuspicion; do not add causes of your own.\n\nReturns `entry_id` (keep it for `update_symptom` / `delete_symptom`) and\nthe entry as read back. Read everything with `get_symptoms`. Sealed for\nthe owner and this machine only, end to end, before it leaves here.\n","inputSchema":{"additionalProperties":false,"properties":{"body_location":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Body Location"},"date":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Date"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Display Name"},"end_at":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"End At"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Note"},"onset_at":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Onset At"},"severity":{"default":"unspecified","title":"Severity","type":"string"},"symptom_type":{"title":"Symptom Type","type":"string"},"triggers":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Triggers"}},"required":["symptom_type"],"title":"log_symptomArguments","type":"object"},"name":"log_symptom","outputSchema":{"additionalProperties":true,"title":"log_symptomDictOutput","type":"object"},"title":"Log symptom"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Change fields of one reported symptom (agent write) — e.g. it eased.\n\nThe common call is `update_symptom(entry_id, end_at=\"…\")` when the person\nsays it has stopped, or a new `severity` when it got worse. Only the\nfields you pass change; omitted ones keep their value. Passing a field\nOVERWRITES it: `note` replaces the old note rather than adding to it, and\n`triggers` replaces the whole list — read the entry first and send the\ncombined list if you mean to add one. `\"\"` clears a text field or a\nmistaken `end_at`; `[]` clears triggers.\n\n`entry_id` comes from `log_symptom` or from `get_symptoms`' `reported`\nlist. Symptoms imported from Apple Health cannot be edited here.\n\nReturns `previous` — the old value of every field this call changed — and\nthe entry as read back.\n","inputSchema":{"additionalProperties":false,"properties":{"body_location":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Body Location"},"date":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Date"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Display Name"},"end_at":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"End At"},"entry_id":{"title":"Entry Id","type":"string"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Note"},"onset_at":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Onset At"},"severity":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Severity"},"symptom_type":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Symptom Type"},"triggers":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Triggers"}},"required":["entry_id"],"title":"update_symptomArguments","type":"object"},"name":"update_symptom","outputSchema":{"additionalProperties":true,"title":"update_symptomDictOutput","type":"object"},"title":"Update symptom (overwrites given fields)"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Erase one reported symptom that was logged by mistake (agent write).\n\nOnly for an entry that should never have existed — a duplicate, the wrong\nperson, a symptom they did not have. A symptom that simply ended is NOT\ndeleted: record its end with `update_symptom(entry_id, end_at=…)`.\n\nIt disappears from `get_symptoms` at once, and from the app and every\nother reader once the person's iPhone next syncs (it then overwrites the\nentry's own copy in the cloud, and from app 1.3.0 removes the copies\nearlier `update_symptom` calls left; an older app leaves those sealed\nthere, readable only by the person and the server that wrote them). The\nresult carries `deleted_entry` — the\nfull entry as it was — so a mistaken delete can be logged again with\n`log_symptom`. Symptoms imported from Apple Health cannot be deleted here.\n","inputSchema":{"additionalProperties":false,"properties":{"entry_id":{"title":"Entry Id","type":"string"}},"required":["entry_id"],"title":"delete_symptomArguments","type":"object"},"name":"delete_symptom","outputSchema":{"additionalProperties":true,"title":"delete_symptomDictOutput","type":"object"},"title":"Delete symptom (erases the entry)"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Record how the person says they feel, as Apple Health's State of Mind (agent write).\n\nThis is where \"今天工作好累，被掏空了\" / \"刚散步回来，心情特别平静\" /\n\"I'm so anxious about tomorrow\" goes when they tell you how they feel —\npeople rarely open an app to log a feeling, but they say it to you. One\ncall per feeling. This tool only ever adds; `delete_state_of_mind`\nremoves a mistaken one.\n\n`valence`: -1 (very unpleasant) … 0 (neutral) … +1 (very pleasant), YOUR\nreading of how pleasant it felt FROM THEIR WORDS. Apple splits the range\ninto seven equal regions: about -0.85 very unpleasant, -0.55 unpleasant,\n-0.3 slightly unpleasant, 0 neutral, +0.3 slightly pleasant, +0.55\npleasant, +0.85 very pleasant. Stay inside what they said; do not\ndramatise \"有点烦\" into very unpleasant.\n\n`labels`: Apple's feeling words that THEIR words support, usually one to\nthree — amazed, amused, angry, annoyed, anxious, ashamed, brave, calm,\nconfident, content, disappointed, discouraged, disgusted, drained,\nembarrassed, excited, frustrated, grateful, guilty, happy, hopeful,\nhopeless, indifferent, irritated, jealous, joyful, lonely, overwhelmed,\npassionate, peaceful, proud, relieved, sad, satisfied, scared, stressed,\nsurprised, worried. Leave it empty rather than guess when they only said\n\"心情还行\".\n`associations`: what it is about, only if they said — community,\ncurrent_events, dating, education, family, fitness, friends, health,\nhobbies, identity, money, partner, self_care, spirituality, tasks,\ntravel, weather, work.\n`kind`: \"momentaryEmotion\" (default — how they feel right now or at one\nmoment) or \"dailyMood\" (how the whole day has been).\n`logged_at`: the moment, ISO 8601 with their UTC offset, e.g.\n\"2026-10-04T14:20+08:00\"; omit it for right now. A `dailyMood` about a past\nday may give just that day as `date` (\"2026-10-03\") — do not invent an hour.\n`note`: a short summary in their words, only if useful later. It stays in\nVaultbeat; Apple Health has no place for text.\n\nThe person's iPhone writes it into Apple Health (Mental Wellbeing → State\nof Mind) only if they turned on \"Allow AI to update Apple Health\" in the\napp — it is off by default; either way it shows in Vaultbeat's mood\ncalendar (app 1.3.0 and later; an older app keeps it without showing it). Returns `entry_id` (for `delete_state_of_mind`) and the entry as\nread back. Read everything with `get_state_of_mind`. Encrypted end to end\nbefore it leaves here, for the owner and this machine; the owner's iPhone\nthen re-seals it for their other paired machines and — only if they turned\non sharing moods with their partner's AI — for that AI too, `note`\nincluded, so write nothing in `note` they would not want that reader to see.\n","inputSchema":{"additionalProperties":false,"properties":{"associations":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Associations"},"date":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Date"},"kind":{"default":"momentaryEmotion","title":"Kind","type":"string"},"labels":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Labels"},"logged_at":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Logged At"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Note"},"valence":{"title":"Valence","type":"number"}},"required":["valence"],"title":"log_state_of_mindArguments","type":"object"},"name":"log_state_of_mind","outputSchema":{"additionalProperties":true,"title":"log_state_of_mindDictOutput","type":"object"},"title":"Log state of mind"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Erase one state of mind an AI recorded by mistake (agent write).\n\nOnly for an entry that should never have existed — a duplicate, the wrong\nreading of what they said, the wrong person. To record that a feeling\nchanged, log a new one; feelings change and both are true.\n\nIt disappears from `get_state_of_mind` at once. The person's iPhone, on\nits next sync, drops it from the app, overwrites its content in the cloud\nfor every reader it was shared with, and removes the sample it wrote into\nApple Health, if it wrote one. The result carries\n`deleted_entry` — the full entry as it was — so a mistaken delete can be\nlogged again. Records with `source: \"apple_health\"` cannot be deleted\nhere; they are edited in Apple Health.\n","inputSchema":{"additionalProperties":false,"properties":{"entry_id":{"title":"Entry Id","type":"string"}},"required":["entry_id"],"title":"delete_state_of_mindArguments","type":"object"},"name":"delete_state_of_mind","outputSchema":{"additionalProperties":true,"title":"delete_state_of_mindDictOutput","type":"object"},"title":"Delete state of mind (erases the entry)"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Log the owner's weight (kg) on their behalf (agent write, 2026-07-21).\n\n`weight_kg`: kilograms (positive, ≤500). `date`: LOCAL calendar day\n\"YYYY-MM-DD\" (default = today). Same-day upsert-in-place semantics\n(dayID = \"body-{dayStart.epoch}\") — re-logging the same day overwrites.\nEncrypted end-to-end before it ever leaves this machine.\n\nA weight's home is Apple Health: the phone carries this one there on its\nnext sync, through the iOS setting \"Allow AI to update Apple Health\" (MCP\ntab; OFF by default). It is also readable here at once (`get_metric`\nseries \"weight_kg\").\n\n⚠️ When no iPhone of this account has that setting on (with Weight access\ngranted), the write is REFUSED and nothing is saved — from app 1.3.0 a\nweight may not live only in the cloud. The error says what to turn on;\npass it on and do not retry until the person has done it. Never tell them\nto re-enter the number by hand in the Vaultbeat weight card instead:\nlogging it in both places makes two entries for one day from different\nsources and corrupts the trend line.\n","inputSchema":{"additionalProperties":false,"properties":{"date":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Date"},"weight_kg":{"title":"Weight Kg","type":"number"}},"required":["weight_kg"],"title":"log_weight_entryArguments","type":"object"},"name":"log_weight_entry","outputSchema":{"additionalProperties":true,"title":"log_weight_entryDictOutput","type":"object"},"title":"Log weight (replaces day)"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Decrypt recent menstrual cycle data locally and predict the next period.\n\nSENSITIVE: menstrual data only reaches this server if the user explicitly opted\nin on iOS; it stays on-device and is never re-exported. Returns recent samples plus\na next-period prediction. Reads YOUR cycle by default; if the cycle being\nasked about is your partner's, pass `partner=true` (it reaches this server\nonly if they share it).\n\nCarries a `coverage` block: quote `coverage.days_covered` (distinct days, not\nthe row count) and `coverage.span_days` beside any average or trend.\n`coverage.window_satisfied: false` alone does NOT mean a short history: it is\nalso false when older days exist beyond your window. 🔴 Before saying how far\nback someone's data goes, read `coverage.more_available`: `true` means this\nserver can decrypt days OLDER than `first_day` that your `limit` left behind —\nre-read with a larger `limit`, or quote `coverage.oldest_available` as the real\nstart of their history. Never report a `limit`-shaped window as the extent of\ntheir data.\n","inputSchema":{"additionalProperties":false,"properties":{"fresh":{"default":false,"title":"Fresh","type":"boolean"},"limit":{"default":90,"title":"Limit","type":"integer"},"partner":{"default":false,"title":"Partner","type":"boolean"}},"title":"get_menstrual_cycleArguments","type":"object"},"name":"get_menstrual_cycle","outputSchema":{"additionalProperties":true,"title":"get_menstrual_cycleDictOutput","type":"object"},"title":"Menstrual cycle"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Per-night sleep stages with per-stage HR/RR — depth on a few nights.\n\nWhich sleep tool to use:\n· THIS one for going deep on one or two specific nights (stage bands,\n  per-stage vitals). It defaults to 2 nights because each is ~3k\n  characters; see the SIZE note below.\n· `get_sleep_nights` for anything spanning time — \"how did I sleep\n  this week/month/year\", patterns, worst nights. One compact row per\n  night, a whole year in one read. Reach for it whenever the question\n  is about a period rather than a night, and do not conclude from THIS\n  tool's two rows that only two nights exist.\n· `get_metric` with the sleep series (`bedtime_minutes`,\n  `deep_sleep_minutes`, `awakenings`, ...) for averages computed for you.\n\n(This used to call itself \"the primary tool for detailed sleep analysis\",\nwhich read as \"use this one for sleep\" and handed back two days to\nanyone who asked how their week went.)\n\nReturns `stage_intervals` (contiguous stage bands with start/end),\n`stage_minutes`, and `stage_vitals` (per-stage HR/RR min/mean/max). Reads\nYOUR nights by default; `partner=true` reads your partner's shared sleep.\n\n`limit` = the newest N nights, 2 by default. To read a particular night,\npass its date as `since` and `until` (\"YYYY-MM-DD\", the local day the\nnight ENDS on — the `local_date` / `date` column of `get_sleep_nights`);\na wider `since` / `until` reads every night in that window, and `limit`\nthen applies only if you pass it.\n\n⚠️ SIZE: each night is ~3k characters as returned (a week ~21k). Setting\n`include_timeline=True` adds the raw per-sample array (hr, rr, stage,\ntime) — about 13k characters PER NIGHT, which will overflow a typical\n25k-token client budget after 2-3 nights. Ask for it only when you need\nsample-level vitals (e.g. \"when exactly did HR spike\"); `stage_vitals`\nalready answers per-stage questions. Raise `limit` for trends, but keep\nit low whenever `include_timeline=True`.\n\n⚠️ `is_in_bed_only: true` means sleep was NEVER MEASURED that night (the\nWatch wasn't worn) — NOT that the person slept zero. `duration_label`\nreads \"no sleep data\" and `in_bed_minutes` holds the time actually\nrecorded in bed. Report it as \"no sleep data (in bed ~Xh)\", never as\n\"slept 0 hours\".\n\nCarries a `coverage` block: quote `coverage.days_covered` (distinct days, not\nthe row count) and `coverage.span_days` beside any average or trend.\n`coverage.window_satisfied: false` alone does NOT mean a short history: it is\nalso false when older days exist beyond your window. 🔴 Before saying how far\nback someone's data goes, read `coverage.more_available`: `true` means this\nserver can decrypt days OLDER than `first_day` that your `limit` left behind —\nre-read with a larger `limit`, or quote `coverage.oldest_available` as the real\nstart of their history. Never report a `limit`-shaped window as the extent of\ntheir data.\n","inputSchema":{"additionalProperties":false,"properties":{"fresh":{"default":false,"title":"Fresh","type":"boolean"},"include_timeline":{"default":false,"title":"Include Timeline","type":"boolean"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Limit"},"partner":{"default":false,"title":"Partner","type":"boolean"},"since":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Since"},"until":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Until"}},"title":"get_sleep_detailArguments","type":"object"},"name":"get_sleep_detail","outputSchema":{"additionalProperties":true,"title":"get_sleep_detailDictOutput","type":"object"},"title":"Sleep stage detail"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Every night as one compact row — the tool for reading a sleep HISTORY.\n\nOne row per night, newest first: date, weekday, bed and wake time, time\nasleep, deep / REM / core / awake minutes, deep and REM share, number of\nawakenings, longest unbroken stretch of sleep, heart and breathing rate\nwhile asleep, and any OTHER sleep that day (naps, the second half of a\nbroken night) — so a day's total sleep is `asleep` plus `other`. Column names come once in `columns`; each row is the\nvalues in that order, so a whole year is ~40k characters. Read it when\nthe question is about a period or a pattern: weekends vs weekdays,\ndrifting bedtimes, which nights were worst, what changed after a date.\n\nWhich sleep tool:\n· THIS one for any span of time.\n· `get_metric` with the sleep series (`sleep_minutes`, `bedtime_minutes`,\n  `deep_sleep_minutes`, `awakenings`, ...) when you want the arithmetic —\n  weekly/monthly averages computed for you, from these same rows.\n· `get_sleep_detail` for one or two nights in depth (stage bands,\n  per-stage vitals).\n\n`limit` = newest N nights (default 120; pass 400 for everything, and\ncheck `coverage.more_available`). `since` = \"YYYY-MM-DD\" keeps every\nnight on or after that day — use it for \"last month\" rather than\nguessing a limit; with `since`, `limit` applies only if you pass it.\n\nRead `legend` once. Five flags, comma-separated when a night has several:\n`unworn` means sleep was never measured that night (not zero sleep),\n`motion_inferred` means phone motion guessed it (leave it out of averages,\nas `get_metric` does), `daytime` means the day's only sleep was a daytime\nnap (real, but not a night — out of `get_metric`'s nightly series, still\na row here), `short` means a main sleep under 3 h with\nno stages — a nap or a partly recorded night, left out of `get_metric`'s\nsleep-duration and clock series — and `no_stages` means the total is\nknown but the stage columns are null. A null anywhere is \"not measured\",\nnever zero. Reads YOUR nights; `partner=true` reads your partner's\nshared sleep.\n\nCarries a `coverage` block: quote `coverage.days_covered` beside any\naverage, and read `coverage.more_available` before saying how far back\nthe history goes.\n","inputSchema":{"additionalProperties":false,"properties":{"fresh":{"default":false,"title":"Fresh","type":"boolean"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Limit"},"partner":{"default":false,"title":"Partner","type":"boolean"},"since":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Since"}},"title":"get_sleep_nightsArguments","type":"object"},"name":"get_sleep_nights","outputSchema":{"additionalProperties":true,"title":"get_sleep_nightsDictOutput","type":"object"},"title":"Sleep, every night"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Decrypt recent workout sessions (type, duration, calories, distance).\nReads YOUR workouts; workouts are never shared between partners, so this\ntool has no partner option.\n\nCarries a `coverage` block: quote `coverage.days_covered` (distinct days, not\nthe row count) and `coverage.span_days` beside any average or trend.\n`coverage.window_satisfied: false` alone does NOT mean a short history: it is\nalso false when older days exist beyond your window. 🔴 Before saying how far\nback someone's data goes, read `coverage.more_available`: `true` means this\nserver can decrypt days OLDER than `first_day` that your `limit` left behind —\nre-read with a larger `limit`, or quote `coverage.oldest_available` as the real\nstart of their history. Never report a `limit`-shaped window as the extent of\ntheir data.\n","inputSchema":{"additionalProperties":false,"properties":{"fresh":{"default":false,"title":"Fresh","type":"boolean"},"limit":{"default":90,"title":"Limit","type":"integer"}},"title":"get_workoutsArguments","type":"object"},"name":"get_workouts","outputSchema":{"additionalProperties":true,"title":"get_workoutsDictOutput","type":"object"},"title":"Workouts"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Read YOUR health profile: biological sex, age, date of birth, height.\n\nUse it before anything that depends on sex, age or height — basal\nmetabolic rate, heart-rate zones, VO2 max bands, BMI. It is never shared\nbetween partners, so this tool has no partner option.\n\n`profile.sex_source` says where the sex came from: \"chosen\" (the person\npicked it in the app) or \"apple_health\" (a field in Apple Health they may\nnever have looked at). Every field may be null; `profile` itself is null\nwhen nothing was uploaded, and the reply's `note` explains why that\ncannot be narrowed down. Never fill a null in with a guess.\n\nA profile is not a series: its `coverage.days_covered` is 0 by\nconstruction, and the reply carries no upload time — the stored row is\nreplaced in place on every edit, so nothing here says how current the\nvalues are.\n","inputSchema":{"additionalProperties":false,"properties":{"fresh":{"default":false,"title":"Fresh","type":"boolean"}},"title":"get_user_profileArguments","type":"object"},"name":"get_user_profile","outputSchema":{"additionalProperties":true,"title":"get_user_profileDictOutput","type":"object"},"title":"Health profile"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Read any one-number-per-day health series: steps, resting HR, HRV, weight, …\n\n`series` takes ONE name, a LIST of names, or nothing (= every series).\nNames come from `list_metric_series`, which also says how much data backs\neach — call it first rather than guessing. Activity is five series\n(steps, active_energy, exercise_minutes, stand_minutes, distance_meters);\npass them as a list to get the whole day in one call.\n\n`days` = the newest N days THAT HAVE DATA, per series (not N calendar days).\nFor a CALENDAR window — \"last month\", \"this semester\", \"July\" — pass\n`since` / `until` (\"YYYY-MM-DD\", either or both) instead; `days` is then\nignored and the reply names the `range` it used.\n\n`aggregation` is computed here, not by you: `avg` / `sum` / `min` / `max` /\n`latest` over the window, or `none` (default) for the per-day points only.\n`sum` is refused on state measurements (resting HR, weight, VO2max) — it\nhas no meaning there. `granularity` = `day` (default), `week` (ISO weeks)\nor `month`; week/month return buckets aggregated with `aggregation`\n(`avg` when `none`), each with `days_with_data` beside `days_in_period`.\n`period_in_progress: true` marks the current, unfinished week/month and\n`clipped_by_window: true` the oldest one your `days` cut through — never\ncompare either against a full period as if it were one.\n`granularity` = `weekday` groups the window by day of the week (Mon..Sun)\n— the direct answer to \"weekends vs weekdays\" and to social jet lag. Read\nits `weekday_note`: sleep is dated by the morning it ends, so `Sat` is the\nFriday-night sleep.\n\nHonesty the reply already does for you, so do not undo it:\n· On `cumulative` series (steps, energy, water) today is still accruing —\n  it is marked `partial: true` and excluded from every aggregate.\n· `excluded_days` names days dropped because their data was short (basal\n  energy with the Watch off the wrist, TDEE without basal), with reasons.\n· Missing days are absent, never zero.\n\nEach series' `points` (or `buckets`) is a table: `columns` names the\nfields once and every entry of `rows` is one day (or period) in that\norder — e.g. `columns: [\"date\", \"value\", \"partial\"]`. The flags above are\ncolumns; a day without one has `null` there.\n\nEach series carries its own `coverage` block: quote `coverage.days_covered`\nand `coverage.span_days` beside any number. 🔴 Before saying how far back\nsomeone's data goes, read `coverage.more_available`: `true` means older days\nexist that your `days` left behind — ask for more, or quote\n`coverage.oldest_available`. Never report a window as the extent of their data.\n\nReads YOUR data by default.\nPass `partner=true` for your partner's — of these series only sleep, water\nand weight (with body composition) can be shared, so every other series\ncomes back empty for a partner by design.\n\nSleep is here too — duration, timing (`bedtime_minutes`, `wake_minutes`,\n`sleep_midpoint_minutes`), stages, awakenings, heart/breathing rate while\nasleep; the nights behind those numbers are `get_sleep_nights`. Richer\nkinds have their own tools: workouts, strength, food, notes, symptoms, cycle,\nand the sex / age / height profile (`get_user_profile`).\nSamples within a day (HRV spikes) → `get_intraday`. Trend / period\ncomparison / correlation → `get_metric_trend`, `compare_metric_periods`,\n`correlate_metric_series`.\n","inputSchema":{"additionalProperties":false,"properties":{"aggregation":{"default":"none","title":"Aggregation","type":"string"},"days":{"default":30,"title":"Days","type":"integer"},"fresh":{"default":false,"title":"Fresh","type":"boolean"},"granularity":{"default":"day","title":"Granularity","type":"string"},"partner":{"default":false,"title":"Partner","type":"boolean"},"series":{"anyOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Series"},"since":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Since"},"until":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Until"}},"title":"get_metricArguments","type":"object"},"name":"get_metric","outputSchema":{"additionalProperties":true,"title":"get_metricDictOutput","type":"object"},"title":"Daily health metrics"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Samples WITHIN a day, for the series that record several per day (HRV).\n\n`granularity`:\n- `\"hourly\"` (default) — one row per hour that HAS samples (UTC hour\n  boundaries, shown in local time), the mean SDNN of that hour and its\n  `sample_count`. Right for \"how did my HRV move through the day\".\n- `\"raw\"` — one row per sample, newest first.\n\nThe Watch measures HRV a handful of times a day, not continuously (more\nduring a Breathe session), so most days have about 8-14 rows either way.\n`limit` counts ROWS, not days: the default 168 is roughly two to three\nweeks, not one. How far back the history goes depends on what this\nphone uploaded, not on a fixed window — read `coverage.oldest_available`\nand `coverage.more_available`. For one number per day use `get_metric`.\nReads YOUR data only: HRV is never shared between partners.\n\n`rows` is a table in `columns` order (`local_time`, `sdnn_ms`, plus\n`sample_count` for hourly). Carries a `coverage` block: quote\n`coverage.days_covered` (distinct days, not the row count) beside any number.\n","inputSchema":{"additionalProperties":false,"properties":{"fresh":{"default":false,"title":"Fresh","type":"boolean"},"granularity":{"default":"hourly","title":"Granularity","type":"string"},"limit":{"default":168,"title":"Limit","type":"integer"},"series":{"default":"hrv_sdnn","title":"Series","type":"string"}},"title":"get_intradayArguments","type":"object"},"name":"get_intraday","outputSchema":{"additionalProperties":true,"title":"get_intradayDictOutput","type":"object"},"title":"Intraday samples"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Every series, with how much data actually backs each one.\n\nCall this BEFORE guessing a `series` name, and before concluding a kind is\nempty. Each row carries `rows` / `first_date` / `last_date` / `latest`, so\n\"does this person track VO2max at all\" is answered here in one call instead\nof by reading the kind and getting nothing back.\n\n`rows` = the days that HAVE a value for that series — counted the way\n`get_metric` reads it, so `rows: 2` means `get_metric` can return at most 2\npoints. A kind's series can differ: a partner with 14 weigh-ins may have\na BMI on only 2 of those days.\n\n`cumulative: true` marks the series whose daily value ACCRUES over the day\n(steps, energy, water). On those the newest value is routinely a partial day\nand must not be compared against completed ones — that is what makes \"steps\nare down today\" wrong at 9am. Measurements of a state (resting HR, VO2max)\ncarry `false` and need no such care.\n\nSleep appears here as numbers (duration, timing, stages, awakenings,\nvitals); read the nights themselves with `get_sleep_nights`. Kinds with a\nricher shape (workouts, strength sets, food, notes, symptoms, cycle) are\ndeliberately absent — flattening them to one number per day would answer a\nquestion you did not ask; read them with their own tool.\n","inputSchema":{"additionalProperties":false,"properties":{"fresh":{"default":false,"title":"Fresh","type":"boolean"},"partner":{"default":false,"title":"Partner","type":"boolean"}},"title":"list_metric_seriesArguments","type":"object"},"name":"list_metric_series","outputSchema":{"additionalProperties":true,"title":"list_metric_seriesDictOutput","type":"object"},"title":"List analysable series"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Least-squares trend for one daily series: slope per day, endpoints, spread.\n\n`series` is a name from `list_metric_series`. `days` selects the newest N days\nTHAT HAVE DATA, not the last N calendar days — compare `n_days` with\n`span_days` to see whether the history is dense or sparse. `since` /\n`until` (\"YYYY-MM-DD\") fit a calendar window instead.\n\nReturns arithmetic only. `slope_per_day` is in the series' own unit per day and\ncarries no threshold, band or verdict; fewer than 3 days returns a null slope\nwith a reason rather than a number fitted to noise.\n\nCarries a `coverage` block over the days the arithmetic used: quote\n`coverage.days_covered` and `coverage.span_days` beside any number here.\n`coverage.window_satisfied: false` alone does NOT mean a short history — it is\nalso false when older days exist beyond the window; `coverage.more_available`\ntells the two apart.\n","inputSchema":{"additionalProperties":false,"properties":{"days":{"default":30,"title":"Days","type":"integer"},"fresh":{"default":false,"title":"Fresh","type":"boolean"},"partner":{"default":false,"title":"Partner","type":"boolean"},"series":{"title":"Series","type":"string"},"since":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Since"},"until":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Until"}},"required":["series"],"title":"get_metric_trendArguments","type":"object"},"name":"get_metric_trend","outputSchema":{"additionalProperties":true,"title":"get_metric_trendDictOutput","type":"object"},"title":"Metric trend"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Compare two periods of one series: the newest `days` vs the `days` before, or two named windows.\n\nTo compare CALENDAR periods — \"this semester vs the summer\", \"before and\nafter I started training\" — pass `period` and `baseline`, each\n\"YYYY-MM-DD..YYYY-MM-DD\" (an open end is allowed: \"2026-09-01..\"). `days`\nis then ignored. Without them, the rule below applies.\n\n\"Before\" means the next-oldest days WITH DATA, so a gap makes the earlier\nwindow older rather than emptier — read `previous.first_day` / `previous.last_day`\nto see which period you actually got, and quote them.\n\nReturns both windows' mean/median/min/max and the differences. It does not say\nwhich window is better; that depends on the metric and on the person.\n\nCarries a `coverage` block over the days the arithmetic used: quote\n`coverage.days_covered` and `coverage.span_days` beside any number here.\n`coverage.window_satisfied: false` alone does NOT mean a short history — it is\nalso false when older days exist beyond the window; `coverage.more_available`\ntells the two apart.\n","inputSchema":{"additionalProperties":false,"properties":{"baseline":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Baseline"},"days":{"default":7,"title":"Days","type":"integer"},"fresh":{"default":false,"title":"Fresh","type":"boolean"},"partner":{"default":false,"title":"Partner","type":"boolean"},"period":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Period"},"series":{"title":"Series","type":"string"}},"required":["series"],"title":"compare_metric_periodsArguments","type":"object"},"name":"compare_metric_periods","outputSchema":{"additionalProperties":true,"title":"compare_metric_periodsDictOutput","type":"object"},"title":"Compare two periods"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Pearson r between two daily series, over days that have BOTH recorded.\n\n`lag_days` pairs `series_a` on each day with `series_b` that many days\nLATER (negative = earlier): \"does a short night show up in HRV the day\nafter\" is sleep vs HRV with lag_days=1. Sleep is already dated by the\nmorning it ends, so lag 0 is \"last night vs today\". `since` / `until`\n(\"YYYY-MM-DD\") restrict to a calendar window.\n\nDays missing on either side are dropped, never interpolated and never read as\nzero, so `n_pairs` is usually smaller than either series — quote it with `r`.\nFewer than 3 shared days returns null with a reason: any two points are\nperfectly collinear, so a coefficient there is an artefact.\n\nThe result carries a `caveat` field about causation. Repeat its substance in\nyour answer, and do not translate r into a word like \"strong\".\n\nCarries a `coverage` block over the days the arithmetic used: quote\n`coverage.days_covered` and `coverage.span_days` beside any number here.\n`coverage.window_satisfied: false` alone does NOT mean a short history — it is\nalso false when older days exist beyond the window; `coverage.more_available`\ntells the two apart.\n","inputSchema":{"additionalProperties":false,"properties":{"days":{"default":30,"title":"Days","type":"integer"},"fresh":{"default":false,"title":"Fresh","type":"boolean"},"lag_days":{"default":0,"title":"Lag Days","type":"integer"},"partner":{"default":false,"title":"Partner","type":"boolean"},"series_a":{"title":"Series A","type":"string"},"series_b":{"title":"Series B","type":"string"},"since":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Since"},"until":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Until"}},"required":["series_a","series_b"],"title":"correlate_metric_seriesArguments","type":"object"},"name":"correlate_metric_series","outputSchema":{"additionalProperties":true,"title":"correlate_metric_seriesDictOutput","type":"object"},"title":"Correlate two series"}],"ttlMs":0}}}
{"at":"2026-11-23T02:34:07.655Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T02:34:08.639Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"prompts":{"listChanged":false},"resources":{"listChanged":false,"subscribe":false},"tools":{"listChanged":false}},"instructions":"Vaultbeat serves one person's Apple Health history, end-to-end encrypted in the cloud and decrypted only on this machine. You are reading a real body's record, so the cost of a confident wrong sentence is higher than the cost of saying you do not know.\n\nOrder of operations: call `vaultbeat_doctor` first — it reports which kinds actually have data and is the only tool that can tell apart the several reasons a kind might be empty. `list_metric_series` then names every one-number-per-day series with how much data backs it; read them with `get_metric` (one name, a list, or all — it aggregates server-side, so do not pull raw days to average them yourself). Sleep has two tools: `get_sleep_nights` — every night as one compact row, a year in one call, the tool for any period — and `get_sleep_detail` for one or two nights in depth; its timing, stages and awakenings are also `get_metric` series. There is no `get_sleep`. Workouts, strength, food, notes, symptoms, states of mind (moods) and cycle have their own tools, and sex, age and height are `get_user_profile`.\n\nA short result has three different causes and `coverage.more_available` separates them, so read it before you explain a short history to anyone.\n· `more_available: true` — YOUR `limit` is the boundary, nothing else. Older days are sealed here and decryptable right now; you simply did not ask for them. Every `limit` defaults to a page size, not to a lifetime, and on the dense kinds it counts SAMPLES: 30 rows of hourly data is a day and a quarter, not a month. Re-read with a larger `limit`, or quote `coverage.oldest_available` as the real start of their history. Reporting this as 'you only have N days' tells a person their records are missing when they are sitting right here.\n· `more_available: false` and the history is still short — THEN it is a plan boundary or a fresh pairing. From app 1.2.9 the cloud is the paid product: an account uploads its whole history while it or its partner has a membership or a live trial, and nothing new otherwise (what it already uploaded stays readable here). On app 1.2.8 and earlier a free account and a trial upload only the last 7 days. Either way that is all this server can decrypt, and re-syncing in the iOS app will not change it.\n· `more_available: null` — the tool did not say. Do not read it as either.\n\nWrites (`log_*`) record what the user told you, not what you inferred. Read the day first, append rather than replace when a tool offers both, and never invent a value to fill a field the user did not give you.\n\nStyle rules: say what the data covers before you conclude anything — quote `coverage.days_covered` (distinct days, not the row count) and `coverage.span_days` from the tool result, name how recent the newest day is. `coverage.window_satisfied: false` alone does not mean a short history: it is also false when older days exist beyond your window. Before you tell anyone how far back their records go, read `coverage.more_available`: when it is `true` there are older days this server can decrypt that your `limit` simply did not ask for, so widen the `limit` or quote `coverage.oldest_available` — a default-sized page is never evidence that someone's history is short. Describe, do not prescribe: no diagnosis, no treatment advice, no invented scores, grades or verdicts. State an association as an association, never as a cause. Quote the actual numbers, units and dates you used. And when the honest answer is that you do not know, give the last thing that IS known with its timestamp and stop there, rather than filling the gap with something that reads like a measurement.\n\nAbsence rule: an empty result never means the value was zero. It means one of four different things — the data was never recorded, Apple Health permission was not granted for that type, the iOS app is older than the feature, or this server was bound recently and its own encrypted copy of the history has not finished syncing yet. Those need opposite fixes, so do not pick one. Call `vaultbeat_doctor`, which is the tool that tells them apart, and report what it says.","protocolVersion":"2025-11-25","serverInfo":{"name":"Vaultbeat Health","version":"0.9.3"}}}}
{"at":"2026-11-23T02:34:08.639Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T02:34:08.639Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T02:34:08.641Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true},"description":"Diagnose this Vaultbeat MCP install, and report which data types are unavailable.\n\nCall this when a read tool returns nothing, or when anything fails, before\ntelling the user their data is missing. Two distinct things come back:\n\n`checks` — the install/binding chain: config present, keypair usable,\nbinding valid, cloud reachable, a real record decryptable end to end.\nA failure here means the setup is broken, not that data is absent.\n\n`capabilities` — which metric kinds actually have data, and which empty\nones are explained by an older iOS app (with the release date each\nneeds). An empty kind is NOT proof the user never recorded it: their app\nmay predate the feature entirely. A kind under `kinds_not_checked` could\nnot be counted this run; it is neither empty nor full.\n\n`scope` — what this report does NOT cover. Everything here can pass and\nthe setup still be broken on the client side: this server is a subprocess\nof your MCP client, so it cannot read the client's config file, cannot see\nwhich environment variables the client forwarded, and cannot tell whether\nit was launched with the arguments the user believes. A green report never\nclears the client. `scope.env_overrides_received` lists which Vaultbeat\nvariables actually arrived — check that before guessing at the client's\nenvironment.\n\n`binding` — the local pairing state (which account, which server, whether\ndemo mode is serving synthetic data). No keys or tokens.\n\nThis runs a cloud round trip, so it takes a moment.\n","inputSchema":{"additionalProperties":false,"properties":{},"title":"vaultbeat_doctorArguments","type":"object"},"name":"vaultbeat_doctor","outputSchema":{"additionalProperties":true,"title":"vaultbeat_doctorDictOutput","type":"object"},"title":"Run diagnostics"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Decrypt recent symptoms locally, grouped by data owner — both sources.\n\nSENSITIVE. Each entry in `owners` carries `owner_user_id` and two lists:\n· `days` — symptoms imported from Apple Health (cramps, headache, fatigue,\n  coughing…), one row per day with each sample's severity\n  (mild/moderate/severe/present/…). These reach this server only when the\n  user opted in on iOS — their own AI toggle, or the partner-AI toggle for\n  a partner's. `symptom_counts` counts logged DAYS per type.\n· `reported` — episodes a person reported themselves, through\n  `log_symptom` or the Vaultbeat app: `entry_id`, `symptom_type`,\n  `display_name` (their own words), `severity`, `local_date`, `onset_at` /\n  `end_at` (`end_recorded: false` means no end was logged — ask, do not\n  assume it is still going), `duration_minutes`, `body_location`,\n  `triggers`, `note`. `reported_counts` counts EPISODES per type.\nA type that exists in Apple Health is spelled the same in both lists\n(`healthkit_type: true`), so \"headache\" from either source is one symptom.\nTo correct or remove a reported entry use `update_symptom` /\n`delete_symptom` with its `entry_id`; imported days are edited in Apple Health.\nStays on-device, never re-exported.\n\nReturns YOUR symptoms by default; `partner=true` returns your partner's\nApple Health `days` only (if they share symptoms with you from their own\napp). A partner's `reported` episodes never reach you: the app and\n`log_symptom` seal them for their owner's own AI alone, so an empty\n`reported` under `partner=true` means \"not shareable\", not \"none logged\".\n\nCarries a `coverage` block: quote `coverage.days_covered` (distinct days, not\nthe row count) and `coverage.span_days` beside any average or trend.\n`coverage.window_satisfied: false` alone does NOT mean a short history: it is\nalso false when older days exist beyond your window. 🔴 Before saying how far\nback someone's data goes, read `coverage.more_available`: `true` means this\nserver can decrypt days OLDER than `first_day` that your `limit` left behind —\nre-read with a larger `limit`, or quote `coverage.oldest_available` as the real\nstart of their history. Never report a `limit`-shaped window as the extent of\ntheir data. `limit` cuts each list on its own: that many imported days AND that\nmany reported entries, so a day with three reports can come back with one.\n","inputSchema":{"additionalProperties":false,"properties":{"fresh":{"default":false,"title":"Fresh","type":"boolean"},"limit":{"default":120,"title":"Limit","type":"integer"},"partner":{"default":false,"title":"Partner","type":"boolean"}},"title":"get_symptomsArguments","type":"object"},"name":"get_symptoms","outputSchema":{"additionalProperties":true,"title":"get_symptomsDictOutput","type":"object"},"title":"Symptoms"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Decrypt recent states of mind (how the person felt) locally — both sources.\n\nSENSITIVE. Apple Health's \"State of Mind\": each record is one feeling with\n`valence` (-1 very unpleasant … 0 neutral … +1 very pleasant),\n`valence_classification` (Apple's seven regions, veryUnpleasant …\nveryPleasant — use these words rather than inventing a grade), `labels`\n(Apple's feeling words: drained, stressed, calm, grateful…),\n`associations` (the life area: work, family, partner, health…), `kind`\n(`momentaryEmotion` = how they felt at that moment, `dailyMood` = how the\nday went overall), `local_date` / `local_time`.\n`source` says where it came from:\n· \"apple_health\" — logged by the person on their Watch, in the Health app\n  or in another app, and imported by their iPhone (`app` names it);\n· \"ai\" — recorded by an AI through `log_state_of_mind` (`entry_id`,\n  `note`). Remove a mistaken one with `delete_state_of_mind`.\nEach owner also carries `daily` (per day: `count`, `mean_valence`,\n`lowest_valence`, `highest_valence`, `daily_mood_valence`) and counts per\nregion, label and life area. Describe what was logged; a day with one\nrecord says far less than a day with ten — quote `count` beside any\naverage, and never read a day with no record as a neutral day.\n\nBy default the newest 100 records (about three months of daily moods).\n`since` / `until` (\"YYYY-MM-DD\", local days, both inclusive) read a\ncalendar window instead — \"how was I in March\", or anything older than\nthe default page — and then `limit` applies only if you pass it. A\nrecord with its tallies is roughly 450 bytes, so about 130 fit in one\nresult; a longer window comes back as `result_too_large` — read it a\nmonth or a quarter at a time.\n\nReturns YOUR records by default; `partner=true` returns your partner's —\nonly if they turned on sharing their moods with your AI in their own\nVaultbeat app (off by default). Stays on-device, never re-exported.\n\nCarries a `coverage` block: quote `coverage.days_covered` (distinct days, not\nthe row count) and `coverage.span_days` beside any average or trend.\n`coverage.window_satisfied: false` alone does NOT mean a short history: it is\nalso false when older days exist beyond your window. 🔴 Before saying how far\nback someone's data goes, read `coverage.more_available`: `true` means this\nserver can decrypt records OLDER than `first_day` that your read left behind —\nread them with a `since` / `until` window ending before `first_day` (a much\nlarger `limit` does not fit in one result), or quote\n`coverage.oldest_available` as the real start of their history. Never report a\n`limit`-shaped window as the extent of their data.\n","inputSchema":{"additionalProperties":false,"properties":{"fresh":{"default":false,"title":"Fresh","type":"boolean"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Limit"},"partner":{"default":false,"title":"Partner","type":"boolean"},"since":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Since"},"until":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Until"}},"title":"get_state_of_mindArguments","type":"object"},"name":"get_state_of_mind","outputSchema":{"additionalProperties":true,"title":"get_state_of_mindDictOutput","type":"object"},"title":"State of mind (moods)"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Decrypt recent free-text notes (day annotations) locally.\n\nSENSITIVE free text. Each note carries `owner_user_id` (who wrote it),\n`target_kind`, and `target_date` (the local day it annotates) — join\nagainst the same-day metric data for pattern analysis. Kinds:\n\"sleep\" | \"menstrual\" are written manually in the iOS app by either\npartner (e.g. \"昨晚舍友很吵\" on a sleep day), and \"day\" is what the\nperson wrote about the day itself in the app's notes list (app 1.3.0+);\n\"general\" is\nagent-authored via `log_note`; \"mood\" notes are ones an AI wrote before\nmoods moved to `get_state_of_mind` — read them here, write no new ones.\nPass target_kind to filter.\nStays on-device, never re-exported.\n\nReturns notes about YOU by default. `partner=true` returns notes about your\npartner: the ones they wrote themselves and shared, plus the ones your AI\nrecorded about them (`about: \"partner\"`, written with\n`log_note_append(partner=true)`).\n\nCarries a `coverage` block: quote `coverage.days_covered` (distinct days, not\nthe row count) and `coverage.span_days` beside any average or trend.\n`coverage.window_satisfied: false` alone does NOT mean a short history: it is\nalso false when older days exist beyond your window. 🔴 Before saying how far\nback someone's data goes, read `coverage.more_available`: `true` means this\nserver can decrypt days OLDER than `first_day` that your `limit` left behind —\nre-read with a larger `limit`, or quote `coverage.oldest_available` as the real\nstart of their history. Never report a `limit`-shaped window as the extent of\ntheir data.\n","inputSchema":{"additionalProperties":false,"properties":{"fresh":{"default":false,"title":"Fresh","type":"boolean"},"limit":{"default":120,"title":"Limit","type":"integer"},"partner":{"default":false,"title":"Partner","type":"boolean"},"target_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Target Kind"}},"title":"get_notesArguments","type":"object"},"name":"get_notes","outputSchema":{"additionalProperties":true,"title":"get_notesDictOutput","type":"object"},"title":"Notes"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Decrypt recent strength-training sessions locally (newest first).\n\nExercise-level detail HealthKit's workout type cannot carry: each\nsession lists exercises with their sets (weightKg × reps), an optional\nsession note, and `total_volume_kg` (Σ weight × reps). Logged manually\nin Vaultbeat; owner's own sessions only — strength has no partner\nfan-out. Join `date` against sleep/HRV/weight for training-load\nanalysis. Pass limit_days to cap how many sessions return.\n`duplicate_sessions`, when present, lists stored entries that only repeat\nanother session of the same day; they are already left out of `sessions`\nand `session_count`, so do not add their volume back.\n\nCarries a `coverage` block: quote `coverage.days_covered` (distinct days, not\nthe row count) and `coverage.span_days` beside any average or trend.\n`coverage.window_satisfied: false` alone does NOT mean a short history: it is\nalso false when older days exist beyond your window. 🔴 Before saying how far\nback someone's data goes, read `coverage.more_available`: `true` means this\nserver can decrypt days OLDER than `first_day` that your `limit` left behind —\nre-read with a larger `limit`, or quote `coverage.oldest_available` as the real\nstart of their history. Never report a `limit`-shaped window as the extent of\ntheir data.\n","inputSchema":{"additionalProperties":false,"properties":{"fresh":{"default":false,"title":"Fresh","type":"boolean"},"limit":{"default":120,"title":"Limit","type":"integer"},"limit_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Limit Days"}},"title":"get_strength_logArguments","type":"object"},"name":"get_strength_log","outputSchema":{"additionalProperties":true,"title":"get_strength_logDictOutput","type":"object"},"title":"Strength log"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Log one strength-training session on the owner's behalf (agent write).\n\n⚠️ THIS TOOL DELETES. The supplied `exercises` become the day's ENTIRE\nsession — any exercise you don't re-send is silently deleted. If you meant\nto ADD to a day rather than replace it, STOP and call\n`log_strength_append` instead; it cannot delete anything.\n\n(`merge=True` still does the same thing as `log_strength_append` and\nkeeps working for callers that already use it. New callers should use\nthe separate tool: which one you called is visible to the owner, a flag\nburied in the arguments is not.)\n\nThe result carries `replaced_exercises` — the names this call deleted.\nIf that list is non-empty and you did not intend to replace the day, you\njust destroyed those exercises; re-send them with `merge=True`.\n\n`note=None` LEAVES THE EXISTING NOTE ALONE (pass `note=\"\"` to clear it).\n\n`date` is the LOCAL calendar day the session happened, \"YYYY-MM-DD\".\n`exercises` is `[{\"name\": \"卧推\", \"sets\": [{\"weightKg\": 30, \"reps\": 8}, ...]}, ...]`.\nEncrypted end-to-end before it ever leaves this machine — this server\nnever sends plaintext. Requires a bind made after this feature shipped\n(carries owner_user_id/owner_public_key_base64/owner_device_id from\nthe pairing handshake); an older bind must re-pair by running\n`uvx vaultbeat-apple-health@latest bind` in a terminal.\n","inputSchema":{"additionalProperties":false,"properties":{"date":{"title":"Date","type":"string"},"exercises":{"items":{"additionalProperties":true,"type":"object"},"title":"Exercises","type":"array"},"merge":{"default":false,"title":"Merge","type":"boolean"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Note"}},"required":["date","exercises"],"title":"log_strength_entryArguments","type":"object"},"name":"log_strength_entry","outputSchema":{"additionalProperties":true,"title":"log_strength_entryDictOutput","type":"object"},"title":"Log strength session (replaces day)"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Add exercises to a session WITHOUT touching what is already logged (agent write).\n\nThis tool cannot delete anything you did not send. Your `exercises` are\nappended to the day's existing session; an exercise whose `name` matches an\nexisting one gets its sets appended to it. This is the right tool for \"log\nthe set I forgot\" or for logging a session in installments while the owner\nis still in the gym — which is how strength data actually arrives.\n\nReach for `log_strength_entry` ONLY when you intend the supplied exercises\nto become the day's ENTIRE session and everything else to be deleted.\n\n`date` is the LOCAL calendar day the session happened, \"YYYY-MM-DD\".\n`exercises` is `[{\"name\": \"卧推\", \"sets\": [{\"weightKg\": 30, \"reps\": 8}, ...]}, ...]`.\n\nThis tool deliberately cannot set the session note: that field is\nreplace-only, and a tool that promises to delete nothing must not carry an\nexception. Use `log_strength_entry` to change it.\n\nThe result is the same shape `log_strength_entry` returns.\n`replaced_exercises` is always `[]` here — that empty list is the receipt\nthat this call deleted nothing. Encrypted end-to-end before it ever leaves\nthis machine. Requires a bind made after the agent write path shipped; an\nolder bind must re-pair by running `uvx vaultbeat-apple-health@latest bind`\nin a terminal.\n","inputSchema":{"additionalProperties":false,"properties":{"date":{"title":"Date","type":"string"},"exercises":{"items":{"additionalProperties":true,"type":"object"},"title":"Exercises","type":"array"}},"required":["date","exercises"],"title":"log_strength_appendArguments","type":"object"},"name":"log_strength_append","outputSchema":{"additionalProperties":true,"title":"log_strength_appendDictOutput","type":"object"},"title":"Add to strength log"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Decrypt daily food-intake logs locally (newest first).\n\n`limit` counts LOGGED days: by default the newest 14 days that have a\nlog — not a calendar fortnight. Days with nothing logged are skipped, so\nthe 14 can reach further back; `coverage.span_days` and\n`coverage.days_missing_in_span` say how far. `since` / `until`\n(\"YYYY-MM-DD\", local days, both inclusive) read a calendar window\ninstead — \"what did I eat in the first week of August\" — and then\n`limit` applies only if you pass it. Each day's `date` is its local\ncalendar day (the same as `local_date`, and the form `log_food_entry`\nand `get_strength_log` use). A logged day is roughly 0.5-1k\ntokens (more with notes, and Chinese text counts more), so a month can\nalready be past what a client takes in one result — it then comes back\nas `result_too_large`; ask for fewer days or a narrower window.\n\nEach day carries `meals`, each meal a list of `items` with `food` (name),\noptional free-text `portion` (\"1 根\" / \"300g\" / \"小份\"), optional\nper-item/per-meal `note`, and — when the logging agent estimated them —\noptional structured nutrition numbers (`kcal`, `proteinGrams`,\n`fatGrams`, `carbGrams`). Items without those fields need analysis-time\nestimation from name + portion; items with them can be summed directly.\nOwner's own days only. Pass limit_days to cap how many days return.\n\nCarries a `coverage` block: quote `coverage.days_covered` (distinct days, not\nthe row count) and `coverage.span_days` beside any average or trend.\n`coverage.window_satisfied: false` alone does NOT mean a short history: it is\nalso false when older days exist beyond your window. 🔴 Before saying how far\nback someone's data goes, read `coverage.more_available`: `true` means this\nserver can decrypt days OLDER than `first_day` that your `limit` left behind —\nre-read with a larger `limit`, or quote `coverage.oldest_available` as the real\nstart of their history. Never report a `limit`-shaped window as the extent of\ntheir data.\n","inputSchema":{"additionalProperties":false,"properties":{"fresh":{"default":false,"title":"Fresh","type":"boolean"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Limit"},"limit_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Limit Days"},"since":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Since"},"until":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Until"}},"title":"get_food_logArguments","type":"object"},"name":"get_food_log","outputSchema":{"additionalProperties":true,"title":"get_food_logDictOutput","type":"object"},"title":"Food log"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Log one day's food intake on the owner's behalf (agent write).\n\n⚠️ THIS TOOL DELETES. The supplied `meals` become the day's ENTIRE log —\nany meal you don't re-send is silently deleted. If you meant to ADD to a\nday rather than replace it, STOP and call `log_food_append` instead; it\ncannot delete anything.\n\n(`merge=True` still does the same thing as `log_food_append` and keeps\nworking for callers that already use it. New callers should use the\nseparate tool: which one you called is visible to the owner, a flag\nburied in the arguments is not.)\n\nThe result carries `replaced_meals` — the meals this call deleted. If\nthat list is non-empty and you did not intend to replace the day, you\njust destroyed them; re-send them with `merge=True`.\n\n`note=None` LEAVES THE EXISTING NOTE ALONE in both modes (pass\n`note=\"\"` to clear it).\n\n`date` is the LOCAL calendar day, \"YYYY-MM-DD\".\n`meals` is a list of `{name?, timeOfDay?, items: [...], note?}` where each\nitem is `{food, portion?, note?, kcal?, proteinGrams?, fatGrams?, carbGrams?}`,\ne.g. `[{\"name\": \"lunch\", \"items\": [{\"food\": \"香蕉\", \"portion\": \"1 根\", \"kcal\": 105}]}]`.\nEverything but `food` is optional so a rushed \"just log 香蕉\" still works;\nwhen you DO estimate nutrition at logging time, put the numbers in the\nstructured fields (snake_case aliases like `protein_g` are accepted) —\nthey persist for later sessions instead of being re-guessed each read.\n\nESTIMATING FROM A PHOTO: look for something of known size in the frame\nfirst — a utensil, a hand, a coin, the rim of a standard plate — and\ncalibrate the portion against it. With no such reference an image cannot\nsettle portion size, and portion size is what the whole estimate rests\non. In that case say so in your reply and give a range rather than a\nprecise-looking number. These values are persisted and summed into daily\ntotals later, so a confident \"650 kcal\" that is wrong does more damage\nthan \"roughly 500-700, nothing in frame to judge size by\" — the first\nsilently poisons a week of trends, the second invites a correction.\n[keep the photo-estimation paragraph above in sync with log_food_append's copy]\nEncrypted end-to-end before it ever leaves this machine.\n","inputSchema":{"additionalProperties":false,"properties":{"date":{"title":"Date","type":"string"},"meals":{"items":{"additionalProperties":true,"type":"object"},"title":"Meals","type":"array"},"merge":{"default":false,"title":"Merge","type":"boolean"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Note"}},"required":["date","meals"],"title":"log_food_entryArguments","type":"object"},"name":"log_food_entry","outputSchema":{"additionalProperties":true,"title":"log_food_entryDictOutput","type":"object"},"title":"Log food (replaces day)"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Add meals to a day WITHOUT touching what is already logged (agent write).\n\nThis tool cannot delete anything you did not send. Your `meals` are appended\nto whatever the day already holds; a meal whose `name` matches an existing\nmeal gets its items appended to that meal. This is the right tool for \"log\nthe snack I forgot\" / \"add dinner to today\" — which is almost every\nfollow-up write of the day.\n\nReach for `log_food_entry` ONLY when you intend the supplied meals to become\nthe day's ENTIRE log and everything else to be deleted.\n\n`date` is the LOCAL calendar day, \"YYYY-MM-DD\".\n`meals` is a list of `{name?, timeOfDay?, items: [...], note?}` where each\nitem is `{food, portion?, note?, kcal?, proteinGrams?, fatGrams?, carbGrams?}`,\ne.g. `[{\"name\": \"lunch\", \"items\": [{\"food\": \"香蕉\", \"portion\": \"1 根\", \"kcal\": 105}]}]`.\nEverything but `food` is optional so a rushed \"just log 香蕉\" still works;\nwhen you DO estimate nutrition at logging time, put the numbers in the\nstructured fields (snake_case aliases like `protein_g` are accepted) — they\npersist for later sessions instead of being re-guessed each read.\n\nESTIMATING FROM A PHOTO: look for something of known size in the frame\nfirst — a utensil, a hand, a coin, the rim of a standard plate — and\ncalibrate the portion against it. With no such reference an image cannot\nsettle portion size, and portion size is what the whole estimate rests on.\nIn that case say so in your reply and give a range rather than a\nprecise-looking number. These values are persisted and summed into daily\ntotals later, so a confident \"650 kcal\" that is wrong does more damage than\n\"roughly 500-700, nothing in frame to judge size by\" — the first silently\npoisons a week of trends, the second invites a correction.\n[keep the photo-estimation paragraph above in sync with log_food_entry's copy]\n\nThis tool deliberately cannot set the day's note: that field is\nreplace-only, and a tool that promises to delete nothing must not carry an\nexception. Use `log_food_entry` to change it.\n\nThe result is the same shape `log_food_entry` returns. `replaced_meals` is\nalways `[]` here — that empty list is the receipt that this call deleted\nnothing. Encrypted end-to-end before it ever leaves this machine.\n","inputSchema":{"additionalProperties":false,"properties":{"date":{"title":"Date","type":"string"},"meals":{"items":{"additionalProperties":true,"type":"object"},"title":"Meals","type":"array"}},"required":["date","meals"],"title":"log_food_appendArguments","type":"object"},"name":"log_food_append","outputSchema":{"additionalProperties":true,"title":"log_food_appendDictOutput","type":"object"},"title":"Add to food log"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Log a free-text note on the owner's behalf (agent write).\n\nFor day events that belong next to the metric data instead of in chat\nhistory, worth joining against sleep/HRV later (`kind=\"general\"`, the\ndefault and the only kind this tool writes).\nA feeling does NOT go here, nor the story behind it: call\n`log_state_of_mind`, which keeps it as Apple Health's fields and has its\nown `note` for the why. This tool refuses `kind=\"mood\"` — one feeling\nrecorded twice, once structured and once as free text, is what that kind\nproduced. (sleep, menstrual and day notes are written in the iOS app —\nrefused too.)\n\n⚠️ THIS TOOL DELETES. There is one note per (kind, day), and your `text`\nbecomes its ENTIRE contents — anything already written for that kind+day\nis silently deleted. If you meant to ADD to a day rather than replace it,\nSTOP and call `log_note_append` instead; it cannot delete anything.\n\n(`merge=True` still does the same thing as `log_note_append` and keeps\nworking for callers that already use it. New callers should use the\nseparate tool: which one you called is visible to the owner, a flag\nburied in the arguments is not.)\n\nThe result carries `replaced_text` — the note this call deleted. If it is\nnon-null and you did not intend to replace, you just destroyed that text;\nre-send it with `merge=True`.\n\nSymptoms do NOT go here: use `log_symptom`, one call per symptom. A\nnote is free text nothing can be matched against; a symptom entry keeps\nits type, severity and timing so it can later be lined up with sleep,\nfood and heart rate. A note is for what surrounds it (events, how a day\nwent).\n\n`date` = LOCAL calendar day \"YYYY-MM-DD\" (default today). Read back via\n`get_notes` (optionally `target_kind=\"general\"`). Encrypted end-to-end\nbefore it ever leaves this machine.\n\n`partner=true` records a note ABOUT your partner (\"she had a stomach ache\nthis morning\"). It is stored in YOUR account and sealed for you and your own\nAI machines only (the Vaultbeat app passes it on to your other paired\nmachines) — never for your partner or their AI. Your partner's account is\nnever touched, and it never mixes into your own notes: plain reads leave it\nout, `get_notes(partner=true)` returns it. Default `false` = a note about you.\n","inputSchema":{"additionalProperties":false,"properties":{"date":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Date"},"kind":{"default":"general","title":"Kind","type":"string"},"merge":{"default":false,"title":"Merge","type":"boolean"},"partner":{"default":false,"title":"Partner","type":"boolean"},"text":{"title":"Text","type":"string"}},"required":["text"],"title":"log_noteArguments","type":"object"},"name":"log_note","outputSchema":{"additionalProperties":true,"title":"log_noteDictOutput","type":"object"},"title":"Log note (replaces note)"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Add a line to a day's note WITHOUT erasing what is already there (agent write).\n\nThere is one note per (kind, day). This tool appends your `text` to it on a\nnew line and cannot delete what is already written.\n\nThe second note of a day is the normal case, not the exception — a\nmorning event and an evening one — and `log_note` would replace the\nfirst with the second. Symptoms do NOT go here: use `log_symptom`, which\nkeeps type, severity and timing as fields a later analysis can match.\n\nReach for `log_note` ONLY when you intend your text to become the note's\nENTIRE contents and whatever is there now to be deleted (e.g. correcting\nsomething you yourself wrote a minute ago).\n\n`kind=\"general\"` (the default and the only kind it writes) for day events\nworth joining against sleep/HRV later. A feeling and the story behind it\ngo to `log_state_of_mind` and its `note`; this tool refuses `kind=\"mood\"`,\nand sleep, menstrual and day notes are written in the iOS app. `date` = LOCAL calendar day\n\"YYYY-MM-DD\" (default today). Read back via `get_notes`.\n\nThe result is the same shape `log_note` returns. `replaced_text` is always\n`null` here — that null is the receipt that this call deleted nothing.\nEncrypted end-to-end before it ever leaves this machine.\n\n`partner=true` records a note ABOUT your partner (\"she had a stomach ache\nthis morning\"). It is stored in YOUR account and sealed for you and your own\nAI machines only (the Vaultbeat app passes it on to your other paired\nmachines) — never for your partner or their AI. Your partner's account is\nnever touched, and it never mixes into your own notes: plain reads leave it\nout, `get_notes(partner=true)` returns it. Default `false` = a note about you.\n","inputSchema":{"additionalProperties":false,"properties":{"date":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Date"},"kind":{"default":"general","title":"Kind","type":"string"},"partner":{"default":false,"title":"Partner","type":"boolean"},"text":{"title":"Text","type":"string"}},"required":["text"],"title":"log_note_appendArguments","type":"object"},"name":"log_note_append","outputSchema":{"additionalProperties":true,"title":"log_note_appendDictOutput","type":"object"},"title":"Add to note"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Record one symptom the person reports — one call per symptom (agent write).\n\nThis is where \"我肚子疼\" / \"headache since lunch\" / \"拉肚子了\" goes, not a\nnote: each episode is kept as fields (type, severity, timing, place,\nsuspected causes) so a later read can line it up with sleep, food, heart\nrate and wrist temperature. Two symptoms at once are two calls. This tool\nonly ever adds; it cannot change or delete anything already recorded.\n\n`symptom_type`: a short English token. Use the Apple Health name when one\nfits — abdominal_cramps, bloating, constipation, diarrhea, heartburn,\nnausea, vomiting, headache, dizziness, fatigue, fever, chills, coughing,\nsore_throat, runny_nose, lower_back_pain, chest_tightness_or_pain,\nshortness_of_breath, acne, night_sweats… — so it merges with what Apple\nHealth imports; otherwise a plain descriptive one (rectal_bleeding,\nstomach_spasm, eye_strain). Any spelling is folded to one form.\n`display_name`: the person's own words, e.g. \"便血\" / \"胃痉挛\".\n\n`severity`: mild | moderate | severe | unspecified. Use `unspecified`\nunless they said how bad it is — never grade it for them.\n\n`onset_at`: when it began, ISO 8601 with their UTC offset, e.g.\n\"2026-09-30T10:49+08:00\". Omit it only for something happening NOW (it\ndefaults to the current time). If they named a day but no time\n(\"昨天头疼\"), pass that day as a bare \"2026-09-29\" — do not invent an hour.\n`end_at`: when it eased, if they said; add it later with `update_symptom`.\n`date`: the local day to file it under, only when it differs from the\nonset's own day.\n`body_location`, `note`: free text, only what they said.\n`triggers`: what THEY suspect caused it, as short tokens\n([\"bbq_dinner\", \"spicy_food\"], [\"sleep_deprivation\"]). Record their\nsuspicion; do not add causes of your own.\n\nReturns `entry_id` (keep it for `update_symptom` / `delete_symptom`) and\nthe entry as read back. Read everything with `get_symptoms`. Sealed for\nthe owner and this machine only, end to end, before it leaves here.\n","inputSchema":{"additionalProperties":false,"properties":{"body_location":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Body Location"},"date":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Date"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Display Name"},"end_at":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"End At"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Note"},"onset_at":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Onset At"},"severity":{"default":"unspecified","title":"Severity","type":"string"},"symptom_type":{"title":"Symptom Type","type":"string"},"triggers":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Triggers"}},"required":["symptom_type"],"title":"log_symptomArguments","type":"object"},"name":"log_symptom","outputSchema":{"additionalProperties":true,"title":"log_symptomDictOutput","type":"object"},"title":"Log symptom"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Change fields of one reported symptom (agent write) — e.g. it eased.\n\nThe common call is `update_symptom(entry_id, end_at=\"…\")` when the person\nsays it has stopped, or a new `severity` when it got worse. Only the\nfields you pass change; omitted ones keep their value. Passing a field\nOVERWRITES it: `note` replaces the old note rather than adding to it, and\n`triggers` replaces the whole list — read the entry first and send the\ncombined list if you mean to add one. `\"\"` clears a text field or a\nmistaken `end_at`; `[]` clears triggers.\n\n`entry_id` comes from `log_symptom` or from `get_symptoms`' `reported`\nlist. Symptoms imported from Apple Health cannot be edited here.\n\nReturns `previous` — the old value of every field this call changed — and\nthe entry as read back.\n","inputSchema":{"additionalProperties":false,"properties":{"body_location":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Body Location"},"date":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Date"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Display Name"},"end_at":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"End At"},"entry_id":{"title":"Entry Id","type":"string"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Note"},"onset_at":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Onset At"},"severity":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Severity"},"symptom_type":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Symptom Type"},"triggers":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Triggers"}},"required":["entry_id"],"title":"update_symptomArguments","type":"object"},"name":"update_symptom","outputSchema":{"additionalProperties":true,"title":"update_symptomDictOutput","type":"object"},"title":"Update symptom (overwrites given fields)"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Erase one reported symptom that was logged by mistake (agent write).\n\nOnly for an entry that should never have existed — a duplicate, the wrong\nperson, a symptom they did not have. A symptom that simply ended is NOT\ndeleted: record its end with `update_symptom(entry_id, end_at=…)`.\n\nIt disappears from `get_symptoms` at once, and from the app and every\nother reader once the person's iPhone next syncs (it then overwrites the\nentry's own copy in the cloud, and from app 1.3.0 removes the copies\nearlier `update_symptom` calls left; an older app leaves those sealed\nthere, readable only by the person and the server that wrote them). The\nresult carries `deleted_entry` — the\nfull entry as it was — so a mistaken delete can be logged again with\n`log_symptom`. Symptoms imported from Apple Health cannot be deleted here.\n","inputSchema":{"additionalProperties":false,"properties":{"entry_id":{"title":"Entry Id","type":"string"}},"required":["entry_id"],"title":"delete_symptomArguments","type":"object"},"name":"delete_symptom","outputSchema":{"additionalProperties":true,"title":"delete_symptomDictOutput","type":"object"},"title":"Delete symptom (erases the entry)"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Record how the person says they feel, as Apple Health's State of Mind (agent write).\n\nThis is where \"今天工作好累，被掏空了\" / \"刚散步回来，心情特别平静\" /\n\"I'm so anxious about tomorrow\" goes when they tell you how they feel —\npeople rarely open an app to log a feeling, but they say it to you. One\ncall per feeling. This tool only ever adds; `delete_state_of_mind`\nremoves a mistaken one.\n\n`valence`: -1 (very unpleasant) … 0 (neutral) … +1 (very pleasant), YOUR\nreading of how pleasant it felt FROM THEIR WORDS. Apple splits the range\ninto seven equal regions: about -0.85 very unpleasant, -0.55 unpleasant,\n-0.3 slightly unpleasant, 0 neutral, +0.3 slightly pleasant, +0.55\npleasant, +0.85 very pleasant. Stay inside what they said; do not\ndramatise \"有点烦\" into very unpleasant.\n\n`labels`: Apple's feeling words that THEIR words support, usually one to\nthree — amazed, amused, angry, annoyed, anxious, ashamed, brave, calm,\nconfident, content, disappointed, discouraged, disgusted, drained,\nembarrassed, excited, frustrated, grateful, guilty, happy, hopeful,\nhopeless, indifferent, irritated, jealous, joyful, lonely, overwhelmed,\npassionate, peaceful, proud, relieved, sad, satisfied, scared, stressed,\nsurprised, worried. Leave it empty rather than guess when they only said\n\"心情还行\".\n`associations`: what it is about, only if they said — community,\ncurrent_events, dating, education, family, fitness, friends, health,\nhobbies, identity, money, partner, self_care, spirituality, tasks,\ntravel, weather, work.\n`kind`: \"momentaryEmotion\" (default — how they feel right now or at one\nmoment) or \"dailyMood\" (how the whole day has been).\n`logged_at`: the moment, ISO 8601 with their UTC offset, e.g.\n\"2026-10-04T14:20+08:00\"; omit it for right now. A `dailyMood` about a past\nday may give just that day as `date` (\"2026-10-03\") — do not invent an hour.\n`note`: a short summary in their words, only if useful later. It stays in\nVaultbeat; Apple Health has no place for text.\n\nThe person's iPhone writes it into Apple Health (Mental Wellbeing → State\nof Mind) only if they turned on \"Allow AI to update Apple Health\" in the\napp — it is off by default; either way it shows in Vaultbeat's mood\ncalendar (app 1.3.0 and later; an older app keeps it without showing it). Returns `entry_id` (for `delete_state_of_mind`) and the entry as\nread back. Read everything with `get_state_of_mind`. Encrypted end to end\nbefore it leaves here, for the owner and this machine; the owner's iPhone\nthen re-seals it for their other paired machines and — only if they turned\non sharing moods with their partner's AI — for that AI too, `note`\nincluded, so write nothing in `note` they would not want that reader to see.\n","inputSchema":{"additionalProperties":false,"properties":{"associations":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Associations"},"date":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Date"},"kind":{"default":"momentaryEmotion","title":"Kind","type":"string"},"labels":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Labels"},"logged_at":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Logged At"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Note"},"valence":{"title":"Valence","type":"number"}},"required":["valence"],"title":"log_state_of_mindArguments","type":"object"},"name":"log_state_of_mind","outputSchema":{"additionalProperties":true,"title":"log_state_of_mindDictOutput","type":"object"},"title":"Log state of mind"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Erase one state of mind an AI recorded by mistake (agent write).\n\nOnly for an entry that should never have existed — a duplicate, the wrong\nreading of what they said, the wrong person. To record that a feeling\nchanged, log a new one; feelings change and both are true.\n\nIt disappears from `get_state_of_mind` at once. The person's iPhone, on\nits next sync, drops it from the app, overwrites its content in the cloud\nfor every reader it was shared with, and removes the sample it wrote into\nApple Health, if it wrote one. The result carries\n`deleted_entry` — the full entry as it was — so a mistaken delete can be\nlogged again. Records with `source: \"apple_health\"` cannot be deleted\nhere; they are edited in Apple Health.\n","inputSchema":{"additionalProperties":false,"properties":{"entry_id":{"title":"Entry Id","type":"string"}},"required":["entry_id"],"title":"delete_state_of_mindArguments","type":"object"},"name":"delete_state_of_mind","outputSchema":{"additionalProperties":true,"title":"delete_state_of_mindDictOutput","type":"object"},"title":"Delete state of mind (erases the entry)"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Log the owner's weight (kg) on their behalf (agent write, 2026-07-21).\n\n`weight_kg`: kilograms (positive, ≤500). `date`: LOCAL calendar day\n\"YYYY-MM-DD\" (default = today). Same-day upsert-in-place semantics\n(dayID = \"body-{dayStart.epoch}\") — re-logging the same day overwrites.\nEncrypted end-to-end before it ever leaves this machine.\n\nA weight's home is Apple Health: the phone carries this one there on its\nnext sync, through the iOS setting \"Allow AI to update Apple Health\" (MCP\ntab; OFF by default). It is also readable here at once (`get_metric`\nseries \"weight_kg\").\n\n⚠️ When no iPhone of this account has that setting on (with Weight access\ngranted), the write is REFUSED and nothing is saved — from app 1.3.0 a\nweight may not live only in the cloud. The error says what to turn on;\npass it on and do not retry until the person has done it. Never tell them\nto re-enter the number by hand in the Vaultbeat weight card instead:\nlogging it in both places makes two entries for one day from different\nsources and corrupts the trend line.\n","inputSchema":{"additionalProperties":false,"properties":{"date":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Date"},"weight_kg":{"title":"Weight Kg","type":"number"}},"required":["weight_kg"],"title":"log_weight_entryArguments","type":"object"},"name":"log_weight_entry","outputSchema":{"additionalProperties":true,"title":"log_weight_entryDictOutput","type":"object"},"title":"Log weight (replaces day)"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Decrypt recent menstrual cycle data locally and predict the next period.\n\nSENSITIVE: menstrual data only reaches this server if the user explicitly opted\nin on iOS; it stays on-device and is never re-exported. Returns recent samples plus\na next-period prediction. Reads YOUR cycle by default; if the cycle being\nasked about is your partner's, pass `partner=true` (it reaches this server\nonly if they share it).\n\nCarries a `coverage` block: quote `coverage.days_covered` (distinct days, not\nthe row count) and `coverage.span_days` beside any average or trend.\n`coverage.window_satisfied: false` alone does NOT mean a short history: it is\nalso false when older days exist beyond your window. 🔴 Before saying how far\nback someone's data goes, read `coverage.more_available`: `true` means this\nserver can decrypt days OLDER than `first_day` that your `limit` left behind —\nre-read with a larger `limit`, or quote `coverage.oldest_available` as the real\nstart of their history. Never report a `limit`-shaped window as the extent of\ntheir data.\n","inputSchema":{"additionalProperties":false,"properties":{"fresh":{"default":false,"title":"Fresh","type":"boolean"},"limit":{"default":90,"title":"Limit","type":"integer"},"partner":{"default":false,"title":"Partner","type":"boolean"}},"title":"get_menstrual_cycleArguments","type":"object"},"name":"get_menstrual_cycle","outputSchema":{"additionalProperties":true,"title":"get_menstrual_cycleDictOutput","type":"object"},"title":"Menstrual cycle"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Per-night sleep stages with per-stage HR/RR — depth on a few nights.\n\nWhich sleep tool to use:\n· THIS one for going deep on one or two specific nights (stage bands,\n  per-stage vitals). It defaults to 2 nights because each is ~3k\n  characters; see the SIZE note below.\n· `get_sleep_nights` for anything spanning time — \"how did I sleep\n  this week/month/year\", patterns, worst nights. One compact row per\n  night, a whole year in one read. Reach for it whenever the question\n  is about a period rather than a night, and do not conclude from THIS\n  tool's two rows that only two nights exist.\n· `get_metric` with the sleep series (`bedtime_minutes`,\n  `deep_sleep_minutes`, `awakenings`, ...) for averages computed for you.\n\n(This used to call itself \"the primary tool for detailed sleep analysis\",\nwhich read as \"use this one for sleep\" and handed back two days to\nanyone who asked how their week went.)\n\nReturns `stage_intervals` (contiguous stage bands with start/end),\n`stage_minutes`, and `stage_vitals` (per-stage HR/RR min/mean/max). Reads\nYOUR nights by default; `partner=true` reads your partner's shared sleep.\n\n`limit` = the newest N nights, 2 by default. To read a particular night,\npass its date as `since` and `until` (\"YYYY-MM-DD\", the local day the\nnight ENDS on — the `local_date` / `date` column of `get_sleep_nights`);\na wider `since` / `until` reads every night in that window, and `limit`\nthen applies only if you pass it.\n\n⚠️ SIZE: each night is ~3k characters as returned (a week ~21k). Setting\n`include_timeline=True` adds the raw per-sample array (hr, rr, stage,\ntime) — about 13k characters PER NIGHT, which will overflow a typical\n25k-token client budget after 2-3 nights. Ask for it only when you need\nsample-level vitals (e.g. \"when exactly did HR spike\"); `stage_vitals`\nalready answers per-stage questions. Raise `limit` for trends, but keep\nit low whenever `include_timeline=True`.\n\n⚠️ `is_in_bed_only: true` means sleep was NEVER MEASURED that night (the\nWatch wasn't worn) — NOT that the person slept zero. `duration_label`\nreads \"no sleep data\" and `in_bed_minutes` holds the time actually\nrecorded in bed. Report it as \"no sleep data (in bed ~Xh)\", never as\n\"slept 0 hours\".\n\nCarries a `coverage` block: quote `coverage.days_covered` (distinct days, not\nthe row count) and `coverage.span_days` beside any average or trend.\n`coverage.window_satisfied: false` alone does NOT mean a short history: it is\nalso false when older days exist beyond your window. 🔴 Before saying how far\nback someone's data goes, read `coverage.more_available`: `true` means this\nserver can decrypt days OLDER than `first_day` that your `limit` left behind —\nre-read with a larger `limit`, or quote `coverage.oldest_available` as the real\nstart of their history. Never report a `limit`-shaped window as the extent of\ntheir data.\n","inputSchema":{"additionalProperties":false,"properties":{"fresh":{"default":false,"title":"Fresh","type":"boolean"},"include_timeline":{"default":false,"title":"Include Timeline","type":"boolean"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Limit"},"partner":{"default":false,"title":"Partner","type":"boolean"},"since":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Since"},"until":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Until"}},"title":"get_sleep_detailArguments","type":"object"},"name":"get_sleep_detail","outputSchema":{"additionalProperties":true,"title":"get_sleep_detailDictOutput","type":"object"},"title":"Sleep stage detail"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Every night as one compact row — the tool for reading a sleep HISTORY.\n\nOne row per night, newest first: date, weekday, bed and wake time, time\nasleep, deep / REM / core / awake minutes, deep and REM share, number of\nawakenings, longest unbroken stretch of sleep, heart and breathing rate\nwhile asleep, and any OTHER sleep that day (naps, the second half of a\nbroken night) — so a day's total sleep is `asleep` plus `other`. Column names come once in `columns`; each row is the\nvalues in that order, so a whole year is ~40k characters. Read it when\nthe question is about a period or a pattern: weekends vs weekdays,\ndrifting bedtimes, which nights were worst, what changed after a date.\n\nWhich sleep tool:\n· THIS one for any span of time.\n· `get_metric` with the sleep series (`sleep_minutes`, `bedtime_minutes`,\n  `deep_sleep_minutes`, `awakenings`, ...) when you want the arithmetic —\n  weekly/monthly averages computed for you, from these same rows.\n· `get_sleep_detail` for one or two nights in depth (stage bands,\n  per-stage vitals).\n\n`limit` = newest N nights (default 120; pass 400 for everything, and\ncheck `coverage.more_available`). `since` = \"YYYY-MM-DD\" keeps every\nnight on or after that day — use it for \"last month\" rather than\nguessing a limit; with `since`, `limit` applies only if you pass it.\n\nRead `legend` once. Five flags, comma-separated when a night has several:\n`unworn` means sleep was never measured that night (not zero sleep),\n`motion_inferred` means phone motion guessed it (leave it out of averages,\nas `get_metric` does), `daytime` means the day's only sleep was a daytime\nnap (real, but not a night — out of `get_metric`'s nightly series, still\na row here), `short` means a main sleep under 3 h with\nno stages — a nap or a partly recorded night, left out of `get_metric`'s\nsleep-duration and clock series — and `no_stages` means the total is\nknown but the stage columns are null. A null anywhere is \"not measured\",\nnever zero. Reads YOUR nights; `partner=true` reads your partner's\nshared sleep.\n\nCarries a `coverage` block: quote `coverage.days_covered` beside any\naverage, and read `coverage.more_available` before saying how far back\nthe history goes.\n","inputSchema":{"additionalProperties":false,"properties":{"fresh":{"default":false,"title":"Fresh","type":"boolean"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Limit"},"partner":{"default":false,"title":"Partner","type":"boolean"},"since":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Since"}},"title":"get_sleep_nightsArguments","type":"object"},"name":"get_sleep_nights","outputSchema":{"additionalProperties":true,"title":"get_sleep_nightsDictOutput","type":"object"},"title":"Sleep, every night"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Decrypt recent workout sessions (type, duration, calories, distance).\nReads YOUR workouts; workouts are never shared between partners, so this\ntool has no partner option.\n\nCarries a `coverage` block: quote `coverage.days_covered` (distinct days, not\nthe row count) and `coverage.span_days` beside any average or trend.\n`coverage.window_satisfied: false` alone does NOT mean a short history: it is\nalso false when older days exist beyond your window. 🔴 Before saying how far\nback someone's data goes, read `coverage.more_available`: `true` means this\nserver can decrypt days OLDER than `first_day` that your `limit` left behind —\nre-read with a larger `limit`, or quote `coverage.oldest_available` as the real\nstart of their history. Never report a `limit`-shaped window as the extent of\ntheir data.\n","inputSchema":{"additionalProperties":false,"properties":{"fresh":{"default":false,"title":"Fresh","type":"boolean"},"limit":{"default":90,"title":"Limit","type":"integer"}},"title":"get_workoutsArguments","type":"object"},"name":"get_workouts","outputSchema":{"additionalProperties":true,"title":"get_workoutsDictOutput","type":"object"},"title":"Workouts"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Read YOUR health profile: biological sex, age, date of birth, height.\n\nUse it before anything that depends on sex, age or height — basal\nmetabolic rate, heart-rate zones, VO2 max bands, BMI. It is never shared\nbetween partners, so this tool has no partner option.\n\n`profile.sex_source` says where the sex came from: \"chosen\" (the person\npicked it in the app) or \"apple_health\" (a field in Apple Health they may\nnever have looked at). Every field may be null; `profile` itself is null\nwhen nothing was uploaded, and the reply's `note` explains why that\ncannot be narrowed down. Never fill a null in with a guess.\n\nA profile is not a series: its `coverage.days_covered` is 0 by\nconstruction, and the reply carries no upload time — the stored row is\nreplaced in place on every edit, so nothing here says how current the\nvalues are.\n","inputSchema":{"additionalProperties":false,"properties":{"fresh":{"default":false,"title":"Fresh","type":"boolean"}},"title":"get_user_profileArguments","type":"object"},"name":"get_user_profile","outputSchema":{"additionalProperties":true,"title":"get_user_profileDictOutput","type":"object"},"title":"Health profile"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Read any one-number-per-day health series: steps, resting HR, HRV, weight, …\n\n`series` takes ONE name, a LIST of names, or nothing (= every series).\nNames come from `list_metric_series`, which also says how much data backs\neach — call it first rather than guessing. Activity is five series\n(steps, active_energy, exercise_minutes, stand_minutes, distance_meters);\npass them as a list to get the whole day in one call.\n\n`days` = the newest N days THAT HAVE DATA, per series (not N calendar days).\nFor a CALENDAR window — \"last month\", \"this semester\", \"July\" — pass\n`since` / `until` (\"YYYY-MM-DD\", either or both) instead; `days` is then\nignored and the reply names the `range` it used.\n\n`aggregation` is computed here, not by you: `avg` / `sum` / `min` / `max` /\n`latest` over the window, or `none` (default) for the per-day points only.\n`sum` is refused on state measurements (resting HR, weight, VO2max) — it\nhas no meaning there. `granularity` = `day` (default), `week` (ISO weeks)\nor `month`; week/month return buckets aggregated with `aggregation`\n(`avg` when `none`), each with `days_with_data` beside `days_in_period`.\n`period_in_progress: true` marks the current, unfinished week/month and\n`clipped_by_window: true` the oldest one your `days` cut through — never\ncompare either against a full period as if it were one.\n`granularity` = `weekday` groups the window by day of the week (Mon..Sun)\n— the direct answer to \"weekends vs weekdays\" and to social jet lag. Read\nits `weekday_note`: sleep is dated by the morning it ends, so `Sat` is the\nFriday-night sleep.\n\nHonesty the reply already does for you, so do not undo it:\n· On `cumulative` series (steps, energy, water) today is still accruing —\n  it is marked `partial: true` and excluded from every aggregate.\n· `excluded_days` names days dropped because their data was short (basal\n  energy with the Watch off the wrist, TDEE without basal), with reasons.\n· Missing days are absent, never zero.\n\nEach series' `points` (or `buckets`) is a table: `columns` names the\nfields once and every entry of `rows` is one day (or period) in that\norder — e.g. `columns: [\"date\", \"value\", \"partial\"]`. The flags above are\ncolumns; a day without one has `null` there.\n\nEach series carries its own `coverage` block: quote `coverage.days_covered`\nand `coverage.span_days` beside any number. 🔴 Before saying how far back\nsomeone's data goes, read `coverage.more_available`: `true` means older days\nexist that your `days` left behind — ask for more, or quote\n`coverage.oldest_available`. Never report a window as the extent of their data.\n\nReads YOUR data by default.\nPass `partner=true` for your partner's — of these series only sleep, water\nand weight (with body composition) can be shared, so every other series\ncomes back empty for a partner by design.\n\nSleep is here too — duration, timing (`bedtime_minutes`, `wake_minutes`,\n`sleep_midpoint_minutes`), stages, awakenings, heart/breathing rate while\nasleep; the nights behind those numbers are `get_sleep_nights`. Richer\nkinds have their own tools: workouts, strength, food, notes, symptoms, cycle,\nand the sex / age / height profile (`get_user_profile`).\nSamples within a day (HRV spikes) → `get_intraday`. Trend / period\ncomparison / correlation → `get_metric_trend`, `compare_metric_periods`,\n`correlate_metric_series`.\n","inputSchema":{"additionalProperties":false,"properties":{"aggregation":{"default":"none","title":"Aggregation","type":"string"},"days":{"default":30,"title":"Days","type":"integer"},"fresh":{"default":false,"title":"Fresh","type":"boolean"},"granularity":{"default":"day","title":"Granularity","type":"string"},"partner":{"default":false,"title":"Partner","type":"boolean"},"series":{"anyOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Series"},"since":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Since"},"until":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Until"}},"title":"get_metricArguments","type":"object"},"name":"get_metric","outputSchema":{"additionalProperties":true,"title":"get_metricDictOutput","type":"object"},"title":"Daily health metrics"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Samples WITHIN a day, for the series that record several per day (HRV).\n\n`granularity`:\n- `\"hourly\"` (default) — one row per hour that HAS samples (UTC hour\n  boundaries, shown in local time), the mean SDNN of that hour and its\n  `sample_count`. Right for \"how did my HRV move through the day\".\n- `\"raw\"` — one row per sample, newest first.\n\nThe Watch measures HRV a handful of times a day, not continuously (more\nduring a Breathe session), so most days have about 8-14 rows either way.\n`limit` counts ROWS, not days: the default 168 is roughly two to three\nweeks, not one. How far back the history goes depends on what this\nphone uploaded, not on a fixed window — read `coverage.oldest_available`\nand `coverage.more_available`. For one number per day use `get_metric`.\nReads YOUR data only: HRV is never shared between partners.\n\n`rows` is a table in `columns` order (`local_time`, `sdnn_ms`, plus\n`sample_count` for hourly). Carries a `coverage` block: quote\n`coverage.days_covered` (distinct days, not the row count) beside any number.\n","inputSchema":{"additionalProperties":false,"properties":{"fresh":{"default":false,"title":"Fresh","type":"boolean"},"granularity":{"default":"hourly","title":"Granularity","type":"string"},"limit":{"default":168,"title":"Limit","type":"integer"},"series":{"default":"hrv_sdnn","title":"Series","type":"string"}},"title":"get_intradayArguments","type":"object"},"name":"get_intraday","outputSchema":{"additionalProperties":true,"title":"get_intradayDictOutput","type":"object"},"title":"Intraday samples"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Every series, with how much data actually backs each one.\n\nCall this BEFORE guessing a `series` name, and before concluding a kind is\nempty. Each row carries `rows` / `first_date` / `last_date` / `latest`, so\n\"does this person track VO2max at all\" is answered here in one call instead\nof by reading the kind and getting nothing back.\n\n`rows` = the days that HAVE a value for that series — counted the way\n`get_metric` reads it, so `rows: 2` means `get_metric` can return at most 2\npoints. A kind's series can differ: a partner with 14 weigh-ins may have\na BMI on only 2 of those days.\n\n`cumulative: true` marks the series whose daily value ACCRUES over the day\n(steps, energy, water). On those the newest value is routinely a partial day\nand must not be compared against completed ones — that is what makes \"steps\nare down today\" wrong at 9am. Measurements of a state (resting HR, VO2max)\ncarry `false` and need no such care.\n\nSleep appears here as numbers (duration, timing, stages, awakenings,\nvitals); read the nights themselves with `get_sleep_nights`. Kinds with a\nricher shape (workouts, strength sets, food, notes, symptoms, cycle) are\ndeliberately absent — flattening them to one number per day would answer a\nquestion you did not ask; read them with their own tool.\n","inputSchema":{"additionalProperties":false,"properties":{"fresh":{"default":false,"title":"Fresh","type":"boolean"},"partner":{"default":false,"title":"Partner","type":"boolean"}},"title":"list_metric_seriesArguments","type":"object"},"name":"list_metric_series","outputSchema":{"additionalProperties":true,"title":"list_metric_seriesDictOutput","type":"object"},"title":"List analysable series"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Least-squares trend for one daily series: slope per day, endpoints, spread.\n\n`series` is a name from `list_metric_series`. `days` selects the newest N days\nTHAT HAVE DATA, not the last N calendar days — compare `n_days` with\n`span_days` to see whether the history is dense or sparse. `since` /\n`until` (\"YYYY-MM-DD\") fit a calendar window instead.\n\nReturns arithmetic only. `slope_per_day` is in the series' own unit per day and\ncarries no threshold, band or verdict; fewer than 3 days returns a null slope\nwith a reason rather than a number fitted to noise.\n\nCarries a `coverage` block over the days the arithmetic used: quote\n`coverage.days_covered` and `coverage.span_days` beside any number here.\n`coverage.window_satisfied: false` alone does NOT mean a short history — it is\nalso false when older days exist beyond the window; `coverage.more_available`\ntells the two apart.\n","inputSchema":{"additionalProperties":false,"properties":{"days":{"default":30,"title":"Days","type":"integer"},"fresh":{"default":false,"title":"Fresh","type":"boolean"},"partner":{"default":false,"title":"Partner","type":"boolean"},"series":{"title":"Series","type":"string"},"since":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Since"},"until":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Until"}},"required":["series"],"title":"get_metric_trendArguments","type":"object"},"name":"get_metric_trend","outputSchema":{"additionalProperties":true,"title":"get_metric_trendDictOutput","type":"object"},"title":"Metric trend"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Compare two periods of one series: the newest `days` vs the `days` before, or two named windows.\n\nTo compare CALENDAR periods — \"this semester vs the summer\", \"before and\nafter I started training\" — pass `period` and `baseline`, each\n\"YYYY-MM-DD..YYYY-MM-DD\" (an open end is allowed: \"2026-09-01..\"). `days`\nis then ignored. Without them, the rule below applies.\n\n\"Before\" means the next-oldest days WITH DATA, so a gap makes the earlier\nwindow older rather than emptier — read `previous.first_day` / `previous.last_day`\nto see which period you actually got, and quote them.\n\nReturns both windows' mean/median/min/max and the differences. It does not say\nwhich window is better; that depends on the metric and on the person.\n\nCarries a `coverage` block over the days the arithmetic used: quote\n`coverage.days_covered` and `coverage.span_days` beside any number here.\n`coverage.window_satisfied: false` alone does NOT mean a short history — it is\nalso false when older days exist beyond the window; `coverage.more_available`\ntells the two apart.\n","inputSchema":{"additionalProperties":false,"properties":{"baseline":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Baseline"},"days":{"default":7,"title":"Days","type":"integer"},"fresh":{"default":false,"title":"Fresh","type":"boolean"},"partner":{"default":false,"title":"Partner","type":"boolean"},"period":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Period"},"series":{"title":"Series","type":"string"}},"required":["series"],"title":"compare_metric_periodsArguments","type":"object"},"name":"compare_metric_periods","outputSchema":{"additionalProperties":true,"title":"compare_metric_periodsDictOutput","type":"object"},"title":"Compare two periods"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Pearson r between two daily series, over days that have BOTH recorded.\n\n`lag_days` pairs `series_a` on each day with `series_b` that many days\nLATER (negative = earlier): \"does a short night show up in HRV the day\nafter\" is sleep vs HRV with lag_days=1. Sleep is already dated by the\nmorning it ends, so lag 0 is \"last night vs today\". `since` / `until`\n(\"YYYY-MM-DD\") restrict to a calendar window.\n\nDays missing on either side are dropped, never interpolated and never read as\nzero, so `n_pairs` is usually smaller than either series — quote it with `r`.\nFewer than 3 shared days returns null with a reason: any two points are\nperfectly collinear, so a coefficient there is an artefact.\n\nThe result carries a `caveat` field about causation. Repeat its substance in\nyour answer, and do not translate r into a word like \"strong\".\n\nCarries a `coverage` block over the days the arithmetic used: quote\n`coverage.days_covered` and `coverage.span_days` beside any number here.\n`coverage.window_satisfied: false` alone does NOT mean a short history — it is\nalso false when older days exist beyond the window; `coverage.more_available`\ntells the two apart.\n","inputSchema":{"additionalProperties":false,"properties":{"days":{"default":30,"title":"Days","type":"integer"},"fresh":{"default":false,"title":"Fresh","type":"boolean"},"lag_days":{"default":0,"title":"Lag Days","type":"integer"},"partner":{"default":false,"title":"Partner","type":"boolean"},"series_a":{"title":"Series A","type":"string"},"series_b":{"title":"Series B","type":"string"},"since":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Since"},"until":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Until"}},"required":["series_a","series_b"],"title":"correlate_metric_seriesArguments","type":"object"},"name":"correlate_metric_series","outputSchema":{"additionalProperties":true,"title":"correlate_metric_seriesDictOutput","type":"object"},"title":"Correlate two series"}]}}}
