# magent qSOFA Score Calculator

> magent qSOFA Score Calculator 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-15).

Computes the quick Sequential Organ Failure Assessment (qSOFA) score from respiratory rate, systolic blood pressure, and altered mentation status per Seymour 2016.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/qsofa
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/magent-qsofa-score-calculator-8d32fd62
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-EJvOTDn-HewHjPF5s8t8

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-qsofa-score-calculator-8d32fd62
```

Example prompt: Calculate the qSOFA score for a patient with a respiratory rate of 24 breaths per minute, systolic blood pressure of 88 mm Hg, and altered mentation present — I need to know if they hit the threshold.

## When to prefer this

Choose this endpoint when you need a fast, deterministic, published-citation qSOFA score from raw vitals without any LLM interpretation. It implements exactly the Seymour 2016 criteria and is appropriate for clinical decision support pipelines, EMR integrations, or audit-ready scoring where reproducibility and citation accuracy matter. Prefer over general-purpose LLM reasoning for any compliance-sensitive or automated clinical workflow.

## Known failure modes

- Missing required query parameters (respiratory_rate, systolic_mm_hg, altered_mentation) returns an error
- Respiratory rate outside valid range 4-80 may be rejected
- Systolic BP outside valid range 50-250 may be rejected
- altered_mentation not a boolean causes a validation error
- Payment failure or insufficient USDC balance blocks the request

## How this service works

qSOFA from Seymour 2016: respiratory rate ≥22, caller-assigned altered mentation, and systolic BP ≤100 mm Hg; 1 point each, max 3. Deterministic published score with citation; not a diagnosis of sepsis.

## Output

Returns a qSOFA score from 0 to 3, with 1 point each for respiratory rate ≥22 breaths/min, systolic BP ≤100 mm Hg, and caller-assigned altered mentation. Includes the total score and individual component contributions based on the Seymour 2016 criteria.

## 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": [
      "respiratory_rate",
      "systolic_mm_hg",
      "altered_mentation"
     ],
     "properties": {
      "systolic_mm_hg": {
       "type": "number",
       "description": "Systolic blood pressure in mm Hg (50-250). ≤100 scores 1."
      },
      "respiratory_rate": {
       "type": "integer",
       "description": "Respiratory rate in breaths/min (integer 4-80). ≥22 scores 1."
      },
      "altered_mentation": {
       "type": "boolean",
       "description": "Altered mentation as assigned by the caller (GCS <15 in Seymour 2016). true or false. magent does not compute GCS here."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "path": "/api/calc/qsofa",
  "count": 2,
  "items": [
   {
    "score": 0,
    "formula": "qsofa",
    "citation": {
     "id": "seymour-2016",
     "doi": "10.1001/jama.2016.0288",
     "title": "Assessment of Clinical Criteria for Sepsis: For the Third International Consensus Definitions for Sepsis and Septic Shock (Sepsis-3)",
     "source": "JAMA. 2016;315(8):762-774",
     "authors": "Seymour CW, Liu VX, Iwashyna TJ, Brunkhorst FM, Rea TD, Scherag A, Rubenfeld G, Kahn JM, Shankar-Hari M, Singer M, Deutschman CS, Escobar GJ, Angus DC"
    },
    "max_score": 3,
    "components": [
     {
      "value": 16,
      "factor": "respiratory_rate_ge_22",
      "points": 0,
      "present": false
     },
     {
      "factor": "altered_mentation",
      "points": 0,
      "present": false
     },
     {
      "value": 120,
      "factor": "systolic_mm_hg_le_100",
      "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_expression": "qSOFA = respiratory_rate_ge_22 + altered_mentation + systolic_mm_hg_le_100; each 1 if present; max 3"
   },
   {
    "score": 0,
    "formula": "qsofa",
    "citation": {
     "id": "seymour-2016",
     "doi": "10.1001/jama.2016.0288",
     "title": "Assessment of Clinical Criteria for Sepsis: For the Third International Consensus Definitions for Sepsis and Septic Shock (Sepsis-3)",
     "source": "JAMA. 2016;315(8):762-774",
     "authors": "Seymour CW, Liu VX, Iwashyna TJ, Brunkhorst FM, Rea TD, Scherag A, Rubenfeld G, Kahn JM, Shankar-Hari M, Singer M, Deutschman CS, Escobar GJ, Angus DC"
    },
    "max_score": 3,
    "components": [
     {
      "value": 16,
      "factor": "respiratory_rate_ge_22",
      "points": 0,
      "present": false
     },
     {
      "factor": "altered_mentation",
      "points": 0,
      "present": false
     },
     {
      "value": 120,
      "factor": "systolic_mm_hg_le_100",
      "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_expression": "qSOFA = respiratory_rate_ge_22 + altered_mentation + systolic_mm_hg_le_100; each 1 if pre
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magent-qsofa-score-calculator-8d32fd62/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)
