{
  "x402Version": 2,
  "id": 39473,
  "slug": "39473",
  "resource": "https://api.magentlab.com/api/calc/pascal",
  "description": "PASCAL (PFO-Associated Stroke Causal Likelihood; Kent 2021 JAMA Table 1) from a caller-assigned RoPE total (0-10; magent does not recompute RoPE) plus large-shunt and atrial-septal-aneurysm flags. high_rope is RoPE ≥7 (not >7). high_risk_pfo is large shunt and/or ASA. probable if both, possible if exactly one, unlikely if neither. Not a closure order, not RoPE, not ESUS. Trial ages 18-60 are a limitation. magent does not read echocardiography.",
  "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": [
              {
                "atrial_septal_aneurysm": false,
                "large_shunt": true,
                "rope_score": 8
              },
              {
                "atrial_septal_aneurysm": false,
                "large_shunt": true,
                "rope_score": 8
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "Kent DM, Saver JL, Kasner SE, Nelson J, Carroll JD, Chatellier G, Derumeaux G, Furlan AJ, Herrmann HC, Jüni P, Kim JS, Koethe B, Lee PH, Lefebvre B, Mattle HP, Meier B, Reisman M, Smalling RW, Soendergaard L, Song JK, Mas JL, Thaler DE",
                  "doi": "10.1001/jama.2021.20956",
                  "id": "kent-2021",
                  "pmid": "34905030",
                  "source": "JAMA. 2021;326(22):2277-2286",
                  "title": "Heterogeneity of Treatment Effects in an Analysis of Pooled Individual Patient Data From Randomized Trials of Device Closure of Patent Foramen Ovale After Stroke"
                },
                "criteria": [
                  {
                    "factor": "high_rope",
                    "met": true,
                    "value": 8
                  },
                  {
                    "factor": "high_risk_pfo",
                    "met": true
                  }
                ],
                "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": "pascal",
                "formula_expression": "high_rope iff rope_score >= 7; high_risk_pfo iff large_shunt or atrial_septal_aneurysm; probable iff both; possible iff exactly one; unlikely iff neither (Kent 2021 Table 1 PASCAL). magent does not recompute RoPE",
                "high_risk_pfo": true,
                "high_rope": true,
                "pascal_class": "probable",
                "rope_score": 8
              },
              {
                "citation": {
                  "authors": "Kent DM, Saver JL, Kasner SE, Nelson J, Carroll JD, Chatellier G, Derumeaux G, Furlan AJ, Herrmann HC, Jüni P, Kim JS, Koethe B, Lee PH, Lefebvre B, Mattle HP, Meier B, Reisman M, Smalling RW, Soendergaard L, Song JK, Mas JL, Thaler DE",
                  "doi": "10.1001/jama.2021.20956",
                  "id": "kent-2021",
                  "pmid": "34905030",
                  "source": "JAMA. 2021;326(22):2277-2286",
                  "title": "Heterogeneity of Treatment Effects in an Analysis of Pooled Individual Patient Data From Randomized Trials of Device Closure of Patent Foramen Ovale After Stroke"
                },
                "criteria": [
                  {
                    "factor": "high_rope",
                    "met": true,
                    "value": 8
                  },
                  {
                    "factor": "high_risk_pfo",
                    "met": true
                  }
                ],
                "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": "pascal",
                "formula_expression": "high_rope iff rope_score >= 7; high_risk_pfo iff large_shunt or atrial_septal_aneurysm; probable iff both; possible iff exactly one; unlikely iff neither (Kent 2021 Table 1 PASCAL). magent does not recompute RoPE",
                "high_risk_pfo": true,
                "high_rope": true,
                "pascal_class": "probable",
                "rope_score": 8
              }
            ],
            "path": "/api/calc/pascal"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "atrial_septal_aneurysm": {
                          "description": "Atrial septal aneurysm (ASA) as assigned by the caller (Kent 2021 Table 1 high-risk PFO feature). true or false. high_risk_pfo is true if this flag or large_shunt is true. magent does not echo this flag and does not read echocardiography.",
                          "type": "boolean"
                        },
                        "large_shunt": {
                          "description": "Large-sized shunt as assigned by the caller (Kent 2021 Table 1 high-risk PFO feature). true or false. high_risk_pfo is true if this flag or atrial_septal_aneurysm is true. magent does not echo this flag and does not read echocardiography.",
                          "type": "boolean"
                        },
                        "rope_score": {
                          "description": "Caller-assigned RoPE total integer 0-10 (Kent 2013 components already summed; related tool rope). magent does not recompute RoPE. high_rope is true when rope_score is 7 or greater (Kent 2021 Table 1 / NCBI reprint; not greater-than-7 only).",
                          "type": "integer"
                        }
                      },
                      "required": [
                        "rope_score",
                        "large_shunt",
                        "atrial_septal_aneurysm"
                      ],
                      "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": [
    "pascal",
    "pfo",
    "stroke",
    "neurology",
    "rope",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-12T14:48:03.9Z",
  "quality": {
    "calls30d": 4,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-12T14:48:03.754Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "atrial_septal_aneurysm": false,
                  "large_shunt": true,
                  "rope_score": 8
                },
                {
                  "atrial_septal_aneurysm": false,
                  "large_shunt": true,
                  "rope_score": 8
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "Kent DM, Saver JL, Kasner SE, Nelson J, Carroll JD, Chatellier G, Derumeaux G, Furlan AJ, Herrmann HC, Jüni P, Kim JS, Koethe B, Lee PH, Lefebvre B, Mattle HP, Meier B, Reisman M, Smalling RW, Soendergaard L, Song JK, Mas JL, Thaler DE",
                    "doi": "10.1001/jama.2021.20956",
                    "id": "kent-2021",
                    "pmid": "34905030",
                    "source": "JAMA. 2021;326(22):2277-2286",
                    "title": "Heterogeneity of Treatment Effects in an Analysis of Pooled Individual Patient Data From Randomized Trials of Device Closure of Patent Foramen Ovale After Stroke"
                  },
                  "criteria": [
                    {
                      "factor": "high_rope",
                      "met": true,
                      "value": 8
                    },
                    {
                      "factor": "high_risk_pfo",
                      "met": true
                    }
                  ],
                  "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": "pascal",
                  "formula_expression": "high_rope iff rope_score >= 7; high_risk_pfo iff large_shunt or atrial_septal_aneurysm; probable iff both; possible iff exactly one; unlikely iff neither (Kent 2021 Table 1 PASCAL). magent does not recompute RoPE",
                  "high_risk_pfo": true,
                  "high_rope": true,
                  "pascal_class": "probable",
                  "rope_score": 8
                },
                {
                  "citation": {
                    "authors": "Kent DM, Saver JL, Kasner SE, Nelson J, Carroll JD, Chatellier G, Derumeaux G, Furlan AJ, Herrmann HC, Jüni P, Kim JS, Koethe B, Lee PH, Lefebvre B, Mattle HP, Meier B, Reisman M, Smalling RW, Soendergaard L, Song JK, Mas JL, Thaler DE",
                    "doi": "10.1001/jama.2021.20956",
                    "id": "kent-2021",
                    "pmid": "34905030",
                    "source": "JAMA. 2021;326(22):2277-2286",
                    "title": "Heterogeneity of Treatment Effects in an Analysis of Pooled Individual Patient Data From Randomized Trials of Device Closure of Patent Foramen Ovale After Stroke"
                  },
                  "criteria": [
                    {
                      "factor": "high_rope",
                      "met": true,
                      "value": 8
                    },
                    {
                      "factor": "high_risk_pfo",
                      "met": true
                    }
                  ],
                  "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": "pascal",
                  "formula_expression": "high_rope iff rope_score >= 7; high_risk_pfo iff large_shunt or atrial_septal_aneurysm; probable iff both; possible iff exactly one; unlikely iff neither (Kent 2021 Table 1 PASCAL). magent does not recompute RoPE",
                  "high_risk_pfo": true,
                  "high_rope": true,
                  "pascal_class": "probable",
                  "rope_score": 8
                }
              ],
              "path": "/api/calc/pascal"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "atrial_septal_aneurysm": {
                            "description": "Atrial septal aneurysm (ASA) as assigned by the caller (Kent 2021 Table 1 high-risk PFO feature). true or false. high_risk_pfo is true if this flag or large_shunt is true. magent does not echo this flag and does not read echocardiography.",
                            "type": "boolean"
                          },
                          "large_shunt": {
                            "description": "Large-sized shunt as assigned by the caller (Kent 2021 Table 1 high-risk PFO feature). true or false. high_risk_pfo is true if this flag or atrial_septal_aneurysm is true. magent does not echo this flag and does not read echocardiography.",
                            "type": "boolean"
                          },
                          "rope_score": {
                            "description": "Caller-assigned RoPE total integer 0-10 (Kent 2013 components already summed; related tool rope). magent does not recompute RoPE. high_rope is true when rope_score is 7 or greater (Kent 2021 Table 1 / NCBI reprint; not greater-than-7 only).",
                            "type": "integer"
                          }
                        },
                        "required": [
                          "rope_score",
                          "large_shunt",
                          "atrial_septal_aneurysm"
                        ],
                        "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"
  }
}