{
  "x402Version": 2,
  "id": 39441,
  "slug": "39441",
  "resource": "https://api.magentlab.com/api/calc/rcvs2",
  "description": "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.",
  "type": "http",
  "serviceName": "magent",
  "resourceType": "Agent Service",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 600
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "iconUrl": "https://api.magentlab.com/favicon.ico",
        "input": {
          "body": {
            "items": [
              {
                "intracranial_ica_involvement": false,
                "sah": false,
                "sex": "male",
                "thunderclap_headache": false,
                "vasoconstrictive_trigger": false
              },
              {
                "intracranial_ica_involvement": false,
                "sah": false,
                "sex": "male",
                "thunderclap_headache": false,
                "vasoconstrictive_trigger": false
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "band": "against",
                "citation": {
                  "authors": "Rocha EA, Topcuoglu MA, Silva GS, Singhal AB",
                  "doi": "10.1212/WNL.0000000000006917",
                  "id": "rocha-2019",
                  "pmid": "30635475",
                  "source": "Neurology. 2019;92(7):e639-e647",
                  "title": "RCVS2 score and diagnostic approach for reversible cerebral vasoconstriction syndrome"
                },
                "components": [
                  {
                    "factor": "thunderclap_headache",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "intracranial_ica_involvement",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "vasoconstrictive_trigger",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "sex",
                    "points": 0,
                    "present": false,
                    "value": "male"
                  },
                  {
                    "factor": "sah",
                    "points": 0,
                    "present": false
                  }
                ],
                "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                "formula": "rcvs2",
                "formula_expression": "RCVS2 = thunderclap_headache (5 if recurrent or single) + intracranial_ica_involvement (-2) + vasoconstrictive_trigger (3) + female (1) + sah (1); Rocha 2019; range -2 to 10; >=5 supports RCVS, <=2 against, 3-4 equivocal",
                "max_score": 10,
                "score": 0
              },
              {
                "band": "against",
                "citation": {
                  "authors": "Rocha EA, Topcuoglu MA, Silva GS, Singhal AB",
                  "doi": "10.1212/WNL.0000000000006917",
                  "id": "rocha-2019",
                  "pmid": "30635475",
                  "source": "Neurology. 2019;92(7):e639-e647",
                  "title": "RCVS2 score and diagnostic approach for reversible cerebral vasoconstriction syndrome"
                },
                "components": [
                  {
                    "factor": "thunderclap_headache",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "intracranial_ica_involvement",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "vasoconstrictive_trigger",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "sex",
                    "points": 0,
                    "present": false,
                    "value": "male"
                  },
                  {
                    "factor": "sah",
                    "points": 0,
                    "present": false
                  }
                ],
                "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                "formula": "rcvs2",
                "formula_expression": "RCVS2 = thunderclap_headache (5 if recurrent or single) + intracranial_ica_involvement (-2) + vasoconstrictive_trigger (3) + female (1) + sah (1); Rocha 2019; range -2 to 10; >=5 supports RCVS, <=2 against, 3-4 equivocal",
                "max_score": 10,
                "score": 0
              }
            ],
            "path": "/api/calc/rcvs2"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "intracranial_ica_involvement": {
                          "description": "Intracranial internal carotid artery involvement as assigned by the caller (Rocha 2019). true scores -2. magent does not read angiograms.",
                          "type": "boolean"
                        },
                        "sah": {
                          "description": "Subarachnoid hemorrhage on imaging as assigned by the caller (Rocha 2019). true scores 1. magent does not interpret imaging.",
                          "type": "boolean"
                        },
                        "sex": {
                          "description": "female or male (Rocha 2019). Female scores 1; male scores 0.",
                          "enum": [
                            "female",
                            "male"
                          ],
                          "type": "string"
                        },
                        "thunderclap_headache": {
                          "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.",
                          "type": "boolean"
                        },
                        "vasoconstrictive_trigger": {
                          "description": "Identified vasoconstrictive trigger as assigned by the caller (Rocha 2019). true scores 3. magent does not take a trigger history.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "thunderclap_headache",
                        "intracranial_ica_involvement",
                        "vasoconstrictive_trigger",
                        "sex",
                        "sah"
                      ],
                      "type": "object"
                    },
                    "maxItems": 25,
                    "minItems": 1,
                    "type": "array"
                  }
                },
                "required": [
                  "items"
                ],
                "type": "object"
              },
              "headers": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "method": {
                "const": "POST",
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "rcvs2",
    "rcvs",
    "neurology",
    "thunderclap",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-12T14:52:46.174Z",
  "quality": {
    "calls30d": 4,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-12T14:52:46.056Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "intracranial_ica_involvement": false,
                  "sah": false,
                  "sex": "male",
                  "thunderclap_headache": false,
                  "vasoconstrictive_trigger": false
                },
                {
                  "intracranial_ica_involvement": false,
                  "sah": false,
                  "sex": "male",
                  "thunderclap_headache": false,
                  "vasoconstrictive_trigger": false
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "band": "against",
                  "citation": {
                    "authors": "Rocha EA, Topcuoglu MA, Silva GS, Singhal AB",
                    "doi": "10.1212/WNL.0000000000006917",
                    "id": "rocha-2019",
                    "pmid": "30635475",
                    "source": "Neurology. 2019;92(7):e639-e647",
                    "title": "RCVS2 score and diagnostic approach for reversible cerebral vasoconstriction syndrome"
                  },
                  "components": [
                    {
                      "factor": "thunderclap_headache",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "intracranial_ica_involvement",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "vasoconstrictive_trigger",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "sex",
                      "points": 0,
                      "present": false,
                      "value": "male"
                    },
                    {
                      "factor": "sah",
                      "points": 0,
                      "present": false
                    }
                  ],
                  "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                  "formula": "rcvs2",
                  "formula_expression": "RCVS2 = thunderclap_headache (5 if recurrent or single) + intracranial_ica_involvement (-2) + vasoconstrictive_trigger (3) + female (1) + sah (1); Rocha 2019; range -2 to 10; >=5 supports RCVS, <=2 against, 3-4 equivocal",
                  "max_score": 10,
                  "score": 0
                },
                {
                  "band": "against",
                  "citation": {
                    "authors": "Rocha EA, Topcuoglu MA, Silva GS, Singhal AB",
                    "doi": "10.1212/WNL.0000000000006917",
                    "id": "rocha-2019",
                    "pmid": "30635475",
                    "source": "Neurology. 2019;92(7):e639-e647",
                    "title": "RCVS2 score and diagnostic approach for reversible cerebral vasoconstriction syndrome"
                  },
                  "components": [
                    {
                      "factor": "thunderclap_headache",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "intracranial_ica_involvement",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "vasoconstrictive_trigger",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "sex",
                      "points": 0,
                      "present": false,
                      "value": "male"
                    },
                    {
                      "factor": "sah",
                      "points": 0,
                      "present": false
                    }
                  ],
                  "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                  "formula": "rcvs2",
                  "formula_expression": "RCVS2 = thunderclap_headache (5 if recurrent or single) + intracranial_ica_involvement (-2) + vasoconstrictive_trigger (3) + female (1) + sah (1); Rocha 2019; range -2 to 10; >=5 supports RCVS, <=2 against, 3-4 equivocal",
                  "max_score": 10,
                  "score": 0
                }
              ],
              "path": "/api/calc/rcvs2"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "intracranial_ica_involvement": {
                            "description": "Intracranial internal carotid artery involvement as assigned by the caller (Rocha 2019). true scores -2. magent does not read angiograms.",
                            "type": "boolean"
                          },
                          "sah": {
                            "description": "Subarachnoid hemorrhage on imaging as assigned by the caller (Rocha 2019). true scores 1. magent does not interpret imaging.",
                            "type": "boolean"
                          },
                          "sex": {
                            "description": "female or male (Rocha 2019). Female scores 1; male scores 0.",
                            "enum": [
                              "female",
                              "male"
                            ],
                            "type": "string"
                          },
                          "thunderclap_headache": {
                            "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.",
                            "type": "boolean"
                          },
                          "vasoconstrictive_trigger": {
                            "description": "Identified vasoconstrictive trigger as assigned by the caller (Rocha 2019). true scores 3. magent does not take a trigger history.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "thunderclap_headache",
                          "intracranial_ica_involvement",
                          "vasoconstrictive_trigger",
                          "sex",
                          "sah"
                        ],
                        "type": "object"
                      },
                      "maxItems": 25,
                      "minItems": 1,
                      "type": "array"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                },
                "headers": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "method": {
                  "const": "POST",
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.magentlab.com",
    "manifest_name": "api.magentlab.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}