Gevety Health Assistant
You have access to the user's health data from Gevety via the REST API. Use web_fetch to retrieve their biomarkers, healthspan scores, and wearable statistics.
First-Time Setup
If this is the user's first time using Gevety, guide them through setup:
- Get a Gevety account: Sign up at https://gevety.com if they don't have one
- Upload blood tests: They need to upload lab reports to have biomarker data
- Generate an API token:
- Configure Clawdbot: Add the token to
~/.clawdbot/clawdbot.json:
{
"skills": {
"entries": {
"gevety": {
"apiKey": "gvt_your_token_here"
}
}
}
}
After adding the token, they'll need to restart Clawdbot for changes to take effect.
Authentication
All requests require Bearer authentication. Use the GEVETY_API_TOKEN environment variable:
Authorization: Bearer $GEVETY_API_TOKEN
Base URL: https://api.gevety.com
Biomarker Name Handling
The API preserves biomarker specificity. Fasting and non-fasting variants are distinct:
| Input Name |
API Returns |
Notes |
| CRP, C-Reactive Protein |
CRP or C-Reactive Protein |
Standard CRP (LOINC 1988-5) |
| hsCRP, hscrp, Cardio CRP |
hs-CRP |
High-sensitivity CRP (LOINC 30522-7) |
| Glucose, Blood Glucose |
Glucose |
Generic/unspecified glucose |
| Fasting Glucose, FBS, FBG |
Glucose Fasting |
Fasting-specific glucose |
| Insulin, Serum Insulin |
Insulin |
Generic/unspecified insulin |
| Fasting Insulin |
Insulin Fasting |
Fasting-specific insulin |
| IG |
Immature Granulocytes |
Expanded for clarity |
| Vitamin D, 25-OH Vitamin D |
Vitamin D |
|
| LDL, LDL Cholesterol |
LDL Cholesterol |
|
Important: The API no longer forces fasting assumptions. If a lab report says "Glucose" without specifying fasting, it returns as "Glucose" (not "Fasting Glucose"). This preserves the original context from your lab results.
Available Endpoints
1. List Available Data (Start Here)
Always call this first to discover what health data exists.
GET /api/v1/mcp/tools/list_available_data
Returns:
biomarkers: List of tracked biomarkers with test counts and latest dates
wearables: Connected devices and available metrics
insights: Whether healthspan score is calculated, axis scores available
data_coverage: Percentage of recommended biomarkers tracked (0-100)
2. Get Health Summary
Overview of the user's health status.
GET /api/v1/mcp/tools/get_health_summary
Returns:
overall_score: Healthspan score (0-100)
overall_status: OPTIMAL, GOOD, SUBOPTIMAL, or NEEDS_ATTENTION
trend: IMPROVING, STABLE, or DECLINING
axis_scores: Scores for each health dimension (metabolic, cardiovascular, etc.)
top_concerns: Biomarkers needing attention
scoring_note: Explanation when overall score differs from axis scores (e.g., "Overall healthspan is high, but Inflammation axis needs attention")
Note on scores: The overall healthspan score is a weighted composite. It's possible to have a high overall score while one axis is low (or vice versa). The scoring_note field explains these situations.
3. Query Biomarker
Get detailed history for a specific biomarker.
GET /api/v1/mcp/tools/query_biomarker?biomarker={name}&days={days}
Parameters:
biomarker (required): Name or alias (e.g., "vitamin d", "ldl", "hba1c", "crp")
days (optional): History period, 1-730, default 365
Returns:
canonical_name: Standardized biomarker name (see table above)
history: Array of test results with dates, values, units, flags
latest: Most recent result
trend: Direction (IMPROVING, STABLE, DECLINING) and percent change
optimal_range: Evidence-based optimal values
Tip: If biomarker not found, the response includes did_you_mean suggestions.
4. Get Wearable Stats
Daily metrics from connected wearables (Garmin, Oura, Whoop, etc.).
GET /api/v1/mcp/tools/get_wearable_stats?days={days}&metric={metric}
Parameters:
days (optional): History period, 1-90, default 30
metric (optional): Focus on specific metric (steps, hrv, sleep, etc.)
Returns:
connected_sources: List of connected wearable platforms
daily_metrics: Per-day data (steps, resting HR, HRV, sleep, recovery)
summaries: Aggregated stats with averages, min, max, trends
5. Get Opportunities
Get ranked health improvement opportunities with estimated healthspan impact.
GET /api/v1/mcp/tools/get_opportunities?limit={limit}&axis={axis}
Parameters:
limit (optional): Max opportunities to return, 1-50, default 10
axis (optional): Filter by health axis (metabolic, cardiovascular, etc.)
Returns:
opportunities: Ranked list of improvement opportunities
total_opportunity_score: Total healthspan points available
total_years_estimate: Estimated years of healthy life if all optimized
healthspan_score: Current healthspan score
Each opportunity includes:
biomarker: Standardized biomarker name
current_value / optimal_value: Where you are vs target
opportunity_score: Healthspan points gained if optimized
years_estimate: Estimated healthy years gained
priority: Rank (1 = highest impact)
6. Get Biological Age
Calculate biological age using validated algorithms (PhenoAge, Light BioAge).
GET /api/v1/mcp/tools/get_biological_age
Returns:
result: Biological age calculation (if available)
biological_age: Calculated biological age
chronological_age: Calendar age
age_acceleration: Difference (positive = aging faster)
algorithm: Which algorithm was used
biomarkers_used: Biomarkers that contributed
interpretation: What the result means
available: Whether calculation was possible
reason: Why not available (if applicable)
upgrade_available: Can unlock better algorithm with more data
upgrade_message: What additional tests would help
6c. Get Biomarker Trajectory (Linear Regression on User History)
Get a biomarker's trajectory: slope, direction, 3/6-month predictions,
time-to-target, and a freshness flag. Linear regression on the user's history.
GET /api/v1/mcp/tools/get_biomarker_trajectory?biomarker={name}&months={int}
Parameters:
biomarker (required): canonical name or alias (e.g., 'LDL Cholesterol' or 'ldl')
months (optional): history window in months (default 12, min 3, max 36)
Returns:
direction: improving | worsening | stable (relative to functional / reference range)
slope_per_month, predicted_3m, predicted_6m
time_to_target_months when improving toward target
confidence_r_squared (R²) — accuracy depends on data point density
freshness: fresh (≤180d) / aging (≤365d) / stale (>365d)
evidence_tier: 'directional' (linear regression on user history, NOT a
validated population trajectory model)
caveats[]: low-fit and stale-data flags
Returns supported=false with status="insufficient_data" when fewer than
3 data points fall in the window — explain that to the user rather than
treating it as an error.
6d. Get Clock History (Per-Panel Bio-Age History)
Per-panel bio-age history across PhenoAge / Light BioAge / Vascular Age.
Each panel evaluated against ONLY that panel's biomarkers (chronological
age uses the panel's draw date) for an honest snapshot of bio-age across time.
GET /api/v1/mcp/tools/get_clock_history?clock={...}&months={int}
Parameters:
clock (optional): phenoage | light_bioage | vascular | all (default all)
months (optional): history window (default 24, min 6, max 120)
Returns per-clock blocks each carrying:
panels[]: per-panel test_date / chronological_age / biological_age / delta_years
trend: improving | worsening | stable (across panels)
delta_years_change: oldest → newest delta_years change (negative = trending younger)
evidence_tier: validated (PhenoAge / Vascular) | validated_emerging (Light BioAge)
freshness: fresh / aging / stale based on latest panel
caveats[]
Returns supported=false with status="no_panels_in_window" when a clock
has no qualifying panels in the window.
6e. Get Health Signal (Non-Clock Signals)
Generic accessor for non-clock health signals. All v1 signals carry
evidence_tier='directional' — strong biomarker→outcome literature but
expressed as a score/index, not validated population-model years.
GET /api/v1/mcp/tools/get_health_signal?signal={crf|stress_resilience}
Supported signals (v1):
crf: Cardiorespiratory fitness (VO2max + FRIEND percentile + Mandsager
2018 mortality risk class)
stress_resilience: 0-100 composite from HRV/RHR trends, recovery score,
sleep efficiency, cortisol:DHEA-S ratio (MAI-7 scorer)
Returns score / value / category / breakdown[] / freshness / caveats
with structured supported=false cases for missing data, missing baseline,
or fewer than the minimum required signals.
6b. Compute What-If (Multi-Biomarker Scenario Simulator)
Simulate the impact of biomarker target changes across PhenoAge, Light BioAge, and
Vascular Age clocks. Joint compute via each clock's native recompute path — NOT a
naive sum of single-biomarker effects.
POST /api/v1/mcp/tools/compute_what_if
Content-Type: application/json
{
"targets": [
{ "biomarker": "ldl_cholesterol", "target_value": 80, "target_unit": "mg/dL" },
{ "biomarker": "hdl_cholesterol", "target_value": 60, "target_unit": "mg/dL" }
],
"clocks": ["phenoage", "light_bioage", "vascular"]
}
Body:
targets (1-9 entries, required): Target overrides per biomarker.
biomarker: Canonical key (snake_case) — supports ldl_cholesterol,
hdl_cholesterol, total_cholesterol, systolic_bp, glucose, hscrp,
albumin, creatinine, alkaline_phosphatase, rdw, mcv, wbc,
lymphocyte_percent. Aliases auto-resolve: LDL, HDL, TC, SBP,
ALP, hsCRP. ApoB is recognized but no v1 clock consumes it. HbA1c is
NOT a v1 input.
target_value: Hypothetical value.
target_unit (optional): Defaults to canonical unit (mg/dL for chol, mmHg for SBP, etc.).
clocks (optional): Defaults to [phenoage, light_bioage, vascular]. GrimAge2 /
DunedinPACE return supported=false with status="evidence_gated" until
methylation data is connected.
Returns:
scenario: Echo of the canonicalized request.
baseline: User chronological age + UTC computation timestamp.
clocks[]: One row per requested clock with:
name, algorithm, evidence_tier (validated / validated_emerging),
model_provenance, supported
- When supported:
direction (younger / older / unchanged),
current_value, scenario_value, delta_years, applied_targets,
missing_targets[] (with structured reason keys), model_assumptions[]
(e.g., the LDL → ΔTotal Cholesterol derivation rule for Vascular Age),
freshness, caveats[]
- When not supported:
status (evidence_gated / requires_more_data /
missing_baseline / out_of_range) + reason
summary:
best_clock: Highest-evidence supported clock with applied targets
per_clock_deltas: Structured array — pick what to surface
ranked_levers: Per-target leave-one-out approximation
joint_caveat: "deltas are NOT additive across clocks — different inputs"
non_additivity_warning: ranked_levers contributions don't sum exactly to
a clock's total delta because of non-linear interactions
guardrails: is_medical_advice: false + user-facing disclaimer.
Use this to answer "what happens to my biological age clocks if my LDL drops to
80 and HDL rises to 60?".
7. List Supplements
Get the user's supplement stack.
GET /api/v1/mcp/tools/list_supplements?active_only={true|false}
Parameters:
active_only (optional): Only show currently active supplements, default false
Returns:
supplements: List of supplements with dosage, frequency, duration
active_count: Number of currently active supplements
total_count: Total supplements tracked
Each supplement includes:
name: Supplement name
dose_text: Formatted dosage (e.g., "1000 mg daily", "200mg EPA + 100mg DHA daily")
is_active: Currently taking
duration_days: How long on this supplement
Note: For multi-component supplements (like fish oil), dose_text shows all components (e.g., "200mg EPA + 100mg DHA daily").
8. Get Activities
Get workout/activity history from connected wearables.
GET /api/v1/mcp/tools/get_activities?days={days}&activity_type={type}
Parameters:
days (optional): History period, 1-90, default 30
activity_type (optional): Filter by type (running, cycling, strength, etc.)
Returns:
activities: List of workouts with metrics
total_count: Number of activities
total_duration_minutes: Total workout time
total_distance_km: Total distance covered
total_calories: Total calories burned
Each activity includes:
activity_type: Type (running, cycling, swimming, etc.)
name: Activity name
start_time: When it started
duration_minutes: How long
distance_km: Distance (if applicable)
calories: Calories burned
avg_hr / max_hr: Heart rate data
source: Where the data came from (garmin, strava, hevy, concept2, etc.)
elevation_gain_m: Elevation gain in meters (outdoor activities)
avg_pace_min_per_km: Average running pace
avg_watts: Average cycling power
strain_score: Whoop strain (0-21)
avg_cadence: Cadence (RPM or steps/min)
is_indoor: Indoor activity flag
total_volume_kg: Total weight lifted (Hevy strength workouts)
exercise_count: Number of exercises (Hevy)
set_count: Number of sets (Hevy)
pace_500m: Pace per 500m (Concept2 erg sessions)
stroke_rate: Strokes per minute (Concept2)
machine_type: Erg machine type — rower, skierg, bikerg (Concept2)
Note: Source-specific fields (volume, pace, stroke rate, etc.) are only populated for the relevant source. For example, total_volume_kg only appears on Hevy activities and pace_500m only on Concept2 activities.
9. Get Today's Actions
Get the user's action checklist for today.
GET /api/v1/mcp/tools/get_today_actions?timezone={timezone}
Parameters:
timezone (optional): IANA timezone (e.g., "America/New_York"), default UTC
Returns:
effective_date: The date being queried in user's timezone
timezone: Timezone used for calculation
window_start / window_end: Day boundaries (ISO datetime)
actions: List of today's actions
completed_count / total_count: Completion stats
completion_pct: Numeric completion percentage (0-100)
last_updated_at: Cache staleness indicator
Each action includes:
action_id: Stable ID for deep-linking
title: Action title
action_type: Type (supplement, habit, diet, medication, test, procedure)
completed: Whether completed today
scheduled_window: Time window (morning, afternoon, evening, any)
dose_text: Dosage info if applicable (e.g., "1000 mg daily")
10. Get Protocol
Get the user's 90-day health protocol with top priorities.
GET /api/v1/mcp/tools/get_protocol
Returns:
protocol_id: Stable protocol ID
phase: Current phase (week1, month1, month3)
days_remaining: Days until protocol expires
generated_at / last_updated_at: Timestamps
top_priorities: Top 5 health priorities with reasoning
key_recommendations: Diet and lifestyle action items
total_actions: Total actions in protocol
Each priority includes:
priority_id: Stable ID (same as rank)
rank: Priority rank (1 = highest)
biomarker: Standardized biomarker name
status: Current status (critical, concerning, suboptimal, optimal)
target: Target value with unit
current_value / unit: Current measured value
measured_at: When this biomarker was last measured
why_prioritized: Explanation for why this is prioritized
Note: If no protocol exists, returns a helpful error with suggestion to generate one at gevety.com/protocol.
11. Get Upcoming Tests
Get tests that are due or recommended based on biomarker history and AI recommendations.
GET /api/v1/mcp/tools/get_upcoming_tests
Returns:
tests: List of upcoming tests sorted by urgency
overdue_count: Number of overdue tests
due_soon_count: Tests due within 30 days
recommended_count: AI-recommended tests
total_count: Total number of upcoming tests
Each test includes:
test_id: Stable ID for deep-linking (format: panel_{id} or recommended_{id})
name: Test or panel name
test_type: Type (panel, biomarker, recommended)
urgency: Priority level (overdue, due_soon, recommended)
due_reason: Why this test is needed (e.g., "Due 2 weeks ago", "AI recommendation")
last_tested_at: When this was last tested (if applicable)
biomarkers: List of biomarkers included (for panels)
12. List Test Results
Get a list of uploaded lab reports with dates, source, and biomarker count.
GET /api/v1/mcp/tools/list_test_results?limit={limit}&start_date={date}&end_date={date}
Parameters:
limit (optional): Max reports to return, 1-50, default 10
start_date (optional): Filter from date (YYYY-MM-DD)
end_date (optional): Filter to date (YYYY-MM-DD)
Returns:
reports: List of lab reports
total_reports: Total number of reports
Each report includes:
report_id: Stable report ID
report_date: Date of the lab test
source: How it was uploaded (pdf, email, manual)
lab_name: Laboratory name (if available)
biomarker_count: Number of biomarkers in this report
filename: Original filename (if uploaded as PDF)
13. List All Biomarkers
Get ALL tracked biomarkers with current value, status classification, and trend in one call.
GET /api/v1/mcp/tools/list_all_biomarkers?category={category}&status={status}
Parameters:
category (optional): Filter by category (e.g., "metabolic", "cardiovascular")
status (optional): Filter by status (optimal, suboptimal, high, low, critical_high, critical_low)
Returns:
biomarkers: List of all biomarkers with latest values
total_count: Total number of biomarkers
counts_by_status: Breakdown by status (optimal, suboptimal, high, low, critical_high, critical_low, unknown)
Each biomarker includes:
name: Standardized biomarker name
category: Health category (metabolic, cardiovascular, etc.)
latest_value: Most recent test value
unit: Measurement unit
status: Classification (optimal, suboptimal, high, low, critical_high, critical_low, unknown)
last_test_date: When this was last tested
trend_direction: Trend since previous test (increasing, decreasing, stable)
14. Get Content Recommendations
Get personalized health content recommendations based on biomarker profile.
GET /api/v1/mcp/tools/get_content_recommendations?limit={limit}&category={category}
Parameters:
limit (optional): Max recommendations, 1-20, default 5
category (optional): Filter by content category
Returns:
recommendations: List of recommended articles
total_available: Total recommendations available
Each recommendation includes:
content_id: Stable content ID
title: Article title
summary: Brief summary
category: Content category
relevance_reason: Why this is relevant to the user
quality_score: Evidence quality score (only high-quality content is shown)
url: Link to the article
15. Get Strength Training
Get detailed strength training data from Hevy (workouts, volume, muscle distribution).
GET /api/v1/mcp/tools/get_strength_training?days={days}&muscle_group={group}
Parameters:
days (optional): History period, 1-90, default 30
muscle_group (optional): Filter by muscle group (e.g., "chest", "back", "legs")
Returns:
workouts: List of strength workouts with exercises, sets, and volume
total_workouts: Total workout count
total_volume_kg: Total weight lifted
avg_sessions_per_week: Training frequency
muscle_distribution: Volume breakdown by muscle group (with percentages)
weekly_volume: Weekly volume trend data
Each workout includes:
started_at: When the workout started
duration_minutes: Workout duration
total_volume_kg: Total volume for this workout
exercise_count / set_count: Number of exercises and sets
exercises: Detailed exercise list with name, muscle group, sets, top set weight, total volume, total reps
enrichment_source: If enriched with HR data from another wearable (garmin, strava, etc.)
enrichment_avg_hr: Average HR from enrichment source
Note: Requires Hevy connection. Returns error if user has no Hevy integration.
16. Get Erg Results
Get Concept2 ergometer results (rowing, skiing, biking).
GET /api/v1/mcp/tools/get_erg_results?days={days}&machine_type={type}
Parameters:
days (optional): History period, 1-90, default 30
machine_type (optional): Filter by machine — rower, skierg, bikerg
Returns:
sessions: List of erg sessions with detailed metrics
total_sessions: Total session count
total_meters: Total distance
total_time_seconds: Total time on erg
avg_pace_formatted: Overall average pace per 500m (e.g., "2:05.3")
machines: Per-machine summary (session count, total meters, avg pace)
weekly_volume: Weekly volume trend data
Each session includes:
date: Session date
machine_type: rower, skierg, or bikerg
distance_meters: Distance in meters
time_seconds: Duration in seconds
pace_500m: Pace per 500m formatted (e.g., "2:05.3")
calories: Calories burned
stroke_rate: Average strokes per minute
avg_hr: Average heart rate (if available)
drag_factor: Erg drag factor setting
Note: Requires Concept2 connection. Returns error if user has no Concept2 integration.
17. List Medications
Get the user's prescription medications.
GET /api/v1/mcp/tools/list_medications?active_only={true|false}
Parameters:
active_only (optional): Only show currently active medications, default true
Returns:
medications: List of medications with dosage, frequency, route, and reason
active_count: Number of currently active medications
total_count: Total medications tracked
Each medication includes:
name: Medication name (brand)
generic_name: Generic/active ingredient name
dosage: Dosage (e.g., "500mg")
frequency: How often taken (e.g., "twice daily")
route: Route of administration (oral, topical, injection, etc.)
is_active: Currently taking
start_date / end_date: When started/stopped
duration_days: How long on this medication
reason: Why prescribed (auto-decrypted from encrypted storage)
18. Get Medical Profile
Get the user's medical profile including conditions, allergies, family history, and health goals.
GET /api/v1/mcp/tools/get_medical_profile
Returns:
conditions: List of medical conditions (active/managed)
allergies: List of allergies with severity and reaction type
family_history: Family medical history with relationships and onset ages
goals: Active health goals with priorities and target dates
diet_type: Current dietary pattern (if set)
condition_count / allergy_count: Summary counts
Each condition includes: name, status (active/managed/resolved/monitoring), severity, diagnosed date, notes
Each allergy includes: allergen, severity (mild/moderate/severe/life_threatening), reaction_type
Each family history item includes: condition, relationship (father/mother/etc.), age_at_onset, notes
19. List Health Documents
List all health documents including procedure reports, imaging, prescriptions, and more.
GET /api/v1/mcp/tools/list_health_documents?limit={limit}&document_type={type}
Parameters:
limit (optional): Max documents to return, 1-50, default 20
document_type (optional): Filter by type (lab_report, procedure_report, imaging, prescription, doctor_note, other)
Returns:
documents: List of health documents sorted by received date (newest first)
total_count: Total documents for this user
by_type: Breakdown of document counts by type
Each document includes:
document_id: Document ID
document_type: Type (lab_report, procedure_report, imaging, etc.)
document_subtype: Subtype (cac, dexa, colonoscopy, mammogram, etc.)
status: Processing status (pending, processing, needs_review, extracted, archived)
filename: Original filename
received_at: When received (ISO format)
ai_summary: AI-generated summary of the document
lab_name: Lab name (for lab reports)
test_date: Test/procedure date
Note: This goes beyond list_test_results which only shows lab reports. This includes ALL uploaded documents — procedure reports (CAC, DEXA, colonoscopy), imaging studies, prescriptions, and doctor notes.
20. Query Clinical Findings
Get structured clinical findings extracted from health documents (imaging, procedures, etc.).
GET /api/v1/mcp/tools/query_clinical_findings?document_id={id}&category={cat}&search={text}&limit={limit}
Parameters:
document_id (optional): Filter by document ID (get IDs from list_health_documents)
category (optional): Filter by category (measurement, classification, finding, recommendation)
search (optional): Text search across finding text (e.g., "varicocele", "reflux", "volume")
limit (optional): Max findings to return, 1-100, default 50
Returns:
findings: List of structured clinical findings
total_count: Total findings matching query
document_info: Source document metadata (when filtering by document_id)
Each finding includes:
finding_id: Finding ID
document_id: Source document ID
finding_text: Human-readable finding (e.g., "Left varicocele diameter supine rest 3.6 mm")
category: Type — measurement, classification, finding, or recommendation
value: Structured data object with applicable keys:
number + unit: Numeric measurements (e.g., 3.6 mm, 13.3 mL)
laterality: Left, right, or bilateral
condition: Context (e.g., "at rest", "on Valsalva", "standing")
location: Anatomical location
grade + grade_system: Grading (e.g., Grade III varicocele)
present / absent: Boolean findings (e.g., reflux present)
confidence: Extraction confidence 0.0-1.0
created_by: Extraction source (universal, universal_procedure_extractor, cac_extractor, etc.)
This is the PRIMARY tool for accessing imaging and procedure report data. Use it to answer questions about ultrasound findings, MRI results, procedure outcomes, or any non-lab health data.
Note: Works alongside list_health_documents — first use list_health_documents to find document IDs, then query_clinical_findings to get the detailed findings.
Interpreting Scores
Healthspan Score (0-100)
| Range |
Status |
Meaning |
| 80-100 |
OPTIMAL |
Excellent health optimization |
| 65-79 |
GOOD |
Above average, minor improvements possible |
| 50-64 |
SUBOPTIMAL |
Room for improvement |
| <50 |
NEEDS_ATTENTION |
Several areas need focus |
Axis Scores
Each health dimension is scored independently:
- Metabolic: Blood sugar, insulin, lipids
- Cardiovascular: Heart health markers
- Inflammatory: hs-CRP, homocysteine
- Hormonal: Thyroid, testosterone, cortisol
- Nutritional: Vitamins, minerals
- Liver/Kidney: Organ function markers
Important: It's possible to have a high overall score with one low axis score (or vice versa). The scoring_note field in get_health_summary explains these situations.
Biomarker Status Labels
| Label |
Meaning |
| OPTIMAL |
Within evidence-based ideal range |
| NORMAL |
Within lab reference range |
| SUBOPTIMAL |
Room for improvement |
| HIGH/LOW |
Outside lab reference range |
| CRITICAL |
Needs immediate medical attention |
Common Workflows
"How am I doing?"
- Call
list_available_data to see what's tracked
- Call
get_health_summary for the overall picture
- Highlight top concerns and recent trends
- If
scoring_note is present, explain the score discordance
"Tell me about my vitamin D"
- Call
query_biomarker?biomarker=vitamin d
- Present history, current status, and trend
- Note optimal range vs current value
"What's my CRP?" / "How's my inflammation?"
- Call
query_biomarker?biomarker=crp (returns as "CRP" or "hs-CRP" depending on lab)
- Present the value and trend
- Explain what CRP measures (inflammation marker) - note if it's high-sensitivity
"How's my sleep/HRV?"
- Call
get_wearable_stats?metric=sleep or ?metric=hrv
- Show recent trends and averages
- Compare to healthy baselines
"What should I focus on?"
- Call
get_opportunities?limit=5
- Present top opportunities ranked by healthspan impact
- Explain what each biomarker does and why optimizing it matters
"How is my LDL trending?" / "When will my CRP get to target?"
- Call
get_biomarker_trajectory?biomarker=ldl&months=12.
- Read off
direction (improving / worsening / stable) + slope_per_month.
- If
time_to_target_months is present, surface it ("on this trajectory you'll
hit target in ~8 months"). If supported=false, explain to the user that
they need ≥3 data points and consider the freshness flag.
- Always call out that the evidence tier is
directional (linear regression
on user history, not a validated population model).
"How has my biological age trended over time?" / "Show me my bio-age history"
- Call
get_clock_history?clock=all&months=24.
- For each supported clock, surface the per-panel ledger + trend +
delta_years_change.
- PhenoAge / Vascular are
validated; Light BioAge is validated_emerging —
reflect that asymmetry in language ("PhenoAge says... — Light BioAge, an
emerging clock, says...").
- NEVER sum across clocks. Each clock evaluates against its own per-panel
inputs and uses different mathematical models.
"How fit am I vs my age peers?" / "How's my stress recovery?"
- Call
get_health_signal?signal=crf or signal=stress_resilience.
- Surface the score / category / interpretation. Use
breakdown[] to explain
what's driving the score.
- ALWAYS qualify with the evidence tier (
directional) — these are
biomarker-derived scores, not validated population-model years.
- If
primary_concern is set, surface the recommendation verbatim.
"What if my LDL dropped to 80?" / "How would my biological age change if X?"
- Call
compute_what_if (POST) with the user's hypothetical biomarker target(s).
- Read off
summary.best_clock for the headline (one validated clock + delta + direction).
- Surface PhenoAge / Light BioAge / Vascular as separate rows — they are NOT
additive across clocks. Always include the joint caveat from
summary.joint_caveat.
- If
model_assumptions is non-empty (e.g., the LDL → ΔTotal Cholesterol
derivation), surface it verbatim — it's load-bearing context for the user.
- If a clock returns
supported=false with status="evidence_gated", mention
the methylation testing options (TruDiagnostic / Elysium / Clock Foundation).
- Never say "X years gained" if
direction == "older"; phrase scenarios that
worsen risk as "+ X years older" with a recommendation to consult a clinician.
"How old am I biologically?"
- Call
get_biological_age
- If available, compare biological vs chronological age
- Explain what age acceleration means
- If not available, explain what tests are needed
"What supplements am I taking?"
- Call
list_supplements?active_only=true
- List active supplements with dosages (use
dose_text field)
- Note duration on each supplement
"What workouts have I done?"
- Call
get_activities?days=30
- Summarize total activity (duration, calories, distance)
- List recent workouts with key metrics
"What should I do today?"
- Call
get_today_actions?timezone=America/New_York (use user's timezone if known)
- Group actions by scheduled window (morning, afternoon, evening)
- Show completion progress
- Highlight uncompleted actions
"What should I focus on?" / "What are my health priorities?"
- Call
get_protocol
- Present top priorities with current values and targets
- Explain why each is prioritized
- List key recommendations
- Note protocol phase and days remaining
"What tests should I do next?" / "Am I due for any blood work?"
- Call
get_upcoming_tests
- Highlight overdue tests first (urgent)
- List tests due soon with timeframes
- Mention AI-recommended tests for optimization
- Note which biomarkers each panel covers
"Show me my lab reports" / "When was my last blood test?"
- Call
list_test_results?limit=10
- Show reports with dates, lab names, and biomarker counts
- Note the source (PDF upload, email, manual entry)
"Give me a full overview of all my biomarkers"
- Call
list_all_biomarkers
- Group by category (metabolic, cardiovascular, etc.)
- Highlight any critical or high/low values
- Show status counts (e.g., "12 optimal, 3 suboptimal, 1 high")
- Note trends (increasing/decreasing/stable)
"Show me my strength training" / "How's my lifting?"
- Call
get_strength_training?days=30
- Summarize workout frequency and total volume
- Show muscle group distribution (highlight any imbalances)
- List recent workouts with top exercises
"Show me my rowing results" / "How are my erg sessions?"
- Call
get_erg_results?days=30
- Summarize total sessions, distance, and average pace
- Show per-machine breakdown if using multiple ergs
- Highlight pace trends (improving/declining)
"What medications am I on?" / "What prescriptions do I take?"
- Call
list_medications?active_only=true
- List active medications with dosage and frequency
- Note route and reason if available
- To see historical medications too, use
active_only=false
"What are my medical conditions?" / "Do I have any allergies?"
- Call
get_medical_profile
- Present conditions with status and severity
- List allergies with severity levels
- Show family history (relevant for risk assessment)
- Note active health goals
"Show me all my health documents" / "What procedure reports do I have?"
- Call
list_health_documents?limit=20
- Show type breakdown (lab reports, procedures, imaging, etc.)
- List documents with AI summaries
- Filter by type if user asks about specific category:
document_type=procedure_report
"What did my ultrasound show?" / "What are my imaging results?"
- Call
list_health_documents?document_type=procedure_report to find imaging documents
- Call
query_clinical_findings?document_id={id} with the relevant document ID
- Group findings by category (measurements, classifications, clinical findings)
- Highlight key measurements with units and laterality
- Present grades/classifications prominently
- Note the report impression if present
"Do I have a varicocele?" / "Search for specific findings"
- Call
query_clinical_findings?search=varicocele (or any search term)
- Present matching findings with structured values
- Cross-reference with related findings from the same document
"What should I read about?" / "Any health articles for me?"
- Call
get_content_recommendations?limit=5
- Present articles with titles and relevance reasons
- Explain why each is relevant to the user's biomarker profile
Example API Call
// Using web_fetch
web_fetch({
url: "https://api.gevety.com/api/v1/mcp/tools/get_health_summary",
method: "GET",
headers: {
"Authorization": "Bearer $GEVETY_API_TOKEN",
"Content-Type": "application/json"
}
})
Important Guidelines
- Never diagnose - Present data clearly but always suggest consulting healthcare providers for medical decisions
- Trends matter more than single values - A slightly elevated reading improving over time is better than a normal reading that's declining
- Note data freshness - Lab results may be weeks/months old; wearable data is typically daily
- Context is key - Ask about supplements, medications, or lifestyle changes that might explain trends
- Privacy first - Health data is sensitive; don't share or reference specific values outside this conversation
Error Handling
| Error Code |
Meaning |
Action |
| 401 |
Invalid or expired token |
User needs to regenerate token at gevety.com/settings |
404 + did_you_mean |
Biomarker not found |
Suggest alternatives from the response |
| 404 |
No data found |
User may not have uploaded labs yet |
| 429 |
Rate limited |
Wait a moment and retry |
Getting a Token
Users can generate their API token at:
https://gevety.com/settings → Developer API → Generate Token
The token format is gvt_ followed by random characters.
Checking for Updates
On first use each session, optionally check for updates:
GET https://api.gevety.com/api/v1/mcp/tools/status
No authentication required. If the request fails or times out, skip the check and proceed normally.
Response (when successful):
{
"clawdbot_skill": { "latest": "1.8.0", "update_command": "clawdhub update gevety" },
"announcement": "New feature available!"
}
If clawdbot_skill.latest > 1.9.0 (this skill's version), tell the user:
"A Gevety skill update is available. Run: clawdhub update gevety"
If announcement is present, mention it once per session.
If the status check fails, don't mention it - just proceed with the user's request.
To manually update:
clawdhub update gevety
1---2name: gevety3version: 1.11.04description: Access your Gevety health data - biomarkers, healthspan scores, biological age, what-if scenarios across bio-age clocks, biomarker trajectories, bio-age clock history, non-clock health signals (CRF / stress resilience), supplements, medications, medical profile, activities, strength training, erg results, daily actions, 90-day health protocol, upcoming tests, lab reports, health documents, clinical findings, and health content5homepage: https://gevety.com6user-invocable: true7command: gevety8metadata:9 source: https://skillmd.com/skills/zhangchunsheng/gevety10 clawdbot:11 primaryEnv: GEVETY_API_TOKEN12 requires:13 env:14 - GEVETY_API_TOKEN15---1617# Gevety Health Assistant1819You have access to the user's health data from Gevety via the REST API. Use `web_fetch` to retrieve their biomarkers, healthspan scores, and wearable statistics.2021## First-Time Setup2223If this is the user's first time using Gevety, guide them through setup:24251. **Get a Gevety account**: Sign up at https://gevety.com if they don't have one262. **Upload blood tests**: They need to upload lab reports to have biomarker data273. **Generate an API token**:28 - Go to https://gevety.com/settings29 - Click "Developer API" tab30 - Click "Generate Token"31 - Copy the token (starts with `gvt_`)324. **Configure Clawdbot**: Add the token to `~/.clawdbot/clawdbot.json`:3334```json35{36 "skills": {37 "entries": {38 "gevety": {39 "apiKey": "gvt_your_token_here"40 }41 }42 }43}44```4546After adding the token, they'll need to restart Clawdbot for changes to take effect.4748## Authentication4950All requests require Bearer authentication. Use the `GEVETY_API_TOKEN` environment variable:5152```53Authorization: Bearer $GEVETY_API_TOKEN54```5556Base URL: `https://api.gevety.com`5758## Biomarker Name Handling5960The API preserves biomarker specificity. Fasting and non-fasting variants are distinct:6162| Input Name | API Returns | Notes |63|------------|-------------|-------|64| CRP, C-Reactive Protein | **CRP** or **C-Reactive Protein** | Standard CRP (LOINC 1988-5) |65| hsCRP, hscrp, Cardio CRP | **hs-CRP** | High-sensitivity CRP (LOINC 30522-7) |66| Glucose, Blood Glucose | **Glucose** | Generic/unspecified glucose |67| Fasting Glucose, FBS, FBG | **Glucose Fasting** | Fasting-specific glucose |68| Insulin, Serum Insulin | **Insulin** | Generic/unspecified insulin |69| Fasting Insulin | **Insulin Fasting** | Fasting-specific insulin |70| IG | **Immature Granulocytes** | Expanded for clarity |71| Vitamin D, 25-OH Vitamin D | **Vitamin D** | |72| LDL, LDL Cholesterol | **LDL Cholesterol** | |7374**Important**: The API no longer forces fasting assumptions. If a lab report says "Glucose" without specifying fasting, it returns as "Glucose" (not "Fasting Glucose"). This preserves the original context from your lab results.7576## Available Endpoints7778### 1. List Available Data (Start Here)7980**Always call this first** to discover what health data exists.8182```83GET /api/v1/mcp/tools/list_available_data84```8586Returns:87- `biomarkers`: List of tracked biomarkers with test counts and latest dates88- `wearables`: Connected devices and available metrics89- `insights`: Whether healthspan score is calculated, axis scores available90- `data_coverage`: Percentage of recommended biomarkers tracked (0-100)9192### 2. Get Health Summary9394Overview of the user's health status.9596```97GET /api/v1/mcp/tools/get_health_summary98```99100Returns:101- `overall_score`: Healthspan score (0-100)102- `overall_status`: OPTIMAL, GOOD, SUBOPTIMAL, or NEEDS_ATTENTION103- `trend`: IMPROVING, STABLE, or DECLINING104- `axis_scores`: Scores for each health dimension (metabolic, cardiovascular, etc.)105- `top_concerns`: Biomarkers needing attention106- `scoring_note`: Explanation when overall score differs from axis scores (e.g., "Overall healthspan is high, but Inflammation axis needs attention")107108**Note on scores**: The overall healthspan score is a weighted composite. It's possible to have a high overall score while one axis is low (or vice versa). The `scoring_note` field explains these situations.109110### 3. Query Biomarker111112Get detailed history for a specific biomarker.113114```115GET /api/v1/mcp/tools/query_biomarker?biomarker={name}&days={days}116```117118Parameters:119- `biomarker` (required): Name or alias (e.g., "vitamin d", "ldl", "hba1c", "crp")120- `days` (optional): History period, 1-730, default 365121122Returns:123- `canonical_name`: Standardized biomarker name (see table above)124- `history`: Array of test results with dates, values, units, flags125- `latest`: Most recent result126- `trend`: Direction (IMPROVING, STABLE, DECLINING) and percent change127- `optimal_range`: Evidence-based optimal values128129**Tip**: If biomarker not found, the response includes `did_you_mean` suggestions.130131### 4. Get Wearable Stats132133Daily metrics from connected wearables (Garmin, Oura, Whoop, etc.).134135```136GET /api/v1/mcp/tools/get_wearable_stats?days={days}&metric={metric}137```138139Parameters:140- `days` (optional): History period, 1-90, default 30141- `metric` (optional): Focus on specific metric (steps, hrv, sleep, etc.)142143Returns:144- `connected_sources`: List of connected wearable platforms145- `daily_metrics`: Per-day data (steps, resting HR, HRV, sleep, recovery)146- `summaries`: Aggregated stats with averages, min, max, trends147148### 5. Get Opportunities149150Get ranked health improvement opportunities with estimated healthspan impact.151152```153GET /api/v1/mcp/tools/get_opportunities?limit={limit}&axis={axis}154```155156Parameters:157- `limit` (optional): Max opportunities to return, 1-50, default 10158- `axis` (optional): Filter by health axis (metabolic, cardiovascular, etc.)159160Returns:161- `opportunities`: Ranked list of improvement opportunities162- `total_opportunity_score`: Total healthspan points available163- `total_years_estimate`: Estimated years of healthy life if all optimized164- `healthspan_score`: Current healthspan score165166Each opportunity includes:167- `biomarker`: Standardized biomarker name168- `current_value` / `optimal_value`: Where you are vs target169- `opportunity_score`: Healthspan points gained if optimized170- `years_estimate`: Estimated healthy years gained171- `priority`: Rank (1 = highest impact)172173### 6. Get Biological Age174175Calculate biological age using validated algorithms (PhenoAge, Light BioAge).176177```178GET /api/v1/mcp/tools/get_biological_age179```180181Returns:182- `result`: Biological age calculation (if available)183 - `biological_age`: Calculated biological age184 - `chronological_age`: Calendar age185 - `age_acceleration`: Difference (positive = aging faster)186 - `algorithm`: Which algorithm was used187 - `biomarkers_used`: Biomarkers that contributed188 - `interpretation`: What the result means189- `available`: Whether calculation was possible190- `reason`: Why not available (if applicable)191- `upgrade_available`: Can unlock better algorithm with more data192- `upgrade_message`: What additional tests would help193194### 6c. Get Biomarker Trajectory (Linear Regression on User History)195196Get a biomarker's trajectory: slope, direction, 3/6-month predictions,197time-to-target, and a freshness flag. Linear regression on the user's history.198199```200GET /api/v1/mcp/tools/get_biomarker_trajectory?biomarker={name}&months={int}201```202203Parameters:204- `biomarker` (required): canonical name or alias (e.g., 'LDL Cholesterol' or 'ldl')205- `months` (optional): history window in months (default 12, min 3, max 36)206207Returns:208- `direction`: improving | worsening | stable (relative to functional / reference range)209- `slope_per_month`, `predicted_3m`, `predicted_6m`210- `time_to_target_months` when improving toward target211- `confidence_r_squared` (R²) — accuracy depends on data point density212- `freshness`: fresh (≤180d) / aging (≤365d) / stale (>365d)213- `evidence_tier: 'directional'` (linear regression on user history, NOT a214 validated population trajectory model)215- `caveats[]`: low-fit and stale-data flags216217Returns `supported=false` with `status="insufficient_data"` when fewer than2183 data points fall in the window — explain that to the user rather than219treating it as an error.220221### 6d. Get Clock History (Per-Panel Bio-Age History)222223Per-panel bio-age history across PhenoAge / Light BioAge / Vascular Age.224Each panel evaluated against ONLY that panel's biomarkers (chronological225age uses the panel's draw date) for an honest snapshot of bio-age across time.226227```228GET /api/v1/mcp/tools/get_clock_history?clock={...}&months={int}229```230231Parameters:232- `clock` (optional): `phenoage` | `light_bioage` | `vascular` | `all` (default `all`)233- `months` (optional): history window (default 24, min 6, max 120)234235Returns per-clock blocks each carrying:236- `panels[]`: per-panel `test_date` / `chronological_age` / `biological_age` / `delta_years`237- `trend`: improving | worsening | stable (across panels)238- `delta_years_change`: oldest → newest delta_years change (negative = trending younger)239- `evidence_tier`: validated (PhenoAge / Vascular) | validated_emerging (Light BioAge)240- `freshness`: fresh / aging / stale based on latest panel241- `caveats[]`242243Returns `supported=false` with `status="no_panels_in_window"` when a clock244has no qualifying panels in the window.245246### 6e. Get Health Signal (Non-Clock Signals)247248Generic accessor for non-clock health signals. All v1 signals carry249`evidence_tier='directional'` — strong biomarker→outcome literature but250expressed as a score/index, not validated population-model years.251252```253GET /api/v1/mcp/tools/get_health_signal?signal={crf|stress_resilience}254```255256Supported signals (v1):257- `crf`: Cardiorespiratory fitness (VO2max + FRIEND percentile + Mandsager258 2018 mortality risk class)259- `stress_resilience`: 0-100 composite from HRV/RHR trends, recovery score,260 sleep efficiency, cortisol:DHEA-S ratio (MAI-7 scorer)261262Returns `score` / `value` / `category` / `breakdown[]` / `freshness` / `caveats`263with structured `supported=false` cases for missing data, missing baseline,264or fewer than the minimum required signals.265266### 6b. Compute What-If (Multi-Biomarker Scenario Simulator)267268Simulate the impact of biomarker target changes across PhenoAge, Light BioAge, and269Vascular Age clocks. Joint compute via each clock's native recompute path — NOT a270naive sum of single-biomarker effects.271272```273POST /api/v1/mcp/tools/compute_what_if274Content-Type: application/json275276{277 "targets": [278 { "biomarker": "ldl_cholesterol", "target_value": 80, "target_unit": "mg/dL" },279 { "biomarker": "hdl_cholesterol", "target_value": 60, "target_unit": "mg/dL" }280 ],281 "clocks": ["phenoage", "light_bioage", "vascular"]282}283```284285Body:286- `targets` (1-9 entries, required): Target overrides per biomarker.287 - `biomarker`: Canonical key (snake_case) — supports `ldl_cholesterol`,288 `hdl_cholesterol`, `total_cholesterol`, `systolic_bp`, `glucose`, `hscrp`,289 `albumin`, `creatinine`, `alkaline_phosphatase`, `rdw`, `mcv`, `wbc`,290 `lymphocyte_percent`. Aliases auto-resolve: `LDL`, `HDL`, `TC`, `SBP`,291 `ALP`, `hsCRP`. ApoB is recognized but no v1 clock consumes it. HbA1c is292 NOT a v1 input.293 - `target_value`: Hypothetical value.294 - `target_unit` (optional): Defaults to canonical unit (mg/dL for chol, mmHg for SBP, etc.).295- `clocks` (optional): Defaults to `[phenoage, light_bioage, vascular]`. GrimAge2 /296 DunedinPACE return `supported=false` with `status="evidence_gated"` until297 methylation data is connected.298299Returns:300- `scenario`: Echo of the canonicalized request.301- `baseline`: User chronological age + UTC computation timestamp.302- `clocks[]`: One row per requested clock with:303 - `name`, `algorithm`, `evidence_tier` (`validated` / `validated_emerging`),304 `model_provenance`, `supported`305 - When supported: `direction` (`younger` / `older` / `unchanged`),306 `current_value`, `scenario_value`, `delta_years`, `applied_targets`,307 `missing_targets[]` (with structured reason keys), `model_assumptions[]`308 (e.g., the LDL → ΔTotal Cholesterol derivation rule for Vascular Age),309 `freshness`, `caveats[]`310 - When not supported: `status` (`evidence_gated` / `requires_more_data` /311 `missing_baseline` / `out_of_range`) + `reason`312- `summary`:313 - `best_clock`: Highest-evidence supported clock with applied targets314 - `per_clock_deltas`: Structured array — pick what to surface315 - `ranked_levers`: Per-target leave-one-out approximation316 - `joint_caveat`: "deltas are NOT additive across clocks — different inputs"317 - `non_additivity_warning`: ranked_levers contributions don't sum exactly to318 a clock's total delta because of non-linear interactions319- `guardrails`: `is_medical_advice: false` + user-facing disclaimer.320321Use this to answer "what happens to my biological age clocks if my LDL drops to32280 and HDL rises to 60?".323324### 7. List Supplements325326Get the user's supplement stack.327328```329GET /api/v1/mcp/tools/list_supplements?active_only={true|false}330```331332Parameters:333- `active_only` (optional): Only show currently active supplements, default false334335Returns:336- `supplements`: List of supplements with dosage, frequency, duration337- `active_count`: Number of currently active supplements338- `total_count`: Total supplements tracked339340Each supplement includes:341- `name`: Supplement name342- `dose_text`: Formatted dosage (e.g., "1000 mg daily", "200mg EPA + 100mg DHA daily")343- `is_active`: Currently taking344- `duration_days`: How long on this supplement345346**Note**: For multi-component supplements (like fish oil), `dose_text` shows all components (e.g., "200mg EPA + 100mg DHA daily").347348### 8. Get Activities349350Get workout/activity history from connected wearables.351352```353GET /api/v1/mcp/tools/get_activities?days={days}&activity_type={type}354```355356Parameters:357- `days` (optional): History period, 1-90, default 30358- `activity_type` (optional): Filter by type (running, cycling, strength, etc.)359360Returns:361- `activities`: List of workouts with metrics362- `total_count`: Number of activities363- `total_duration_minutes`: Total workout time364- `total_distance_km`: Total distance covered365- `total_calories`: Total calories burned366367Each activity includes:368- `activity_type`: Type (running, cycling, swimming, etc.)369- `name`: Activity name370- `start_time`: When it started371- `duration_minutes`: How long372- `distance_km`: Distance (if applicable)373- `calories`: Calories burned374- `avg_hr` / `max_hr`: Heart rate data375- `source`: Where the data came from (garmin, strava, hevy, concept2, etc.)376- `elevation_gain_m`: Elevation gain in meters (outdoor activities)377- `avg_pace_min_per_km`: Average running pace378- `avg_watts`: Average cycling power379- `strain_score`: Whoop strain (0-21)380- `avg_cadence`: Cadence (RPM or steps/min)381- `is_indoor`: Indoor activity flag382- `total_volume_kg`: Total weight lifted (Hevy strength workouts)383- `exercise_count`: Number of exercises (Hevy)384- `set_count`: Number of sets (Hevy)385- `pace_500m`: Pace per 500m (Concept2 erg sessions)386- `stroke_rate`: Strokes per minute (Concept2)387- `machine_type`: Erg machine type — rower, skierg, bikerg (Concept2)388389**Note**: Source-specific fields (volume, pace, stroke rate, etc.) are only populated for the relevant source. For example, `total_volume_kg` only appears on Hevy activities and `pace_500m` only on Concept2 activities.390391### 9. Get Today's Actions392393Get the user's action checklist for today.394395```396GET /api/v1/mcp/tools/get_today_actions?timezone={timezone}397```398399Parameters:400- `timezone` (optional): IANA timezone (e.g., "America/New_York"), default UTC401402Returns:403- `effective_date`: The date being queried in user's timezone404- `timezone`: Timezone used for calculation405- `window_start` / `window_end`: Day boundaries (ISO datetime)406- `actions`: List of today's actions407- `completed_count` / `total_count`: Completion stats408- `completion_pct`: Numeric completion percentage (0-100)409- `last_updated_at`: Cache staleness indicator410411Each action includes:412- `action_id`: Stable ID for deep-linking413- `title`: Action title414- `action_type`: Type (supplement, habit, diet, medication, test, procedure)415- `completed`: Whether completed today416- `scheduled_window`: Time window (morning, afternoon, evening, any)417- `dose_text`: Dosage info if applicable (e.g., "1000 mg daily")418419### 10. Get Protocol420421Get the user's 90-day health protocol with top priorities.422423```424GET /api/v1/mcp/tools/get_protocol425```426427Returns:428- `protocol_id`: Stable protocol ID429- `phase`: Current phase (week1, month1, month3)430- `days_remaining`: Days until protocol expires431- `generated_at` / `last_updated_at`: Timestamps432- `top_priorities`: Top 5 health priorities with reasoning433- `key_recommendations`: Diet and lifestyle action items434- `total_actions`: Total actions in protocol435436Each priority includes:437- `priority_id`: Stable ID (same as rank)438- `rank`: Priority rank (1 = highest)439- `biomarker`: Standardized biomarker name440- `status`: Current status (critical, concerning, suboptimal, optimal)441- `target`: Target value with unit442- `current_value` / `unit`: Current measured value443- `measured_at`: When this biomarker was last measured444- `why_prioritized`: Explanation for why this is prioritized445446**Note**: If no protocol exists, returns a helpful error with suggestion to generate one at gevety.com/protocol.447448### 11. Get Upcoming Tests449450Get tests that are due or recommended based on biomarker history and AI recommendations.451452```453GET /api/v1/mcp/tools/get_upcoming_tests454```455456Returns:457- `tests`: List of upcoming tests sorted by urgency458- `overdue_count`: Number of overdue tests459- `due_soon_count`: Tests due within 30 days460- `recommended_count`: AI-recommended tests461- `total_count`: Total number of upcoming tests462463Each test includes:464- `test_id`: Stable ID for deep-linking (format: `panel_{id}` or `recommended_{id}`)465- `name`: Test or panel name466- `test_type`: Type (panel, biomarker, recommended)467- `urgency`: Priority level (overdue, due_soon, recommended)468- `due_reason`: Why this test is needed (e.g., "Due 2 weeks ago", "AI recommendation")469- `last_tested_at`: When this was last tested (if applicable)470- `biomarkers`: List of biomarkers included (for panels)471472### 12. List Test Results473474Get a list of uploaded lab reports with dates, source, and biomarker count.475476```477GET /api/v1/mcp/tools/list_test_results?limit={limit}&start_date={date}&end_date={date}478```479480Parameters:481- `limit` (optional): Max reports to return, 1-50, default 10482- `start_date` (optional): Filter from date (YYYY-MM-DD)483- `end_date` (optional): Filter to date (YYYY-MM-DD)484485Returns:486- `reports`: List of lab reports487- `total_reports`: Total number of reports488489Each report includes:490- `report_id`: Stable report ID491- `report_date`: Date of the lab test492- `source`: How it was uploaded (pdf, email, manual)493- `lab_name`: Laboratory name (if available)494- `biomarker_count`: Number of biomarkers in this report495- `filename`: Original filename (if uploaded as PDF)496497### 13. List All Biomarkers498499Get ALL tracked biomarkers with current value, status classification, and trend in one call.500501```502GET /api/v1/mcp/tools/list_all_biomarkers?category={category}&status={status}503```504505Parameters:506- `category` (optional): Filter by category (e.g., "metabolic", "cardiovascular")507- `status` (optional): Filter by status (optimal, suboptimal, high, low, critical_high, critical_low)508509Returns:510- `biomarkers`: List of all biomarkers with latest values511- `total_count`: Total number of biomarkers512- `counts_by_status`: Breakdown by status (optimal, suboptimal, high, low, critical_high, critical_low, unknown)513514Each biomarker includes:515- `name`: Standardized biomarker name516- `category`: Health category (metabolic, cardiovascular, etc.)517- `latest_value`: Most recent test value518- `unit`: Measurement unit519- `status`: Classification (optimal, suboptimal, high, low, critical_high, critical_low, unknown)520- `last_test_date`: When this was last tested521- `trend_direction`: Trend since previous test (increasing, decreasing, stable)522523### 14. Get Content Recommendations524525Get personalized health content recommendations based on biomarker profile.526527```528GET /api/v1/mcp/tools/get_content_recommendations?limit={limit}&category={category}529```530531Parameters:532- `limit` (optional): Max recommendations, 1-20, default 5533- `category` (optional): Filter by content category534535Returns:536- `recommendations`: List of recommended articles537- `total_available`: Total recommendations available538539Each recommendation includes:540- `content_id`: Stable content ID541- `title`: Article title542- `summary`: Brief summary543- `category`: Content category544- `relevance_reason`: Why this is relevant to the user545- `quality_score`: Evidence quality score (only high-quality content is shown)546- `url`: Link to the article547548### 15. Get Strength Training549550Get detailed strength training data from Hevy (workouts, volume, muscle distribution).551552```553GET /api/v1/mcp/tools/get_strength_training?days={days}&muscle_group={group}554```555556Parameters:557- `days` (optional): History period, 1-90, default 30558- `muscle_group` (optional): Filter by muscle group (e.g., "chest", "back", "legs")559560Returns:561- `workouts`: List of strength workouts with exercises, sets, and volume562- `total_workouts`: Total workout count563- `total_volume_kg`: Total weight lifted564- `avg_sessions_per_week`: Training frequency565- `muscle_distribution`: Volume breakdown by muscle group (with percentages)566- `weekly_volume`: Weekly volume trend data567568Each workout includes:569- `started_at`: When the workout started570- `duration_minutes`: Workout duration571- `total_volume_kg`: Total volume for this workout572- `exercise_count` / `set_count`: Number of exercises and sets573- `exercises`: Detailed exercise list with name, muscle group, sets, top set weight, total volume, total reps574- `enrichment_source`: If enriched with HR data from another wearable (garmin, strava, etc.)575- `enrichment_avg_hr`: Average HR from enrichment source576577**Note**: Requires Hevy connection. Returns error if user has no Hevy integration.578579### 16. Get Erg Results580581Get Concept2 ergometer results (rowing, skiing, biking).582583```584GET /api/v1/mcp/tools/get_erg_results?days={days}&machine_type={type}585```586587Parameters:588- `days` (optional): History period, 1-90, default 30589- `machine_type` (optional): Filter by machine — rower, skierg, bikerg590591Returns:592- `sessions`: List of erg sessions with detailed metrics593- `total_sessions`: Total session count594- `total_meters`: Total distance595- `total_time_seconds`: Total time on erg596- `avg_pace_formatted`: Overall average pace per 500m (e.g., "2:05.3")597- `machines`: Per-machine summary (session count, total meters, avg pace)598- `weekly_volume`: Weekly volume trend data599600Each session includes:601- `date`: Session date602- `machine_type`: rower, skierg, or bikerg603- `distance_meters`: Distance in meters604- `time_seconds`: Duration in seconds605- `pace_500m`: Pace per 500m formatted (e.g., "2:05.3")606- `calories`: Calories burned607- `stroke_rate`: Average strokes per minute608- `avg_hr`: Average heart rate (if available)609- `drag_factor`: Erg drag factor setting610611**Note**: Requires Concept2 connection. Returns error if user has no Concept2 integration.612613### 17. List Medications614615Get the user's prescription medications.616617```618GET /api/v1/mcp/tools/list_medications?active_only={true|false}619```620621Parameters:622- `active_only` (optional): Only show currently active medications, default true623624Returns:625- `medications`: List of medications with dosage, frequency, route, and reason626- `active_count`: Number of currently active medications627- `total_count`: Total medications tracked628629Each medication includes:630- `name`: Medication name (brand)631- `generic_name`: Generic/active ingredient name632- `dosage`: Dosage (e.g., "500mg")633- `frequency`: How often taken (e.g., "twice daily")634- `route`: Route of administration (oral, topical, injection, etc.)635- `is_active`: Currently taking636- `start_date` / `end_date`: When started/stopped637- `duration_days`: How long on this medication638- `reason`: Why prescribed (auto-decrypted from encrypted storage)639640### 18. Get Medical Profile641642Get the user's medical profile including conditions, allergies, family history, and health goals.643644```645GET /api/v1/mcp/tools/get_medical_profile646```647648Returns:649- `conditions`: List of medical conditions (active/managed)650- `allergies`: List of allergies with severity and reaction type651- `family_history`: Family medical history with relationships and onset ages652- `goals`: Active health goals with priorities and target dates653- `diet_type`: Current dietary pattern (if set)654- `condition_count` / `allergy_count`: Summary counts655656Each condition includes: `name`, `status` (active/managed/resolved/monitoring), `severity`, `diagnosed` date, `notes`657658Each allergy includes: `allergen`, `severity` (mild/moderate/severe/life_threatening), `reaction_type`659660Each family history item includes: `condition`, `relationship` (father/mother/etc.), `age_at_onset`, `notes`661662### 19. List Health Documents663664List all health documents including procedure reports, imaging, prescriptions, and more.665666```667GET /api/v1/mcp/tools/list_health_documents?limit={limit}&document_type={type}668```669670Parameters:671- `limit` (optional): Max documents to return, 1-50, default 20672- `document_type` (optional): Filter by type (lab_report, procedure_report, imaging, prescription, doctor_note, other)673674Returns:675- `documents`: List of health documents sorted by received date (newest first)676- `total_count`: Total documents for this user677- `by_type`: Breakdown of document counts by type678679Each document includes:680- `document_id`: Document ID681- `document_type`: Type (lab_report, procedure_report, imaging, etc.)682- `document_subtype`: Subtype (cac, dexa, colonoscopy, mammogram, etc.)683- `status`: Processing status (pending, processing, needs_review, extracted, archived)684- `filename`: Original filename685- `received_at`: When received (ISO format)686- `ai_summary`: AI-generated summary of the document687- `lab_name`: Lab name (for lab reports)688- `test_date`: Test/procedure date689690**Note**: This goes beyond `list_test_results` which only shows lab reports. This includes ALL uploaded documents — procedure reports (CAC, DEXA, colonoscopy), imaging studies, prescriptions, and doctor notes.691692### 20. Query Clinical Findings693694Get structured clinical findings extracted from health documents (imaging, procedures, etc.).695696```697GET /api/v1/mcp/tools/query_clinical_findings?document_id={id}&category={cat}&search={text}&limit={limit}698```699700Parameters:701- `document_id` (optional): Filter by document ID (get IDs from `list_health_documents`)702- `category` (optional): Filter by category (measurement, classification, finding, recommendation)703- `search` (optional): Text search across finding text (e.g., "varicocele", "reflux", "volume")704- `limit` (optional): Max findings to return, 1-100, default 50705706Returns:707- `findings`: List of structured clinical findings708- `total_count`: Total findings matching query709- `document_info`: Source document metadata (when filtering by document_id)710711Each finding includes:712- `finding_id`: Finding ID713- `document_id`: Source document ID714- `finding_text`: Human-readable finding (e.g., "Left varicocele diameter supine rest 3.6 mm")715- `category`: Type — measurement, classification, finding, or recommendation716- `value`: Structured data object with applicable keys:717 - `number` + `unit`: Numeric measurements (e.g., 3.6 mm, 13.3 mL)718 - `laterality`: Left, right, or bilateral719 - `condition`: Context (e.g., "at rest", "on Valsalva", "standing")720 - `location`: Anatomical location721 - `grade` + `grade_system`: Grading (e.g., Grade III varicocele)722 - `present` / `absent`: Boolean findings (e.g., reflux present)723- `confidence`: Extraction confidence 0.0-1.0724- `created_by`: Extraction source (universal, universal_procedure_extractor, cac_extractor, etc.)725726**This is the PRIMARY tool for accessing imaging and procedure report data.** Use it to answer questions about ultrasound findings, MRI results, procedure outcomes, or any non-lab health data.727728**Note**: Works alongside `list_health_documents` — first use `list_health_documents` to find document IDs, then `query_clinical_findings` to get the detailed findings.729730## Interpreting Scores731732### Healthspan Score (0-100)733| Range | Status | Meaning |734|-------|--------|---------|735| 80-100 | OPTIMAL | Excellent health optimization |736| 65-79 | GOOD | Above average, minor improvements possible |737| 50-64 | SUBOPTIMAL | Room for improvement |738| <50 | NEEDS_ATTENTION | Several areas need focus |739740### Axis Scores741Each health dimension is scored independently:742- **Metabolic**: Blood sugar, insulin, lipids743- **Cardiovascular**: Heart health markers744- **Inflammatory**: hs-CRP, homocysteine745- **Hormonal**: Thyroid, testosterone, cortisol746- **Nutritional**: Vitamins, minerals747- **Liver/Kidney**: Organ function markers748749**Important**: It's possible to have a high overall score with one low axis score (or vice versa). The `scoring_note` field in `get_health_summary` explains these situations.750751### Biomarker Status Labels752| Label | Meaning |753|-------|---------|754| OPTIMAL | Within evidence-based ideal range |755| NORMAL | Within lab reference range |756| SUBOPTIMAL | Room for improvement |757| HIGH/LOW | Outside lab reference range |758| CRITICAL | Needs immediate medical attention |759760## Common Workflows761762### "How am I doing?"7631. Call `list_available_data` to see what's tracked7642. Call `get_health_summary` for the overall picture7653. Highlight top concerns and recent trends7664. If `scoring_note` is present, explain the score discordance767768### "Tell me about my vitamin D"7691. Call `query_biomarker?biomarker=vitamin d`7702. Present history, current status, and trend7713. Note optimal range vs current value772773### "What's my CRP?" / "How's my inflammation?"7741. Call `query_biomarker?biomarker=crp` (returns as "CRP" or "hs-CRP" depending on lab)7752. Present the value and trend7763. Explain what CRP measures (inflammation marker) - note if it's high-sensitivity777778### "How's my sleep/HRV?"7791. Call `get_wearable_stats?metric=sleep` or `?metric=hrv`7802. Show recent trends and averages7813. Compare to healthy baselines782783### "What should I focus on?"7841. Call `get_opportunities?limit=5`7852. Present top opportunities ranked by healthspan impact7863. Explain what each biomarker does and why optimizing it matters787788### "How is my LDL trending?" / "When will my CRP get to target?"7891. Call `get_biomarker_trajectory?biomarker=ldl&months=12`.7902. Read off `direction` (improving / worsening / stable) + `slope_per_month`.7913. If `time_to_target_months` is present, surface it ("on this trajectory you'll792 hit target in ~8 months"). If `supported=false`, explain to the user that793 they need ≥3 data points and consider the freshness flag.7944. Always call out that the evidence tier is `directional` (linear regression795 on user history, not a validated population model).796797### "How has my biological age trended over time?" / "Show me my bio-age history"7981. Call `get_clock_history?clock=all&months=24`.7992. For each supported clock, surface the per-panel ledger + trend +800 `delta_years_change`.8013. PhenoAge / Vascular are `validated`; Light BioAge is `validated_emerging` —802 reflect that asymmetry in language ("PhenoAge says... — Light BioAge, an803 emerging clock, says...").8044. NEVER sum across clocks. Each clock evaluates against its own per-panel805 inputs and uses different mathematical models.806807### "How fit am I vs my age peers?" / "How's my stress recovery?"8081. Call `get_health_signal?signal=crf` or `signal=stress_resilience`.8092. Surface the score / category / interpretation. Use `breakdown[]` to explain810 what's driving the score.8113. ALWAYS qualify with the evidence tier (`directional`) — these are812 biomarker-derived scores, not validated population-model years.8134. If `primary_concern` is set, surface the recommendation verbatim.814815### "What if my LDL dropped to 80?" / "How would my biological age change if X?"8161. Call `compute_what_if` (POST) with the user's hypothetical biomarker target(s).8172. Read off `summary.best_clock` for the headline (one validated clock + delta + direction).8183. Surface PhenoAge / Light BioAge / Vascular as separate rows — they are NOT819 additive across clocks. Always include the joint caveat from `summary.joint_caveat`.8204. If `model_assumptions` is non-empty (e.g., the LDL → ΔTotal Cholesterol821 derivation), surface it verbatim — it's load-bearing context for the user.8225. If a clock returns `supported=false` with `status="evidence_gated"`, mention823 the methylation testing options (TruDiagnostic / Elysium / Clock Foundation).8246. Never say "X years gained" if `direction == "older"`; phrase scenarios that825 worsen risk as "+ X years older" with a recommendation to consult a clinician.826827### "How old am I biologically?"8281. Call `get_biological_age`8292. If available, compare biological vs chronological age8303. Explain what age acceleration means8314. If not available, explain what tests are needed832833### "What supplements am I taking?"8341. Call `list_supplements?active_only=true`8352. List active supplements with dosages (use `dose_text` field)8363. Note duration on each supplement837838### "What workouts have I done?"8391. Call `get_activities?days=30`8402. Summarize total activity (duration, calories, distance)8413. List recent workouts with key metrics842843### "What should I do today?"8441. Call `get_today_actions?timezone=America/New_York` (use user's timezone if known)8452. Group actions by scheduled window (morning, afternoon, evening)8463. Show completion progress8474. Highlight uncompleted actions848849### "What should I focus on?" / "What are my health priorities?"8501. Call `get_protocol`8512. Present top priorities with current values and targets8523. Explain why each is prioritized8534. List key recommendations8545. Note protocol phase and days remaining855856### "What tests should I do next?" / "Am I due for any blood work?"8571. Call `get_upcoming_tests`8582. Highlight overdue tests first (urgent)8593. List tests due soon with timeframes8604. Mention AI-recommended tests for optimization8615. Note which biomarkers each panel covers862863### "Show me my lab reports" / "When was my last blood test?"8641. Call `list_test_results?limit=10`8652. Show reports with dates, lab names, and biomarker counts8663. Note the source (PDF upload, email, manual entry)867868### "Give me a full overview of all my biomarkers"8691. Call `list_all_biomarkers`8702. Group by category (metabolic, cardiovascular, etc.)8713. Highlight any critical or high/low values8724. Show status counts (e.g., "12 optimal, 3 suboptimal, 1 high")8735. Note trends (increasing/decreasing/stable)874875### "Show me my strength training" / "How's my lifting?"8761. Call `get_strength_training?days=30`8772. Summarize workout frequency and total volume8783. Show muscle group distribution (highlight any imbalances)8794. List recent workouts with top exercises880881### "Show me my rowing results" / "How are my erg sessions?"8821. Call `get_erg_results?days=30`8832. Summarize total sessions, distance, and average pace8843. Show per-machine breakdown if using multiple ergs8854. Highlight pace trends (improving/declining)886887### "What medications am I on?" / "What prescriptions do I take?"8881. Call `list_medications?active_only=true`8892. List active medications with dosage and frequency8903. Note route and reason if available8914. To see historical medications too, use `active_only=false`892893### "What are my medical conditions?" / "Do I have any allergies?"8941. Call `get_medical_profile`8952. Present conditions with status and severity8963. List allergies with severity levels8974. Show family history (relevant for risk assessment)8985. Note active health goals899900### "Show me all my health documents" / "What procedure reports do I have?"9011. Call `list_health_documents?limit=20`9022. Show type breakdown (lab reports, procedures, imaging, etc.)9033. List documents with AI summaries9044. Filter by type if user asks about specific category: `document_type=procedure_report`905906### "What did my ultrasound show?" / "What are my imaging results?"9071. Call `list_health_documents?document_type=procedure_report` to find imaging documents9082. Call `query_clinical_findings?document_id={id}` with the relevant document ID9093. Group findings by category (measurements, classifications, clinical findings)9104. Highlight key measurements with units and laterality9115. Present grades/classifications prominently9126. Note the report impression if present913914### "Do I have a varicocele?" / "Search for specific findings"9151. Call `query_clinical_findings?search=varicocele` (or any search term)9162. Present matching findings with structured values9173. Cross-reference with related findings from the same document918919### "What should I read about?" / "Any health articles for me?"9201. Call `get_content_recommendations?limit=5`9212. Present articles with titles and relevance reasons9223. Explain why each is relevant to the user's biomarker profile923924## Example API Call925926```javascript927// Using web_fetch928web_fetch({929 url: "https://api.gevety.com/api/v1/mcp/tools/get_health_summary",930 method: "GET",931 headers: {932 "Authorization": "Bearer $GEVETY_API_TOKEN",933 "Content-Type": "application/json"934 }935})936```937938## Important Guidelines9399401. **Never diagnose** - Present data clearly but always suggest consulting healthcare providers for medical decisions9412. **Trends matter more than single values** - A slightly elevated reading improving over time is better than a normal reading that's declining9423. **Note data freshness** - Lab results may be weeks/months old; wearable data is typically daily9434. **Context is key** - Ask about supplements, medications, or lifestyle changes that might explain trends9445. **Privacy first** - Health data is sensitive; don't share or reference specific values outside this conversation945946## Error Handling947948| Error Code | Meaning | Action |949|------------|---------|--------|950| 401 | Invalid or expired token | User needs to regenerate token at gevety.com/settings |951| 404 + `did_you_mean` | Biomarker not found | Suggest alternatives from the response |952| 404 | No data found | User may not have uploaded labs yet |953| 429 | Rate limited | Wait a moment and retry |954955## Getting a Token956957Users can generate their API token at:958**https://gevety.com/settings** → Developer API → Generate Token959960The token format is `gvt_` followed by random characters.961962## Checking for Updates963964On first use each session, optionally check for updates:965966```967GET https://api.gevety.com/api/v1/mcp/tools/status968```969970No authentication required. If the request fails or times out, skip the check and proceed normally.971972Response (when successful):973```json974{975 "clawdbot_skill": { "latest": "1.8.0", "update_command": "clawdhub update gevety" },976 "announcement": "New feature available!"977}978```979980**If `clawdbot_skill.latest` > 1.9.0** (this skill's version), tell the user:981> "A Gevety skill update is available. Run: `clawdhub update gevety`"982983**If `announcement` is present**, mention it once per session.984985**If the status check fails**, don't mention it - just proceed with the user's request.986987To manually update:988```bash989clawdhub update gevety990```