MAGENT

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

LIVE

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.

$0.005 USDC

GET /api/ontology/translate Documentation →
WEDGE

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.

$0.005 USDC

GET /api/ontology/lookup Documentation →
LIVE

Mosteller BSA

Mosteller body surface area from height and weight. Use for oncology dosing arithmetic. Deterministic published formula with citation; not a dosing recommendation.

$0.005 USDC

GET /api/calc/bsa_mosteller Documentation →
LIVE

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.

$0.005 USDC

GET /api/calc/egfr_ckd_epi Documentation →
LIVE

CHA2DS2-VASc

CHA2DS2-VASc score from discrete clinical flags. Use for stroke-risk stratification arithmetic in atrial fibrillation. Deterministic published score with citation.

$0.005 USDC

GET /api/calc/cha2ds2_vasc Documentation →
WEDGE

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.

$0.005 USDC

GET /api/calc/bmi Documentation →
WEDGE

HAS-BLED

HAS-BLED score from discrete clinical flags. Use for bleeding-risk arithmetic in atrial fibrillation. Deterministic published score with citation.

$0.005 USDC

GET /api/calc/has_bled Documentation →
WEDGE

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.

$0.005 USDC

GET /api/calc/crcl_cockcroft_gault Documentation →
WEDGE

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.

$0.005 USDC

GET /api/calc/fib4 Documentation →

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.

PLAYBOOK

Prior authorization coding

Map a chart phrase to ICD-10-CM or RxNorm, then look up the preferred term from an exact code.

PLAYBOOK

Oncology dosing arithmetic

Compute Mosteller BSA from height and weight. Do not let a model multiply.

PLAYBOOK

Kidney function + stroke risk

eGFR then CHA2DS2-VASc when a chart needs both kidney function and AF stroke risk.

PLAYBOOK

GLP-1 prior-auth BMI

Compute Keys/Quetelet BMI from height and weight for prior-auth arithmetic.

PLAYBOOK

Renal dosing CrCl

Cockcroft-Gault creatinine clearance when a label still doses on CrCl rather than CKD-EPI eGFR.

PLAYBOOK

MASH / NASH FIB-4

FIB-4 from age, AST, ALT, and platelets for fibrosis prior-auth arithmetic.

Payment smoke

SMOKE

Payment smoke

Confirms the x402 gate and PAYMENT-RESPONSE. Not a product tool. Do not call for production work. Not listed on Bazaar.

$0.001 USDC

GET /v1/tools/ping Documentation →

Also

x402 payments · Health, catalog, OpenAPI, llms.txt