{"uid":"cap_QVy889kz4JlmEhzBuHkRQ","slug":"prague-c-m-barrett-s-esophagus-classifier-f1de982b","name":"Prague C&M Barrett's Esophagus Classifier","description":"Sharma 2006 Prague C and M. Caller-assigned circumferential c_cm and maximal m_cm (integers 0-20 cm above the gastroesophageal junction). Returns C{c}M{m} (for example C2M5). M must be ≥ C. C=0 is tongues only (no circumferential Barrett). Not a Barrett diagnosis; histology is required. Not Los Angeles oesophagitis grading. magent does not perform endoscopy. Not a medical device.","url":"https://api.magentlab.com/api/calc/prague","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":["c_cm","m_cm"],"properties":{"c_cm":{"type":"integer","description":"Caller-assigned circumferential extent of visualized Barrett mucosa in centimetres above the gastroesophageal junction (integer 0-20). C=0 is allowed (no circumferential Barrett; tongues only). magent does not perform endoscopy."},"m_cm":{"type":"integer","description":"Caller-assigned maximal extent of visualized Barrett mucosa in centimetres above the gastroesophageal junction (integer 0-20). Must be greater than or equal to c_cm. magent does not perform endoscopy."}}}},"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_oxUHWbT63rzV3hjVfqhFW","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":"Formats caller-supplied circumferential and maximal Barrett's mucosa extents into a standardized Prague C&M notation string (e.g. C2M5).","exampleAgentPrompt":"During an endoscopy report, I documented circumferential Barrett's mucosa extending 3 cm above the gastroesophageal junction and maximal extent of 6 cm — can you give me the Prague C&M classification string for those findings?","exampleUseCases":[{"title":"Endoscopy report documentation","prompt":"I need to record a Barrett's segment for a patient — circumferential extent is 2 cm and maximal extent is 4 cm above the GE junction. What's the Prague C&M notation I should write in the report?"},{"title":"Tongues-only Barrett's encoding","prompt":"The endoscopy showed no circumferential Barrett's segment, just tongues extending 3 cm. What's the Prague classification code for that?"},{"title":"Research data standardization","prompt":"I have a spreadsheet of Barrett's esophagus measurements with c_cm values of 1 and m_cm values of 5 — convert those into the Prague C&M formatted string for our database."}],"resultDescription":"A single Prague C&M notation string (e.g. 'C2M5') encoding the caller-supplied circumferential (C) and maximal (M) Barrett's mucosa extents. The format follows Sharma 2006 Prague consensus criteria. No diagnosis is made; histology confirmation is still required.","failureModes":["m_cm less than c_cm — invalid input, M must be ≥ C","c_cm or m_cm outside 0–20 integer range — out of bounds error","missing required query parameters c_cm or m_cm — 400 bad request","non-integer values for c_cm or m_cm — schema validation error","network/payment failure (x402 payment required or insufficient funds)"],"whenToPreferThis":"Use this endpoint when you need to encode Barrett's esophagus endoscopic measurements into the internationally standardized Prague C&M notation string per Sharma 2006 consensus criteria. Prefer this over manual formatting to ensure correct validation (M ≥ C constraint, 0–20 cm range). Not appropriate for Los Angeles esophagitis grading, Barrett's diagnosis, or any situation where actual endoscopy or histologic interpretation is needed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:56:58.650Z","isFirstParty":false}