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.
Phase 1 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.
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.
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 and a medication phrase to RxNorm before submitting a claim or eRx.
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.
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.