{"uid":"cap_hlfgXxNOXl3slDyv4Cwag","slug":"magent-fluid-balance-calculator-fluid-io-fd65da9d","name":"Magent Fluid Balance Calculator (fluid_io)","description":"Net fluid balance in mL: caller-assigned total intake minus total output over the same interval. Optional oral plus IV intake and urine, ultrafiltration, drain, and GI output must sum to those totals when sent (Acheampong and Vincent 2015). Does not estimate insensible losses. Not a resuscitation or diuretic order; magent does not measure I/O. Deterministic published arithmetic with citation.","url":"https://api.magentlab.com/api/calc/fluid_io","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"queryParams":{"type":"object","required":["total_intake_ml","total_output_ml"],"properties":{"gi_output_ml":{"type":"number","description":"Optional estimated gastrointestinal losses in mL (0-100000). Acheampong 2015 counted stool only with profound diarrhea. When any output addend is sent, the output addends (missing as 0) must equal total_output_ml. magent does not estimate insensible loss."},"iv_intake_ml":{"type":"number","description":"Optional intravenous intake in mL (0-100000). When any intake addend is sent, oral_intake_ml + iv_intake_ml (missing as 0) must equal total_intake_ml."},"oral_intake_ml":{"type":"number","description":"Optional oral intake in mL (0-100000). When any intake addend is sent, oral_intake_ml + iv_intake_ml (missing as 0) must equal total_intake_ml."},"drain_output_ml":{"type":"number","description":"Optional drain fluid in mL (0-100000). When any output addend is sent, the output addends (missing as 0) must equal total_output_ml."},"total_intake_ml":{"type":"number","description":"Caller-assigned total fluid intake in mL over the interval (0-100000). Acheampong 2015: sum of intravenous and oral fluids. magent does not measure intake."},"total_output_ml":{"type":"number","description":"Caller-assigned total fluid output in mL over the same interval (0-100000). Acheampong 2015: urine, ultrafiltration, drain fluid, and estimated gastrointestinal losses. magent does not measure output."},"urine_output_ml":{"type":"number","description":"Optional urine output in mL (0-100000). When any output addend is sent, urine + ultrafiltration + drain + GI (missing as 0) must equal total_output_ml."},"ultrafiltration_ml":{"type":"number","description":"Optional ultrafiltration volume in mL (0-100000). When any output addend is sent, the output addends (missing as 0) must equal total_output_ml."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_PQP5NbYLRyjGs0zB7vaQP","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes net fluid balance in mL by subtracting caller-supplied total output from total intake, with optional breakdown validation for oral/IV intake and urine/ultrafiltration/drain/GI output components.","exampleAgentPrompt":"Calculate the net fluid balance for my ICU patient who received 3200 mL total intake (800 mL oral, 2400 mL IV) and had 2100 mL total output (1500 mL urine, 300 mL drain, 300 mL GI losses) over the last 12 hours.","exampleUseCases":[{"title":"ICU shift fluid balance audit","prompt":"My ICU patient had 2800 mL total intake and 1950 mL total output over the past 8 hours — can you compute the net fluid balance in mL?"},{"title":"Post-op fluid balance with drain output","prompt":"Calculate fluid balance for a post-cardiac-surgery patient: 3500 mL total intake (1000 mL oral, 2500 mL IV), 2800 mL total output (1600 mL urine, 800 mL drain, 400 mL ultrafiltration)."},{"title":"Diarrhea patient output component validation","prompt":"I need the net fluid balance for a patient with 1800 mL intake and 2200 mL output — output breaks down as 1400 mL urine, 500 mL GI losses, and 300 mL drain. Make sure the components add up correctly."}],"resultDescription":"Returns the net fluid balance in mL (total_intake_ml minus total_output_ml). If optional intake or output addends are provided, the API validates that they sum to the respective totals. Does not estimate insensible losses. Based on Acheampong and Vincent 2015 methodology.","failureModes":["Intake addends (oral + IV) do not sum to total_intake_ml — validation error","Output addends (urine + ultrafiltration + drain + GI) do not sum to total_output_ml — validation error","Values out of range (negative or exceeding 100000 mL) — rejected","Missing required total_intake_ml or total_output_ml — 400 error","Payment not provided or insufficient — 402 error"],"whenToPreferThis":"Use this endpoint when you need a deterministic, citation-backed arithmetic computation of net fluid balance (intake minus output) following the Acheampong and Vincent 2015 definition, with optional component-level breakdown validation. Prefer this over manual arithmetic when you need server-side validation that intake and output addends are internally consistent. Do not use it to estimate insensible losses, to order fluids or diuretics, or to measure I/O — those must be supplied by the caller.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:42:54.733Z","isFirstParty":false}