{"uid":"cap_eItsnY8ZwxMPHY2L-RSQo","slug":"magent-shanghai-score-for-brugada-syndrome-d55a40e4","name":"magent Shanghai Score for Brugada Syndrome","description":"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.","url":"https://api.magentlab.com/api/calc/shanghai","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":["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"],"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_GpFPCq_AOIU7hD2tb8JH_","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":"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.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Cardiology clinic BrS risk stratification","prompt":"I have a patient with a drug-converted type 2/3 Brugada ECG, a history of unexplained syncope of unclear origin, no relevant family history, and no known pathogenic mutation — what is their Shanghai score and risk band?"},{"title":"Genetic testing counseling support","prompt":"A patient has a fever-induced type 1 Brugada ECG and was just found to have a probable pathogenic BrS gene mutation — no clinical events, no family history. Can you compute their Shanghai score for me?"},{"title":"Family screening follow-up scoring","prompt":"We're evaluating a relative of a Brugada patient: they had no cardiac events, no suggestive ECG on drug challenge (so I'll use drug-converted type 2/3 as the highest ECG finding), and there's a family history of suspicious sudden cardiac death. Calculate the Shanghai score please."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:04:35.321Z","isFirstParty":false}