{
  "x402Version": 2,
  "id": 38950,
  "slug": "38950",
  "resource": "https://api.magentlab.com/api/calc/prague",
  "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.",
  "type": "http",
  "serviceName": "magent",
  "resourceType": "Agent Service",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 600
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "iconUrl": "https://api.magentlab.com/favicon.ico",
        "input": {
          "body": {
            "items": [
              {
                "c_cm": 0,
                "m_cm": 0
              },
              {
                "c_cm": 0,
                "m_cm": 0
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "c_cm": 0,
                "citation": {
                  "authors": "Sharma P, Dent J, Armstrong D, et al.",
                  "doi": "10.1053/j.gastro.2006.08.032",
                  "id": "sharma-2006",
                  "pmid": "17101315",
                  "source": "Gastroenterology. 2006;131(5):1392-1399",
                  "title": "The development and validation of an endoscopic grading system for Barrett's esophagus: the Prague C & M criteria."
                },
                "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                "formula": "prague",
                "formula_expression": "prague is C{c_cm}M{m_cm} (no spaces) from caller-assigned circumferential extent c_cm (cm of visualized Barrett above the gastroesophageal junction, integer 0-20) and maximal extent m_cm (cm above GEJ, integer 0-20); m_cm must be >= c_cm; C=0 is no circumferential Barrett (tongues only); Sharma 2006 Prague C and M; not a Barrett diagnosis (histology required); magent does not perform endoscopy",
                "m_cm": 0,
                "prague": "C0M0"
              },
              {
                "c_cm": 0,
                "citation": {
                  "authors": "Sharma P, Dent J, Armstrong D, et al.",
                  "doi": "10.1053/j.gastro.2006.08.032",
                  "id": "sharma-2006",
                  "pmid": "17101315",
                  "source": "Gastroenterology. 2006;131(5):1392-1399",
                  "title": "The development and validation of an endoscopic grading system for Barrett's esophagus: the Prague C & M criteria."
                },
                "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                "formula": "prague",
                "formula_expression": "prague is C{c_cm}M{m_cm} (no spaces) from caller-assigned circumferential extent c_cm (cm of visualized Barrett above the gastroesophageal junction, integer 0-20) and maximal extent m_cm (cm above GEJ, integer 0-20); m_cm must be >= c_cm; C=0 is no circumferential Barrett (tongues only); Sharma 2006 Prague C and M; not a Barrett diagnosis (histology required); magent does not perform endoscopy",
                "m_cm": 0,
                "prague": "C0M0"
              }
            ],
            "path": "/api/calc/prague"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "c_cm": {
                          "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.",
                          "type": "integer"
                        },
                        "m_cm": {
                          "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.",
                          "type": "integer"
                        }
                      },
                      "required": [
                        "c_cm",
                        "m_cm"
                      ],
                      "type": "object"
                    },
                    "maxItems": 25,
                    "minItems": 1,
                    "type": "array"
                  }
                },
                "required": [
                  "items"
                ],
                "type": "object"
              },
              "headers": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "method": {
                "const": "POST",
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "prague",
    "barrett",
    "endoscopy",
    "gi",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T11:27:02.399Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T11:27:02.261Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "c_cm": 0,
                  "m_cm": 0
                },
                {
                  "c_cm": 0,
                  "m_cm": 0
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "c_cm": 0,
                  "citation": {
                    "authors": "Sharma P, Dent J, Armstrong D, et al.",
                    "doi": "10.1053/j.gastro.2006.08.032",
                    "id": "sharma-2006",
                    "pmid": "17101315",
                    "source": "Gastroenterology. 2006;131(5):1392-1399",
                    "title": "The development and validation of an endoscopic grading system for Barrett's esophagus: the Prague C & M criteria."
                  },
                  "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                  "formula": "prague",
                  "formula_expression": "prague is C{c_cm}M{m_cm} (no spaces) from caller-assigned circumferential extent c_cm (cm of visualized Barrett above the gastroesophageal junction, integer 0-20) and maximal extent m_cm (cm above GEJ, integer 0-20); m_cm must be >= c_cm; C=0 is no circumferential Barrett (tongues only); Sharma 2006 Prague C and M; not a Barrett diagnosis (histology required); magent does not perform endoscopy",
                  "m_cm": 0,
                  "prague": "C0M0"
                },
                {
                  "c_cm": 0,
                  "citation": {
                    "authors": "Sharma P, Dent J, Armstrong D, et al.",
                    "doi": "10.1053/j.gastro.2006.08.032",
                    "id": "sharma-2006",
                    "pmid": "17101315",
                    "source": "Gastroenterology. 2006;131(5):1392-1399",
                    "title": "The development and validation of an endoscopic grading system for Barrett's esophagus: the Prague C & M criteria."
                  },
                  "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                  "formula": "prague",
                  "formula_expression": "prague is C{c_cm}M{m_cm} (no spaces) from caller-assigned circumferential extent c_cm (cm of visualized Barrett above the gastroesophageal junction, integer 0-20) and maximal extent m_cm (cm above GEJ, integer 0-20); m_cm must be >= c_cm; C=0 is no circumferential Barrett (tongues only); Sharma 2006 Prague C and M; not a Barrett diagnosis (histology required); magent does not perform endoscopy",
                  "m_cm": 0,
                  "prague": "C0M0"
                }
              ],
              "path": "/api/calc/prague"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "c_cm": {
                            "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.",
                            "type": "integer"
                          },
                          "m_cm": {
                            "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.",
                            "type": "integer"
                          }
                        },
                        "required": [
                          "c_cm",
                          "m_cm"
                        ],
                        "type": "object"
                      },
                      "maxItems": 25,
                      "minItems": 1,
                      "type": "array"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                },
                "headers": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "method": {
                  "const": "POST",
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.magentlab.com",
    "manifest_name": "api.magentlab.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}