# PASCAL PFO-Associated Stroke Causal Likelihood Calculator

> PASCAL PFO-Associated Stroke Causal Likelihood Calculator is a paid API for AI agents from api.magentlab.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Computes PASCAL causal likelihood (probable/possible/unlikely) for PFO-associated stroke from a caller-supplied RoPE score plus large-shunt and atrial-septal-aneurysm flags

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/pascal
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pascal-pfo-associated-stroke-causal-likelihood-calculator-724359d0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gd_-WSycPFjYQISLzAJ59

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability pascal-pfo-associated-stroke-causal-likelihood-calculator-724359d0
```

Example prompt: My patient had a cryptogenic stroke and echo shows a large shunt but no atrial septal aneurysm — the neurologist assigned a RoPE score of 8. Can you run the PASCAL classification to see if the stroke is probable, possible, or unlikely to be PFO-related?

## When to prefer this

Use this endpoint when you have already computed the RoPE score externally (e.g. via the companion 'rope' tool on api.magentlab.com) and have echocardiographic findings (large shunt and ASA status) assigned by a clinician, and need to apply the Kent 2021 PASCAL Table 1 classification to determine PFO-associated stroke causal likelihood. Prefer this over manual lookup when automating stroke workup pipelines or building clinical decision support agents. Not appropriate if you need to compute RoPE from components, perform echocardiographic interpretation, or if the patient is outside the 18–60 age range studied in closure trials.

## Known failure modes

- Missing required parameters (rope_score, large_shunt, or atrial_septal_aneurysm) returns a validation error
- rope_score outside 0-10 integer range may return an error or undefined behavior
- Caller passes a non-integer rope_score (e.g. float) which may be rejected
- Misinterpretation: endpoint does not compute RoPE itself — caller must pre-calculate and supply it
- Payment failure (x402) if USDC balance is insufficient or payment header is missing

## How this service works

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.

## Output

Returns the PASCAL causal likelihood category (probable, possible, or unlikely), a high_rope flag (true when RoPE ≥7), and a high_risk_pfo flag (true when large shunt and/or atrial septal aneurysm is present), based on Kent 2021 JAMA Table 1 logic.

## Request schema (JSON Schema)

```json
{
 "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": [
      "rope_score",
      "large_shunt",
      "atrial_septal_aneurysm"
     ],
     "properties": {
      "rope_score": {
       "type": "integer",
       "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)."
      },
      "large_shunt": {
       "type": "boolean",
       "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."
      },
      "atrial_septal_aneurysm": {
       "type": "boolean",
       "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."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pascal-pfo-associated-stroke-causal-likelihood-calculator-724359d0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.magentlab.com](https://www.zero.xyz/host/api.magentlab.com/llms.txt)
