# magent RASP HIV Post-Exposure Risk Calculator

> magent RASP HIV Post-Exposure Risk 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-14).

Computes the Vertesi 2003 RASP (Risk Assessment Score for Post-exposure) for HIV transmission probability given caller-assigned source population, inoculum type, transmission route, and volume.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/rasp
- 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/magent-rasp-hiv-post-exposure-risk-calculator-0521b711
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_G3yVP8mhBb2Pl9z0GezYp

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-rasp-hiv-post-exposure-risk-calculator-0521b711
```

Example prompt: Calculate the Vertesi RASP score for a healthcare worker who had a deep intramuscular needlestick with fresh blood from a patient of unknown HIV status but high-risk background, with a moderate volume exposure using a large-bore needle above 22 gauge.

## When to prefer this

Use this endpoint when you need a structured, reproducible Vertesi 2003 RASP calculation for HIV post-exposure risk stratification and need a programmatic score rather than manual lookup. Prefer this over general clinical decision support tools when you specifically need the RASP methodology with Canadian prevalence priors and caller-assigned categorical inputs for source population, inoculum type, transmission route, and volume. Not appropriate as a PEP prescribing or order-entry tool.

## Known failure modes

- Missing required query parameters returns a 400 error
- Invalid enum value for any of the four parameters returns a 400 validation error
- Edge case: 22g needle gauge is not a published token and has no defined enum value
- Score interpretation does not account for local prevalence deviating from Canadian average
- Caller misclassification of exposure parameters leads to incorrect risk stratification — magent does not interpret wound, specimen, or volume independently

## How this service works

Vertesi 2003 RASP multiplies exclusive source (A), inoculum type (B), and transmission (C) to Z, then total_risk = (1/Z) × volume (D). Table 2: <1/1000 definitely indicated; 1/1000–1/10 000 recommended but optional; 1/10 001–1/100 000 optional but not recommended; >1/100 000 not indicated. Average Canadian community prevalence is baked into the scores. Caller-assigned tokens. Not a PEP order. magent does not interpret the source patient.

## Output

Returns a numeric RASP score (total_risk = (1/Z) × volume modifier) plus a risk tier classification: <1/1000 definitely indicated, 1/1000–1/10,000 recommended but optional, 1/10,001–1/100,000 optional but not recommended, >1/100,000 not indicated — based on average Canadian community HIV prevalence baked into the source population scores.

## 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": [
      "source_population",
      "inoculum_type",
      "transmission",
      "inoculum_volume"
     ],
     "properties": {
      "transmission": {
       "enum": [
        "intravenous",
        "deep_intramuscular",
        "deep_transcutaneous_visible_bleeding",
        "superficial_transcutaneous_no_bleeding",
        "mucosal_contact",
        "intact_skin"
       ],
       "type": "string",
       "description": "Vertesi 2003 Step C method of transmission as assigned by the caller (exclusive). intravenous scores 1; deep_intramuscular scores 10; deep_transcutaneous_visible_bleeding scores 100; superficial_transcutaneous_no_bleeding scores 200; mucosal_contact scores 500; intact_skin scores 1000. magent does not examine the wound."
      },
      "inoculum_type": {
       "enum": [
        "fresh_blood",
        "body_fluids_at_risk",
        "dried_old_blood",
        "low_risk_secretions"
       ],
       "type": "string",
       "description": "Vertesi 2003 Step B inoculum type as assigned by the caller (exclusive). fresh_blood scores 1; body_fluids_at_risk scores 10 (semen); dried_old_blood scores 100; low_risk_secretions scores 1000 (tears, saliva, urine). magent does not classify the specimen."
      },
      "inoculum_volume": {
       "enum": [
        "massive_transfusion",
        "measurable_gt_1_ml",
        "moderate_large_bore_gt_22g",
        "small_small_bore_lt_22g",
        "trace_surface"
       ],
       "type": "string",
       "description": "Vertesi 2003 Step D volume modifier as assigned by the caller (exclusive). massive_transfusion scores 100; measurable_gt_1_ml scores 10; moderate_large_bore_gt_22g scores 5; small_small_bore_lt_22g scores 3; trace_surface scores 1 (suture needle). 22 g exactly is not a published token. magent does not measure volume."
      },
      "source_population": {
       "enum": [
        "known_hiv_acute_aids",
        "known_hiv_asympt
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magent-rasp-hiv-post-exposure-risk-calculator-0521b711/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)
