# RCVS2 Score Calculator (Rocha 2019)

> RCVS2 Score Calculator (Rocha 2019) 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).

Computes the Rocha 2019 RCVS2 diagnostic score for Reversible Cerebral Vasoconstriction Syndrome from five caller-assigned clinical items

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/rcvs2
- 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/rcvs2-score-calculator-rocha-2019-02619297
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_H9HbpKyQJpDFKx5T4JBJh

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 rcvs2-score-calculator-rocha-2019-02619297
```

Example prompt: Run an RCVS2 score for a female patient who presented with a thunderclap headache, has a vasoconstrictive trigger identified, no intracranial ICA involvement, and subarachnoid hemorrhage seen on imaging.

## When to prefer this

Use this endpoint when you need a fast, deterministic computation of the Rocha 2019 RCVS2 score from already-assessed clinical items. It is ideal for clinical decision support pipelines, EMR integrations, or agentic neurology workflows where the five RCVS2 items (thunderclap headache, ICA involvement, vasoconstrictive trigger, sex, SAH) have already been determined by a clinician and need to be scored consistently. Do not use it for imaging interpretation, history-taking, PACNS management advice, or as a standalone diagnostic tool.

## Known failure modes

- Missing required query parameters (thunderclap_headache, intracranial_ica_involvement, vasoconstrictive_trigger, sex, sah) returns a validation error
- Invalid enum value for sex (not 'female' or 'male') causes a schema error
- Non-boolean values for boolean parameters cause rejection
- Network or payment failure (x402) if USDC payment of $0.005 is not settled
- Caller-assigned inputs that do not accurately reflect clinical findings will produce a score that does not reflect the patient's true clinical picture

## How this service works

Rocha 2019 RCVS2 score from five caller-assigned items: recurrent or single thunderclap headache (+5), intracranial ICA involvement (-2), vasoconstrictive trigger (+3), female sex (+1), subarachnoid hemorrhage (+1). Range -2 to 10. Score >=5 supports RCVS; <=2 against; 3-4 equivocal. magent does not read angiograms. Not a diagnosis and not PACNS treatment advice. Not a medical device.

## Output

Returns an integer RCVS2 score ranging from -2 to 10, computed by summing: +5 for thunderclap headache, -2 for intracranial ICA involvement, +3 for vasoconstrictive trigger, +1 for female sex, +1 for subarachnoid hemorrhage. A score ≥5 supports RCVS, ≤2 argues against RCVS, and 3–4 is equivocal. The endpoint does not interpret imaging, take clinical histories, or provide diagnoses.

## 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": [
      "thunderclap_headache",
      "intracranial_ica_involvement",
      "vasoconstrictive_trigger",
      "sex",
      "sah"
     ],
     "properties": {
      "sah": {
       "type": "boolean",
       "description": "Subarachnoid hemorrhage on imaging as assigned by the caller (Rocha 2019). true scores 1. magent does not interpret imaging."
      },
      "sex": {
       "enum": [
        "female",
        "male"
       ],
       "type": "string",
       "description": "female or male (Rocha 2019). Female scores 1; male scores 0."
      },
      "thunderclap_headache": {
       "type": "boolean",
       "description": "Recurrent or single thunderclap headache as assigned by the caller (Rocha 2019). Both patterns score 5; the paper does not split them. true or false. magent does not take a headache history."
      },
      "vasoconstrictive_trigger": {
       "type": "boolean",
       "description": "Identified vasoconstrictive trigger as assigned by the caller (Rocha 2019). true scores 3. magent does not take a trigger history."
      },
      "intracranial_ica_involvement": {
       "type": "boolean",
       "description": "Intracranial internal carotid artery involvement as assigned by the caller (Rocha 2019). true scores -2. magent does not read angiograms."
      }
     }
    }
   },
   "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/rcvs2-score-calculator-rocha-2019-02619297/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)
