# 2HELPS2B Score Calculator (Struck 2017)

> 2HELPS2B Score Calculator (Struck 2017) 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-13).

Computes the 2HELPS2B score for estimating probable seizure risk from EEG pattern features pre-assigned by a clinician, returning a total score and associated seizure probability.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/2helps2b
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2helps2b-score-calculator-struck-2017-0ebf68d7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7dch6slh7M_QvFW3wv28i

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 2helps2b-score-calculator-struck-2017-0ebf68d7
```

Example prompt: Calculate the 2HELPS2B seizure risk score for a patient who has BIRDs, no LPD/LRDA/BIPD, a prior seizure, no sporadic epileptiform discharges, frequency greater than 2 Hz, and no plus features — what's the total score and estimated seizure probability?

## When to prefer this

Use this endpoint when a clinician or clinical decision support system has already interpreted the EEG and needs to arithmetically apply the Struck 2017 2HELPS2B scoring formula to pre-assigned binary features. Prefer this over manual calculation when building automated neurology workflows, ICU decision support agents, or documentation tools that must reliably produce the published seizure risk percentage without arithmetic error. Do not use this endpoint to interpret raw EEG signals — it accepts only pre-classified flags.

## Known failure modes

- Missing required boolean parameter returns a 400 error
- Non-boolean value passed for a flag field causes schema validation failure
- Network timeout if the API is temporarily unavailable
- Score of 6 or 7 both map to >95% — no finer-grained probability is returned at the top range

## How this service works

Struck 2017 2HELPS2B: BIRDs 2 points; LPD or LRDA or BIPD, prior seizure, sporadic epileptiform discharges, frequency >2.0 Hz, and plus features 1 point each. Max 7. Published probable seizure risk: 0→5%, 1→12%, 2→27%, 3→50%, 4→73%, 5→88%, 6–7→>95%. Not a seizure diagnosis or monitoring-duration protocol. magent does not read EEG.

## Output

Returns a numeric 2HELPS2B total score (0–7) derived from the submitted boolean flags, along with the published probable seizure risk percentage corresponding to that score (e.g., score 0→5%, 1→12%, 2→27%, 3→50%, 4→73%, 5→88%, 6–7→>95%). Does not include EEG waveform interpretation or a clinical diagnosis.

## 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": [
      "birds",
      "lpd_lrda_bipd",
      "prior_seizure",
      "sporadic_epileptiform",
      "frequency_gt_2hz",
      "plus_features"
     ],
     "properties": {
      "birds": {
       "type": "boolean",
       "description": "Brief (ictal) rhythmic discharges (BIRDs) as assigned by the caller (Struck 2017). true scores 2. magent does not read EEG."
      },
      "lpd_lrda_bipd": {
       "type": "boolean",
       "description": "LPD or LRDA or BIPD as assigned by the caller (Struck 2017). true scores 1. magent does not read EEG."
      },
      "plus_features": {
       "type": "boolean",
       "description": "Plus features (superimposed rhythmic, sharp, or fast activity) as assigned by the caller (Struck 2017). true scores 1. magent does not read EEG."
      },
      "prior_seizure": {
       "type": "boolean",
       "description": "Prior seizure, acute or remote, as assigned by the caller (Struck 2017). true scores 1."
      },
      "frequency_gt_2hz": {
       "type": "boolean",
       "description": "Frequency >2.0 Hz for any periodic or rhythmic pattern as assigned by the caller (Struck 2017). true scores 1. magent does not read EEG."
      },
      "sporadic_epileptiform": {
       "type": "boolean",
       "description": "Sporadic epileptiform discharges as assigned by the caller (Struck 2017). true scores 1. magent does not read EEG."
      }
     }
    }
   },
   "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/2helps2b-score-calculator-struck-2017-0ebf68d7/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)
