Betterness
Bett-iDocsTutorialsAboutAugmented Wellness

Overview

Trust

Resources

System

Get Started

Clients

Recipes

Tools

Reference

DocsMCPToolsLab Results

Lab Result Tools

Upload PDFs, correct extracted values, approve.

getLabResultFileUploadEndpoint

Preferred method. Returns the multipart upload URL plus full instructions, including a ready-to-use cURL example. Use the same bk_* API key as the MCP connection.

Parameters: none

Returns: JSON with uploadUrl, method, contentType, fileField, acceptedTypes, maxSizeMB, authentication, curlExample, message.

getLabResultUploadLink

Fallback when the agent cannot make HTTP requests. Returns a platform link the user opens to upload PDFs manually (drag-and-drop or browse).

Returns: JSON with uploadUrl and message.

updateLabResultBiomarker

Updates or deletes one biomarker in an uploaded lab result. Only works on PROCESSED (not yet APPROVED) results. Use getLabRecordDetail first to get biomarker IDs.

ParameterRequiredNotes
biomarkerExternalIdyesFrom the biomarkers array of the record detail
actionnoSet to DELETE to remove. Omit to update.
namenoUpdated name
resultno"5.2", "120", etc.
unitno"mg/dL", "ng/mL", etc.
minRangeValuenoLower bound
maxRangeValuenoUpper bound

updateLabResultMetadata

Updates patient or test metadata. Only works on PROCESSED results.

ParameterRequired
labResultExternalIdyes
patientNameno
patientSexno — MALE or FEMALE
dobno
labNameno
orderingPhysicianno
dateCollectedno — ISO-8601
fastingno — "true" or "false"

updateLabResultStatus

Transitions a result through approval states.

ActionEffect
APPROVEPROCESSED → APPROVED. Biomarkers visible in searchBiomarkers; biological age recalculates.
ROLLBACKAPPROVED → PROCESSED. Hides biomarkers, removes biological age contribution.
REPROCESSRe-runs PDF extraction. Resets to PENDING.

Always show extracted values to the user and get explicit approval before APPROVE.

Lab OrdersPurchases
© 2026 Betterness Inc.
Privacy PolicyTerms of ServiceHealth Data