Skip to main content
Glama

Explain my lab results: what they mean and what to ask the doctor (made-up or de-identified numbers)

explain_my_lab_results
Read-onlyIdempotent

Converts synthetic lab results into guideline-cited suggestions, safety notes, and questions to discuss with a care team, helping users understand their health picture and next steps.

Instructions

Turns a set of lab values, for example from a type 2 diabetes, kidney, lupus or cancer-survivor check-up, into guideline-cited suggestions and questions for the care team (ADA, KDIGO, EULAR/ACR, NCCN). Made-up or de-identified values only. Returns PRISM 2's quick reading in about 10–20 seconds: a health picture (connections graded and sourced, what is due, safety notes, what is unknown), checked by a second automated check (no clinician reviews PRISM output), plus the recommendations. For the deepest reading on our strongest model, use start_lab_analysis. For research/education with SYNTHETIC or de-identified data only. Do NOT submit protected health information (PHI). Inputs are not stored, except that a claim link, when offered, holds the submitted values for up to 30 minutes so the person can add them to their own account; unclaimed values are then deleted.

Input Schema

NameRequiredDescriptionDefault
ageNoAge in years of the synthetic persona (improves reference-range interpretation).
biomarkersYesMap of biomarker name -> numeric value, e.g. { "Hemoglobin A1c": 5.4 }. SYNTHETIC ONLY.
biologicalSexNoBiological sex of the synthetic persona (sex-specific reference ranges).
conditionFocusNoOptional condition track. Default general_wellness.
include_partner_optionsNoIf true, include partner/product options. Default false.

Output Schema

NameRequiredDescriptionDefault
metaNoEngine metadata for this analysis run.
engineNo"prism2_fast" (PRISM 2 quick reading) or "prism1" (fallback).
issuesNoFlagged issues detected in the panel.
job_idNoPresent with status still_working: pass it to get_lab_analysis.
statusNo"still_working" when the AI provider is slow: the reading continues in the background — collect it with get_lab_analysis using job_id. "engine_busy" when the engine did not answer in time: use quick_look now and start_lab_analysis for the full reading.
next_stepYesThe one next step: read this last and act on it.
quick_lookNoInstant range check of the same values (present while the full reading is still working or the engine is busy). Not the full PRISM 2 reading.
claim_panelNoOPTIONAL owner handoff: attach these exact values to the owner's Phi Longevity account (sign-in + explicit confirm). Present only when the consent bridge is enabled.
full_reportYesHow the agent's owner can get a complete PRISM report.
what_happenedNoPlain-language explanation to pass on when the reading is still working.
health_pictureNoPRISM 2: the story, connections graded Established / Likely / Worth asking, questions for the doctor with urgency, tests due, safety notes, what is unknown.
recommendationsNoTiered, guideline-cited recommendations from the PRISM engine (absent while status is still_working).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.0

TDQS

A4.4/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well beyond the annotations: discloses expected latency (10–20 seconds), the structure of the return (health picture, graded/sourced connections, what is due, safety notes, what is unknown, recommendations), and an explicit caveat that a second automated check — not a clinician — reviews output. It also states the data-retention behavior in detail: inputs are not stored except that a claim link may hold submitted values for up to 30 minutes, after which unclaimed values are deleted. That is exactly the kind of privacy/limitation context annotations cannot carry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core purpose in the first sentence, and every later clause (latency, reviewer caveat, alternative tool, PHI ban, retention) carries real decision weight. It is a single dense paragraph with heavy parenthetical nesting and a run-on final sentence about claim links, which costs it some readability but not substance.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a medical-adjacent, open-world tool this is thorough: it covers scope restrictions, privacy and retention, latency expectations, the absence of clinician review, and the sibling to use for deeper analysis. With an output schema present, it correctly does not waste space describing return fields in detail.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents age, biologicalSex, biomarkers, conditionFocus and include_partner_options. The description mentions condition areas that map loosely onto the conditionFocus enum (diabetes, kidney, lupus, cancer survivorship), but adds no new syntax, defaults or semantics for any parameter beyond what the schema states — baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a concrete verb and transformation ("turns a set of lab values ... into guideline-cited suggestions and questions for the care team") plus the specific guideline frameworks cited (ADA, KDIGO, EULAR/ACR, NCCN). It distinguishes itself from the nearest sibling by naming start_lab_analysis for the deeper reading, so an agent can pick between the two without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a clear boundary for the closest alternative ("For the deepest reading on our strongest model, use start_lab_analysis") and a hard scope restriction (synthetic/de-identified, research/education only, no PHI). However, with 13 siblings including quick_check, get_lab_analysis, full_prism_report and sample_prism_report, it only routes away from one of them, leaving several plausible confusions unresolved.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.