{"at":"2026-11-23T06:17:09.278Z","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-23T06:17:10.254Z","dir":"received","era":"server_discover","message":{"error":{"code":-32602,"data":"","message":"Invalid request parameters"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T06:17:10.405Z","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-23T06:17:11.359Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"experimental":{},"prompts":{"listChanged":false},"resources":{"listChanged":false,"subscribe":false},"tools":{"listChanged":false}},"instructions":"Personal WHOOP health data: recovery, sleep, strain, and workouts.\n\nKey concepts:\n- Recovery (0-100%): how ready the body is today. green >=67, yellow 34-66, red <34.\n- Strain (0-21, logarithmic): cardiovascular load. Day strain accumulates across a cycle.\n- HRV (ms) and resting heart rate (bpm) drive recovery; higher HRV and lower RHR are better.\n- A \"cycle\" is WHOOP's wake-to-wake physiological day. Recovery is scored after each sleep.\n\nUsage:\n- Start with get_daily_summary for \"how am I doing\" questions; it combines recovery,\n  sleep, strain, and workouts for one day.\n- get_health_overview is the holistic view: current status + trends + training load +\n  personal records + behavior correlations in one call.\n- Use the trends tools (get_recovery_trends / get_sleep_trends / get_strain_trends)\n  for daily tables, compare_periods for before/after questions, get_correlations for\n  \"what affects my recovery\", and get_sleep_stream for minute-level overnight data.\n- Date parameters accept: today | yesterday | N days ago | last N days | this/last week | this/last month | YYYY-MM-DD | ISO datetime.\n\nIf a tool reports that authorization is required: the user can either run\n`whoop-mcp setup` in a terminal, or - if they explicitly ask you to connect -\ncall the connect_whoop_account tool, which opens their browser for WHOOP consent.\nCheck get_connection_status when unsure.","protocolVersion":"2025-11-25","serverInfo":{"name":"whoop","version":"1.30.0"}}}}
{"at":"2026-11-23T06:17:11.359Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T06:17:11.359Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T06:17:11.361Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Get the user's WHOOP profile and body measurements (name, email, height,\nweight, max heart rate).","inputSchema":{"properties":{},"title":"get_profileArguments","type":"object"},"name":"get_profile","outputSchema":{"additionalProperties":true,"title":"get_profileDictOutput","type":"object"},"title":"WHOOP profile"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"One day of WHOOP data in a single call: recovery score, sleep, day strain,\nand workouts, with a one-line summary. The best first tool for \"how am I\ndoing\" or \"how did I sleep\" questions.\n\n`day` accepts: today | yesterday | N days ago | YYYY-MM-DD.\n","inputSchema":{"properties":{"day":{"default":"today","title":"Day","type":"string"}},"title":"get_daily_summaryArguments","type":"object"},"name":"get_daily_summary","outputSchema":{"additionalProperties":true,"title":"get_daily_summaryDictOutput","type":"object"},"title":"Daily summary"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Monday-to-Sunday report: a per-day grid of recovery, sleep, and strain,\nplus weekly averages and workout totals.\n\n`week_of` accepts: this week | last week | YYYY-MM-DD (any day in the\ntarget week).\n","inputSchema":{"properties":{"week_of":{"default":"this week","title":"Week Of","type":"string"}},"title":"get_weekly_reportArguments","type":"object"},"name":"get_weekly_report","outputSchema":{"additionalProperties":true,"title":"get_weekly_reportDictOutput","type":"object"},"title":"Weekly report"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"List recovery records (recovery %, HRV, resting heart rate, SpO2, skin\ntemperature), newest first.\n\nDefaults to the last 14 days when no range is given. `start`/`end` accept:\ntoday | yesterday | N days ago | last week | YYYY-MM-DD | ISO datetime.\n","inputSchema":{"properties":{"end":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"End"},"limit":{"default":10,"title":"Limit","type":"integer"},"start":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Start"}},"title":"get_recoveriesArguments","type":"object"},"name":"get_recoveries","outputSchema":{"additionalProperties":true,"title":"get_recoveriesDictOutput","type":"object"},"title":"List recoveries"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"List sleep records (duration, stages, efficiency, performance, sleep debt),\nnewest first.\n\nDefaults to the last 14 days when no range is given. `start`/`end` accept:\ntoday | yesterday | N days ago | last week | YYYY-MM-DD | ISO datetime.\n","inputSchema":{"properties":{"end":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"End"},"include_naps":{"default":true,"title":"Include Naps","type":"boolean"},"limit":{"default":10,"title":"Limit","type":"integer"},"start":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Start"}},"title":"get_sleepsArguments","type":"object"},"name":"get_sleeps","outputSchema":{"additionalProperties":true,"title":"get_sleepsDictOutput","type":"object"},"title":"List sleeps"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Get one sleep record by its UUID (from get_sleeps or a recovery's sleep_id).\nSet include_raw=true to also attach WHOOP's untouched API record.","inputSchema":{"properties":{"include_raw":{"default":false,"title":"Include Raw","type":"boolean"},"sleep_id":{"title":"Sleep Id","type":"string"}},"required":["sleep_id"],"title":"get_sleepArguments","type":"object"},"name":"get_sleep","outputSchema":{"additionalProperties":true,"title":"get_sleepDictOutput","type":"object"},"title":"Sleep by id"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"List workouts (sport, strain, calories, heart rate, distance, HR zones),\nnewest first. Optionally filter by sport name (substring match, e.g.\n\"run\").\n\nDefaults to the last 30 days when no range is given. `start`/`end` accept:\ntoday | yesterday | N days ago | last week | YYYY-MM-DD | ISO datetime.\n","inputSchema":{"properties":{"end":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"End"},"limit":{"default":10,"title":"Limit","type":"integer"},"sport":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Sport"},"start":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Start"}},"title":"get_workoutsArguments","type":"object"},"name":"get_workouts","outputSchema":{"additionalProperties":true,"title":"get_workoutsDictOutput","type":"object"},"title":"List workouts"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Get one workout by its UUID (from get_workouts). Set include_raw=true to\nalso attach WHOOP's untouched API record.","inputSchema":{"properties":{"include_raw":{"default":false,"title":"Include Raw","type":"boolean"},"workout_id":{"title":"Workout Id","type":"string"}},"required":["workout_id"],"title":"get_workoutArguments","type":"object"},"name":"get_workout","outputSchema":{"additionalProperties":true,"title":"get_workoutDictOutput","type":"object"},"title":"Workout by id"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"List physiological cycles (WHOOP's wake-to-wake \"days\"): day strain,\ncalories, heart rate. Newest first; the newest cycle is usually still in\nprogress.\n\nDefaults to the last 14 days when no range is given. `start`/`end` accept:\ntoday | yesterday | N days ago | last week | YYYY-MM-DD | ISO datetime.\n","inputSchema":{"properties":{"end":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"End"},"limit":{"default":10,"title":"Limit","type":"integer"},"start":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Start"}},"title":"get_cyclesArguments","type":"object"},"name":"get_cycles","outputSchema":{"additionalProperties":true,"title":"get_cyclesDictOutput","type":"object"},"title":"List cycles"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Get one cycle by id, optionally with the recovery and sleep that belong\nto it (WHOOP links each recovery and primary sleep to a cycle). Set\ninclude_raw=true to also attach WHOOP's untouched API records.","inputSchema":{"properties":{"cycle_id":{"title":"Cycle Id","type":"integer"},"include_raw":{"default":false,"title":"Include Raw","type":"boolean"},"include_recovery":{"default":true,"title":"Include Recovery","type":"boolean"},"include_sleep":{"default":true,"title":"Include Sleep","type":"boolean"}},"required":["cycle_id"],"title":"get_cycleArguments","type":"object"},"name":"get_cycle","outputSchema":{"additionalProperties":true,"title":"get_cycleDictOutput","type":"object"},"title":"Cycle by id"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Recovery trends over a window (7-180 days): statistics, trend direction,\nand unusual days for recovery %, HRV, and resting heart rate, plus a daily\ntable. Trend directions account for metric polarity (rising HRV is good,\nrising resting heart rate is not).","inputSchema":{"properties":{"days":{"default":30,"title":"Days","type":"integer"}},"title":"get_recovery_trendsArguments","type":"object"},"name":"get_recovery_trends","outputSchema":{"additionalProperties":true,"title":"get_recovery_trendsDictOutput","type":"object"},"title":"Recovery trends"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Sleep trends over a window (7-180 days): hours slept, performance,\nefficiency, consistency, and sleep debt - statistics, trend directions,\nunusual nights, and a nightly table. Naps are counted but excluded from\nnightly averages.","inputSchema":{"properties":{"days":{"default":30,"title":"Days","type":"integer"}},"title":"get_sleep_trendsArguments","type":"object"},"name":"get_sleep_trends","outputSchema":{"additionalProperties":true,"title":"get_sleep_trendsDictOutput","type":"object"},"title":"Sleep trends"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Strain and training-load trends over a window (7-180 days): daily strain\nstatistics, calories, workout totals by sport, and the acute:chronic load\nratio (7-day vs 28-day average strain) when enough data exists.","inputSchema":{"properties":{"days":{"default":30,"title":"Days","type":"integer"}},"title":"get_strain_trendsArguments","type":"object"},"name":"get_strain_trends","outputSchema":{"additionalProperties":true,"title":"get_strain_trendsDictOutput","type":"object"},"title":"Strain & training load"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Compare two date ranges across recovery, HRV, resting heart rate, sleep,\nstrain, calories, and workout count - with per-metric change, percent\nchange, and an improved/declined/unchanged assessment. Period A is the\nbaseline; period B is compared against it.\n\nAll four arguments accept: today | yesterday | N days ago | last week |\nthis month | YYYY-MM-DD | ISO datetime. Example: compare \"last month\" to\n\"this month\" by using the same expression for a period's start and end.\n","inputSchema":{"properties":{"period_a_end":{"title":"Period A End","type":"string"},"period_a_start":{"title":"Period A Start","type":"string"},"period_b_end":{"title":"Period B End","type":"string"},"period_b_start":{"title":"Period B Start","type":"string"}},"required":["period_a_start","period_a_end","period_b_start","period_b_end"],"title":"compare_periodsArguments","type":"object"},"name":"compare_periods","outputSchema":{"additionalProperties":true,"title":"compare_periodsDictOutput","type":"object"},"title":"Compare periods"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"The holistic everything-at-once view (7-180 day window): today's status,\nrecovery/sleep/strain trend directions, training load, personal records and\nstreaks, and the strongest behavior-physiology correlations. The best first\ncall for \"give me the full picture of my health\".","inputSchema":{"properties":{"days":{"default":90,"title":"Days","type":"integer"}},"title":"get_health_overviewArguments","type":"object"},"name":"get_health_overview","outputSchema":{"additionalProperties":true,"title":"get_health_overviewDictOutput","type":"object"},"title":"Health overview"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"How the user's metrics move together day-to-day (7-180 day window):\nstrain vs next-morning recovery, sleep duration vs recovery, sleep\nconsistency vs recovery, strain vs that night's sleep, HRV vs recovery.\nPearson r with strength labels and plain-English interpretations -\ncorrelation, not causation.","inputSchema":{"properties":{"days":{"default":90,"title":"Days","type":"integer"}},"title":"get_correlationsArguments","type":"object"},"name":"get_correlations","outputSchema":{"additionalProperties":true,"title":"get_correlationsDictOutput","type":"object"},"title":"Behavior correlations"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Bests, worsts, and streaks over a window (7-180 days): best/worst\nrecovery, highest HRV, lowest resting heart rate, longest sleep, highest\nstrain day, biggest workout, green-recovery streaks, and totals.","inputSchema":{"properties":{"days":{"default":180,"title":"Days","type":"integer"}},"title":"get_personal_recordsArguments","type":"object"},"name":"get_personal_records","outputSchema":{"additionalProperties":true,"title":"get_personal_recordsDictOutput","type":"object"},"title":"Personal records & streaks"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Minute-level overnight sensor data for one sleep: heart rate and skin\ntemperature curves (downsampled to resolution_minutes buckets) plus\novernight stats like the lowest heart rate and when it happened. Get the\nsleep_id from get_sleeps, get_daily_summary, or a recovery record. WHOOP\ndoes not expose this stream for every account/app - if unavailable, a\nclear note is returned instead of an error.","inputSchema":{"properties":{"resolution_minutes":{"default":5,"title":"Resolution Minutes","type":"integer"},"sleep_id":{"title":"Sleep Id","type":"string"}},"required":["sleep_id"],"title":"get_sleep_streamArguments","type":"object"},"name":"get_sleep_stream","outputSchema":{"additionalProperties":true,"title":"get_sleep_streamDictOutput","type":"object"},"title":"Sleep sensor stream"},{"annotations":{"destructiveHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Export every WHOOP record in a date range to local files on this\nmachine: data.json (complete transformed dataset, plus raw API records\nwhen include_raw is true), daily_summary.csv (one row per day), and\nworkouts.csv. Nothing is uploaded anywhere. Returns the file paths and\nrecord counts. Large ranges can take a minute or two.\n\n`start`/`end` accept: N years ago | N months ago | YYYY-MM-DD | ISO datetime.\n","inputSchema":{"properties":{"end":{"default":"today","title":"End","type":"string"},"include_raw":{"default":true,"title":"Include Raw","type":"boolean"},"start":{"default":"2 years ago","title":"Start","type":"string"}},"title":"export_dataArguments","type":"object"},"name":"export_data","outputSchema":{"additionalProperties":true,"title":"export_dataDictOutput","type":"object"},"title":"Export all WHOOP data"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Whether this server is connected to a WHOOP account: app credentials,\ntoken state and expiry, granted scopes, and a live API check. Call this\nfirst when WHOOP data tools fail.","inputSchema":{"properties":{},"title":"get_connection_statusArguments","type":"object"},"name":"get_connection_status","outputSchema":{"additionalProperties":true,"title":"get_connection_statusDictOutput","type":"object"},"title":"WHOOP connection status"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":true,"readOnlyHint":false},"description":"Connect or re-authorize the user's WHOOP account from inside the chat:\nopens the WHOOP consent page in the user's browser on this machine and\nwaits up to 3 minutes for them to approve. Only call this when the user\nexplicitly asks to connect, reconnect, or fix authorization. Requires\nWHOOP app credentials to be configured already (otherwise it returns\nsetup steps instead of opening anything).","inputSchema":{"properties":{},"title":"connect_whoop_accountArguments","type":"object"},"name":"connect_whoop_account","outputSchema":{"additionalProperties":true,"title":"connect_whoop_accountDictOutput","type":"object"},"title":"Connect WHOOP account"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Search WHOOP data with a natural-language query (e.g. \"sleep last week\",\n\"runs this month\", \"recovery yesterday\"). Returns matching day summaries,\nworkouts, and sleeps as documents whose ids can be passed to `fetch`.","inputSchema":{"properties":{"query":{"title":"Query","type":"string"}},"required":["query"],"title":"searchArguments","type":"object"},"name":"search","outputSchema":{"additionalProperties":true,"title":"searchDictOutput","type":"object"},"title":"Search WHOOP data"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Fetch the full document for an id returned by `search`. Supported id\nforms: day:YYYY-MM-DD, sleep:<uuid>, workout:<uuid>, cycle:<int>,\nrecovery:<cycle_int>, profile.","inputSchema":{"properties":{"id":{"title":"Id","type":"string"}},"required":["id"],"title":"fetchArguments","type":"object"},"name":"fetch","outputSchema":{"additionalProperties":true,"title":"fetchDictOutput","type":"object"},"title":"Fetch WHOOP document"}]}}}
