# Shapiro 2008 Blood Culture Rule (magent)

> Shapiro 2008 Blood Culture Rule (magent) 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).

Evaluates the Shapiro 2008 criteria to determine whether a blood culture is indicated based on major and minor clinical and laboratory findings.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/shapiro
- 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/shapiro-2008-blood-culture-rule-magent-a2fa2422
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gtcCoy2-JU39sd340axAA

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 shapiro-2008-blood-culture-rule-magent-a2fa2422
```

Example prompt: My patient is 70 years old, temperature 38.6°C, WBC 20k, bands 8%, platelets 130k, creatinine 2.2, no catheter, no suspected endocarditis, has chills but no vomiting or hypotension, neutrophils 75% — does the Shapiro 2008 rule indicate a blood culture?

## When to prefer this

Use this endpoint when you need a structured, rule-based evaluation of the Shapiro 2008 blood culture indication criteria for an adult patient with fever or suspected bacteremia. Prefer this over general sepsis scoring tools (e.g. qSOFA, SIRS) when the specific clinical question is whether to draw blood cultures rather than whether the patient is septic. Ideal for embedding in ED triage workflows, clinical decision support pipelines, or automated chart review where discrete lab and clinical values are already available.

## Known failure modes

- Missing required query parameters return a 400-level error
- Temperature outside 30.0–45.0°C or age outside 18–120 may be rejected or produce unexpected results
- Boolean fields misassigned by caller (e.g. catheter=false when one is present) produce incorrect scoring — magent does not verify clinical facts
- WBC, platelet, or creatinine values outside plausible ranges may cause validation errors
- Network or payment failure (402 x402 protocol) prevents the call from completing

## How this service works

Shapiro 2008 blood-culture rule. Indicated if ≥1 major (temperature >39.5 °C, indwelling vascular catheter, suspected endocarditis) or ≥2 minor (temperature 38.3–39.4 °C, age >65, chills, vomiting, hypotension SBP <90, neutrophils >80%, WBC >18 k, bands >5%, platelets <150 k, creatinine >2.0 mg/dL). Not a culture order or sepsis diagnosis. magent does not examine the patient.

## Output

Returns whether a blood culture is indicated under the Shapiro 2008 rule, along with which major and minor criteria were met, based solely on the caller-supplied clinical and laboratory values. Does not order cultures, diagnose sepsis, or represent clinical examination.

## 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": [
      "age",
      "temperature_c",
      "catheter",
      "suspected_endocarditis",
      "chills",
      "vomiting",
      "hypotension",
      "neutrophil_percent",
      "wbc_k",
      "bands_percent",
      "platelets_k",
      "creatinine_mg_dl"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years (integer 18-120). Age >65 is a Shapiro 2008 minor criterion; 65 is not. The published rule is for adults ≥18 years."
      },
      "wbc_k": {
       "type": "number",
       "description": "White blood cell count in thousands (0-500; same as 10^3/µL). Shapiro 2008 minor when >18 (18 does not). magent does not assay a CBC."
      },
      "chills": {
       "type": "boolean",
       "description": "Chills (Shapiro 2008 minor). true or false as assigned by the caller. magent does not take a history."
      },
      "catheter": {
       "type": "boolean",
       "description": "Indwelling vascular catheter (Shapiro 2008 major). true or false as assigned by the caller. magent does not inspect lines."
      },
      "vomiting": {
       "type": "boolean",
       "description": "Vomiting (Shapiro 2008 minor). true or false as assigned by the caller. magent does not observe vomiting."
      },
      "hypotension": {
       "type": "boolean",
       "description": "Hypotension (Shapiro 2008 minor: systolic blood pressure < 90 mm Hg). true or false as assigned by the caller. magent does not measure blood pressure."
      },
      "platelets_k": {
       "type": "number",
       "description": "Platelet count in thousands (0-2000; same as 10^3/µL). Shapiro 2008 minor when <150 (150 does not). magent does not assay a CBC."
      },
      "bands_percent": {
       "type": "number",
       "description": "Band percent (0-100). Shapiro 2008 minor when >5 (5 does not). magent does not assay a CBC."
      },
      "temperature_c": {
       "type": "number"
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/shapiro-2008-blood-culture-rule-magent-a2fa2422/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)
