# magent Shanghai Score for Brugada Syndrome

> magent Shanghai Score for Brugada Syndrome 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-14).

Calculates the Antzelevitch 2016 Shanghai Score (Table 2) for Brugada syndrome risk stratification from caller-supplied ECG pattern, clinical history, family history, and genetic mutation status.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/shanghai
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/magent-shanghai-score-for-brugada-syndrome-d55a40e4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eItsnY8ZwxMPHY2L-RSQo

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 magent-shanghai-score-for-brugada-syndrome-d55a40e4
```

Example prompt: Calculate the Shanghai score for a patient with a spontaneous type 1 Brugada ECG pattern, a history of arrhythmic syncope, a first-degree relative with definite Brugada syndrome, and a confirmed pathogenic SCN5A mutation.

## When to prefer this

Use this endpoint when you need a structured, reproducible computation of the Antzelevitch 2016 Shanghai Score (Table 2) for Brugada syndrome, and you have already interpreted the ECG pattern and clinical history yourself. Prefer this over general clinical calculators when you specifically need the Shanghai BrS scoring system — not the ERS Table 5 score or other Brugada criteria. Best suited for cardiology decision-support workflows where the caller provides pre-assessed findings.

## Known failure modes

- Missing required ecg_pattern parameter returns validation error
- Invalid enum value for ecg_pattern, clinical, or family fields returns 400 error
- Score below 2 may return result with no risk band classification
- Network timeout or API unavailability returns HTTP 5xx

## How this service works

Antzelevitch 2016 Shanghai Score System (Table 2) for Brugada syndrome. Caller assigns ECG (spontaneous type 1 3.5, fever type 1 3, drug-converted type 2/3 2; required; highest only), clinical history (0–3), family history (0–2), and pathogenic BrS-gene mutation (0.5). Bands: probable_definite ≥3.5, possible 2–3. magent does not read tracings. Not a diagnosis or ICD indication. Not the ERS Table 5 score.

## Output

Returns the computed total Shanghai score (numeric sum of assigned component values) and a risk band classification: 'probable_definite' (score ≥3.5) or 'possible' (score 2–3). Does not include scores below 2 as diagnostically relevant per the scoring system. Does not read ECG tracings or interpret genetic results directly.

## 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": [
      "ecg_pattern",
      "pathogenic_mutation"
     ],
     "properties": {
      "family": {
       "enum": [
        "relative_definite_brs",
        "suspicious_scd",
        "unexplained_scd_under_45",
        "none"
       ],
       "type": "string",
       "description": "Highest Table 2 family-history item as assigned by the caller (Antzelevitch 2016). relative_definite_brs 2; suspicious_scd 1; unexplained_scd_under_45 0.5; none 0. Optional; omitted defaults to none. Award once (highest item only). magent does not take a pedigree."
      },
      "clinical": {
       "enum": [
        "vf_arrest",
        "nocturnal_agonal",
        "arrhythmic_syncope",
        "unclear_syncope",
        "af_under_30",
        "none"
       ],
       "type": "string",
       "description": "Highest Table 2 clinical-history item as assigned by the caller (Antzelevitch 2016). vf_arrest 3; nocturnal_agonal 2; arrhythmic_syncope 2; unclear_syncope 1; af_under_30 0.5; none 0. Optional; omitted defaults to none. Award once (highest item only). magent does not take a history."
      },
      "ecg_pattern": {
       "enum": [
        "spontaneous_type1",
        "fever_type1",
        "drug_converted_type2_3"
       ],
       "type": "string",
       "description": "Highest Table 2 ECG finding as assigned by the caller (Antzelevitch 2016). spontaneous_type1 scores 3.5; fever_type1 scores 3; drug_converted_type2_3 scores 2. At least one ECG finding is required. Award once (highest item only). magent does not read tracings."
      },
      "pathogenic_mutation": {
       "type": "boolean",
       "description": "Probable pathogenic mutation in a BrS susceptibility gene (Antzelevitch 2016 Table 2 IV). true scores 0.5; false scores 0. magent does not interpret sequencing."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "pro
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magent-shanghai-score-for-brugada-syndrome-d55a40e4/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)
