{"uid":"cap_878RDxMHoJg3HCmeBcBc5","slug":"mazzaferro-up-to-seven-hcc-criterion-calculator-4c4cdd97","name":"Mazzaferro Up-to-Seven HCC Criterion Calculator","description":"Mazzaferro 2009 Up-to-seven: meets_up_to_seven is true iff tumor_count plus largest_cm is 7 or less and microvascular_invasion is false. Returns the boolean and size_number_sum, not a 5-year survival percentage. Pathology/explant-style inputs as assigned by the caller; magent does not interpret imaging or histology. Not Milan, not Metroticket 2.0 AFP criteria, not a contour calculator, not a medical device, and not a transplant listing.","url":"https://api.magentlab.com/api/calc/up_to_7","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":["tumor_count","largest_cm","microvascular_invasion"],"properties":{"largest_cm":{"type":"number","description":"Largest tumor diameter in centimetres (0.1-30) as assigned by the caller. Added to tumor_count as size_number_sum. Equality at 7.0 meets; 7.1 fails. magent does not interpret imaging or histology."},"tumor_count":{"type":"integer","description":"Number of HCC nodules (integer 1-20) as assigned by the caller. Added to largest_cm as size_number_sum. The Up-to-seven ceiling is size_number_sum <= 7. magent does not interpret imaging or histology."},"microvascular_invasion":{"type":"boolean","description":"Microvascular invasion as assigned by the caller (pathology/explant-style). true fails Up-to-seven even when size_number_sum is 7 or less. true or false. magent does not interpret imaging or histology."}}}},"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_VrQr-L4X9W5mEJox7f0XD","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":"Evaluates whether a hepatocellular carcinoma (HCC) patient meets the Mazzaferro 2009 Up-to-Seven criterion by checking if tumor_count + largest_cm ≤ 7 and microvascular invasion is absent.","exampleAgentPrompt":"Check whether a patient with 3 HCC nodules, a largest tumor of 3.5 cm, and no microvascular invasion meets the Mazzaferro 2009 Up-to-Seven criterion, and give me the size_number_sum.","exampleUseCases":[{"title":"Post-resection pathology Up-to-Seven check","prompt":"A patient had their HCC resected and pathology shows 2 nodules, the largest measuring 4.8 cm, with microvascular invasion confirmed — do they meet Up-to-Seven, and what is the size-number sum?"},{"title":"Transplant candidate explant review","prompt":"I'm reviewing an explant report: 4 HCC tumors, largest is 2.5 cm, no microvascular invasion found. Run the Mazzaferro Up-to-Seven calculation and tell me if they meet criteria."},{"title":"Borderline case threshold check","prompt":"Does an HCC patient with 5 nodules, largest tumor 2.0 cm, and no microvascular invasion fall within Up-to-Seven? I need the boolean result and the total size-number sum."}],"resultDescription":"Returns a boolean meets_up_to_seven (true if tumor_count + largest_cm ≤ 7 AND microvascular_invasion is false) and the numeric size_number_sum (tumor_count + largest_cm).","failureModes":["Missing required query parameters (tumor_count, largest_cm, microvascular_invasion) returns a 400 error","tumor_count outside integer range 1-20 may be rejected","largest_cm outside range 0.1-30 may be rejected","Incorrect type for microvascular_invasion (non-boolean) causes validation failure","Payment not provided or insufficient USDC results in 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need a programmatic, rule-based check of the Mazzaferro 2009 Up-to-Seven criterion given caller-assigned pathology or explant values. Prefer this over general HCC staging tools when you specifically need the Up-to-Seven boolean and size_number_sum — not Milan criteria, Metroticket 2.0, AFP-based criteria, or survival probability estimates.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:03:05.107Z","isFirstParty":false}