Documentation
magent: deterministic clinical APIs for agents
magent is pay-per-request clinical ground truth for autonomous medical agents. USDC on Base. No API keys.
Distinct from npm @x402/fetch
(a client that pays x402 APIs). This product is the API those clients call.
Same source of truth as /v1/catalog, /openapi.json, /.well-known/x402, and /llms.txt.
Not a medical device.
Paid tools
Ontology translation
Map a natural-language drug, diagnosis, or lab phrase to a current RxNorm, ICD-10-CM, or LOINC code. Use when an agent must not hallucinate or invent a billing/pharmacy code.
Ontology lookup
Look up a current RxNorm, ICD-10-CM, or LOINC display from an exact code. Use when an agent already has a code and must not invent the preferred term.
Mosteller BSA
Mosteller body surface area from height and weight. Use for oncology dosing arithmetic. Deterministic published formula with citation; not a dosing recommendation.
CKD-EPI 2021 eGFR
CKD-EPI 2021 creatinine eGFR (race-free). Use when an agent must not guess kidney function from a language model. Deterministic published formula with citation.
CHA2DS2-VASc
CHA2DS2-VASc score from discrete clinical flags. Use for stroke-risk stratification arithmetic in atrial fibrillation. Deterministic published score with citation.
BMI
Body-mass index from height and weight (Keys/Quetelet). Use for GLP-1 and bariatric prior-auth arithmetic. Deterministic published index with citation; not a diagnosis.
HAS-BLED
HAS-BLED score from discrete clinical flags. Use for bleeding-risk arithmetic in atrial fibrillation. Deterministic published score with citation.
Cockcroft–Gault CrCl
Cockcroft-Gault creatinine clearance from age, sex, total body weight, and creatinine. Use when a label still doses on CrCl rather than CKD-EPI eGFR. Deterministic published formula with citation; not a dosing recommendation.
FIB-4
FIB-4 fibrosis index from age, AST, ALT, and platelets. Use for MASH/NASH prior-auth arithmetic. Deterministic published index with citation; not a diagnosis.
Playbooks
Suggested call sequences for prior-auth coding and clinical arithmetic. The same sequences are in
/v1/catalog playbooks
and /llms.txt.
Phase 2 (DDI, PHI scrubbing) is not shipped yet.
Prior authorization coding
Map a chart phrase to ICD-10-CM or RxNorm, then look up the preferred term from an exact code.
Oncology dosing arithmetic
Compute Mosteller BSA from height and weight. Do not let a model multiply.
Kidney function + stroke risk
eGFR then CHA2DS2-VASc when a chart needs both kidney function and AF stroke risk.
GLP-1 prior-auth BMI
Compute Keys/Quetelet BMI from height and weight for prior-auth arithmetic.
Renal dosing CrCl
Cockcroft-Gault creatinine clearance when a label still doses on CrCl rather than CKD-EPI eGFR.
MASH / NASH FIB-4
FIB-4 from age, AST, ALT, and platelets for fibrosis prior-auth arithmetic.
Payment smoke
Payment smoke
Confirms the x402 gate and PAYMENT-RESPONSE. Not a product tool. Do not call for production work. Not listed on Bazaar.